Skip to content

Commit c8ae911

Browse files
author
Anita Caron
authored
Merge pull request #110 from obophenotype/anitacaron/issue108
Containerise CCF_tools dependencies
2 parents c12b8d4 + 5cbc9fe commit c8ae911

5 files changed

Lines changed: 42 additions & 34 deletions

File tree

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
build:
1818
# The type of runner that the job will run on
1919
runs-on: ubuntu-latest
20-
container: obolibrary/odkfull:v1.2.23
20+
container: anitacaron/ccf-tools-dep
2121

2222
# Steps represent a sequence of tasks that will be executed as part of the job
2323
steps:
@@ -30,4 +30,4 @@ jobs:
3030
- name: verify and build
3131
env:
3232
DEFAULT_BRANCH: master
33-
run: mkdir resources/ASCT-b_tables && cd src && make -f test.mk
33+
run: mkdir resources/ASCT-b_tables && cd src && make JOBS='Kidney'

Dockerfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
FROM ubuntu:20.04
2+
LABEL maintainer="anitac@ebi.ac.uk"
3+
4+
WORKDIR /tools
5+
6+
ENV ROBOT v1.8.1
7+
ARG ROBOT_JAR=https://github.com/ontodev/robot/releases/download/$ROBOT/robot.jar
8+
ENV ROBOT_JAR ${ROBOT_JAR}
9+
10+
RUN apt-get update && \
11+
DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
12+
git \
13+
openjdk-11-jre-headless \
14+
python3-pip \
15+
python-is-python3 \
16+
make \
17+
unzip \
18+
curl \
19+
jq \
20+
graphviz \
21+
nodejs \
22+
npm
23+
24+
###### robot ######
25+
RUN curl -L $ROBOT_JAR -o /tools/robot.jar &&\
26+
curl -L https://raw.githubusercontent.com/ontodev/robot/$ROBOT/bin/robot -o /tools/robot && \
27+
chmod +x /tools/robot && \
28+
chmod +x /tools/robot.jar
29+
30+
ENV PATH "/tools/:$PATH"
31+
32+
###### obographviz #####
33+
RUN cd /tools \
34+
&& git clone 'https://github.com/cmungall/obographviz.git' \
35+
&& cd obographviz \
36+
&& git checkout b0d8f64517d4ae0085072866aaadb7602f41acf7 \
37+
&& make install
38+
ENV PATH "/tools/obographviz/bin:$PATH"

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ pandas
22
SPARQLWrapper
33
rdflib
44
openpyxl
5+
requests

src/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
# we therefore map the whole repo (../..) to a docker volume.
1010
#
1111
# See README-editors.md for more details.
12-
docker run -v $PWD/../:/work -w /work/src/ -e ROBOT_JAVA_ARGS='' -e JAVA_OPTS='' --rm -ti obolibrary/odkfull "$@"
12+
docker run -v $PWD/../:/work -w /work/src/ -e ROBOT_JAVA_ARGS='' -e JAVA_OPTS='' --rm -ti anitacaron/ccf-tools-dep "$@"

src/test.mk

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)