-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
63 lines (50 loc) · 1.83 KB
/
Dockerfile
File metadata and controls
63 lines (50 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
FROM openjdk:11-jdk-slim
LABEL maintainer="Rolf Kleef <rolf@data4development.nl>" \
description="IATI Data Validator Engine" \
repository="https://github.com/data4development/IATI-data-validator"
# To be adapted in the cluster or runtime config
ENV \
API=none \
BUCKET_SRC=dataworkbench-iati \
BUCKET_FB=dataworkbench-iatifeedback \
BUCKET_JSON=dataworkbench-json \
BUCKET_SVRL=dataworkbench-svrl \
BUCKET_TEST_SRC=dataworkbench-test \
BUCKET_TEST_FB=dataworkbench-testfeedback \
BUCKET_TEST_JSON=dataworkbench-testjson \
BUCKET_TEST_SVRL=dataworkbench-testsvrl
# ----------
# To build the container
ENV \
ANT_VERSION=1.10.1 \
SAXON_VERSION=9.8.0-14 \
WEBHOOK_VERSION=2.6.8 \
\
HOME=/home \
ANT_HOME=/opt/ant \
SAXON_HOME=/opt/ant
WORKDIR $HOME
RUN apt-get update && \
apt-get -y install --no-install-recommends wget libxml2-utils curl libgnutls-openssl27 jq libjq1 libonig5 msmtp && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN wget -q https://archive.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz && \
tar -xzf apache-ant-${ANT_VERSION}-bin.tar.gz && \
rm apache-ant-${ANT_VERSION}-bin.tar.gz && \
mv apache-ant-${ANT_VERSION} ${ANT_HOME}
RUN wget -q https://repo1.maven.org/maven2/net/sf/saxon/Saxon-HE/${SAXON_VERSION}/Saxon-HE-${SAXON_VERSION}.jar && \
mv *.jar ${ANT_HOME}/lib
RUN wget -q https://github.com/adnanh/webhook/releases/download/${WEBHOOK_VERSION}/webhook-linux-amd64.tar.gz && \
tar -xzf webhook-linux-amd64.tar.gz --strip 1 && \
rm webhook-linux-amd64.tar.gz
ENV PATH $PATH:$ANT_HOME/bin
VOLUME /workspace
COPY . $HOME
RUN mkdir -p $HOME/tests/xspec && \
chmod go+w $HOME/tests/xspec && \
mkdir -p /work && \
chmod go+w /work && \
ln -s /workspace /work/space
EXPOSE 9000
ENTRYPOINT ["/opt/ant/bin/ant", "-e"]
CMD ["-p"]