-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #408 from INCATools/odk.1.2.27
All changes for ODK 1.2.27 at once
- Loading branch information
Showing
18 changed files
with
930 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,66 @@ | ||
FROM openjdk:8-jdk-alpine | ||
MAINTAINER Chris Mungall <[email protected]> | ||
|
||
RUN apk add --update make | ||
### From https://stackoverflow.com/questions/51121875/how-to-run-docker-with-python-and-java | ||
### 1. Get Linux | ||
FROM ubuntu:18.04 | ||
LABEL maintainer="[email protected]" | ||
|
||
### 2. Get Java, Python and all required system libraries (version control etc) | ||
ENV JAVA_HOME="/usr" | ||
WORKDIR /tools | ||
ENV PATH "/tools/:$PATH" | ||
COPY requirements.txt.lite /tools/requirements.txt | ||
COPY odk/make-release-assets.py /tools/ | ||
|
||
#ENV JAVA_HOME /usr/lib/jvm/java-8-oracle | ||
# LAYERSIZE ~1000MB | ||
RUN apt-get update &&\ | ||
apt-get install -y software-properties-common &&\ | ||
apt-get upgrade -y &&\ | ||
apt-get install -y build-essential \ | ||
git \ | ||
openjdk-8-jre \ | ||
make \ | ||
unzip \ | ||
rsync \ | ||
curl \ | ||
jq \ | ||
openssl | ||
|
||
###### owltools & OORT ###### | ||
# For now we get these from jenkins builds, but these should be obtained | ||
# by composing existing Dockerfiles, or by obtaining directly from maven | ||
RUN wget http://build.berkeleybop.org/job/robot/lastSuccessfulBuild/artifact/bin/robot -O /tools/robot | ||
RUN wget http://build.berkeleybop.org/job/robot/lastSuccessfulBuild/artifact/bin/robot.jar -O /tools/robot.jar | ||
RUN chmod +x /tools/* | ||
ENV PATH "/tools/:$PATH" | ||
ENV OWLTOOLS 2020-04-06 | ||
RUN curl -L https://github.com/owlcollab/owltools/releases/download/$OWLTOOLS/owltools -o /tools/owltools && \ | ||
curl -L https://github.com/owlcollab/owltools/releases/download/$OWLTOOLS/ontology-release-runner -o /tools/ontology-release-runner && \ | ||
curl -L https://github.com/owlcollab/owltools/releases/download/$OWLTOOLS/owltools-oort-all.jar -o /tools/owltools-oort-all.jar && \ | ||
chmod +x /tools/owltools && \ | ||
chmod +x /tools/ontology-release-runner && \ | ||
chmod +x /tools/owltools-oort-all.jar | ||
|
||
###### ROBOT ###### | ||
ENV ROBOT v1.8.1 | ||
ARG ROBOT_JAR=https://github.com/ontodev/robot/releases/download/$ROBOT/robot.jar | ||
ENV ROBOT_JAR ${ROBOT_JAR} | ||
|
||
# LAYERSIZE ~66MB | ||
RUN curl -L $ROBOT_JAR -o /tools/robot.jar &&\ | ||
curl -L https://raw.githubusercontent.com/ontodev/robot/$ROBOT/bin/robot -o /tools/robot && \ | ||
chmod +x /tools/robot && \ | ||
chmod +x /tools/robot.jar | ||
|
||
### 5. Install ODK | ||
ARG ODK_VERSION=0.0.0 | ||
ENV ODK_VERSION=${ODK_VERSION} | ||
|
||
# Setup dosdp tools | ||
ENV V=0.10.1 | ||
RUN wget -nv https://github.com/INCATools/dosdp-tools/releases/download/v$V/dosdp-tools-$V.tgz | ||
RUN tar -zxvf dosdp-tools-$V.tgz && mv dosdp-tools-$V /tools/dosdp-tools | ||
ENV PATH "/tools/dosdp-tools/bin:$PATH" | ||
### TODO REVIEW THIS. As we speak, jq is official still stalled at 1.5, but for the walk function, we | ||
### Need 1.6 - once 1.6 is offcial, the following RUN can be removed. | ||
# LAYERSIZE: ~4MB | ||
RUN curl -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -o /tools/jq && chmod +x /tools/jq | ||
|
||
CMD make -h | ||
COPY odk/odk.py /tools/ | ||
COPY template/ /tools/templates/ | ||
RUN chmod +x /tools/*.py | ||
ENV LC_ALL=C.UTF-8 | ||
ENV LANG=C.UTF-8 | ||
RUN echo "Keep me in sync with obolibrary/odkfull!" | ||
|
||
CMD python /tools/odk.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
FROM openjdk:8-jre-alpine3.9 | ||
MAINTAINER Chris Mungall <[email protected]> | ||
|
||
RUN apk add --no-cache make bash | ||
FROM openjdk:8-slim | ||
LABEL maintainer="[email protected]" | ||
|
||
WORKDIR /tools | ||
|
||
ENV ROBOT v1.5.0 | ||
ENV ROBOT v1.8.1 | ||
ARG ROBOT_JAR=https://github.com/ontodev/robot/releases/download/$ROBOT/robot.jar | ||
ENV ROBOT_JAR ${ROBOT_JAR} | ||
|
||
RUN wget $ROBOT_JAR -O /tools/robot.jar && \ | ||
wget https://raw.githubusercontent.com/ontodev/robot/$ROBOT/bin/robot -O /tools/robot && \ | ||
chmod +x /tools/* | ||
RUN apt-get update &&\ | ||
apt-get upgrade -y &&\ | ||
apt-get install -y make \ | ||
unzip \ | ||
rsync \ | ||
curl | ||
|
||
RUN curl -L $ROBOT_JAR -o /tools/robot.jar &&\ | ||
curl -L https://raw.githubusercontent.com/ontodev/robot/$ROBOT/bin/robot -o /tools/robot && \ | ||
chmod +x /tools/robot && \ | ||
chmod +x /tools/robot.jar | ||
|
||
ENV PATH "/tools/:$PATH" | ||
RUN echo "Keep me in sync with obolibrary/odkfull!" | ||
CMD robot -h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.