forked from cyverse-de/terrain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (30 loc) · 1.34 KB
/
Dockerfile
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
FROM clojure:lein-alpine
WORKDIR /usr/src/app
RUN apk add --no-cache git
CMD ["--help"]
RUN mkdir -p /etc/iplant/de/crypto && \
touch /etc/iplant/de/crypto/pubring.gpg && \
touch /etc/iplant/de/crypto/random_seed && \
touch /etc/iplant/de/crypto/secring.gpg && \
touch /etc/iplant/de/crypto/trustdb.gpg
COPY conf/main/logback.xml /usr/src/app/
COPY project.clj /usr/src/app/
RUN lein deps
RUN ln -s "/usr/bin/java" "/bin/terrain"
COPY . /usr/src/app
RUN lein do clean, uberjar && \
cp target/terrain-standalone.jar .
# Add the Internet2 InCommon intermediate CA certificate.
ADD "https://incommon.org/wp-content/uploads/2019/06/sha384-Intermediate-cert.txt" "/usr/local/share/ca-certificates/"
RUN sed -i -E 's/\r\n?/\n/g' "/usr/local/share/ca-certificates/sha384-Intermediate-cert.txt" && \
update-ca-certificates
ENTRYPOINT ["terrain", "-Dlogback.confonFile=/etc/iplant/de/logging/terrain-logging.xml", "-cp", ".:terrain-standalone.jar", "terrain.core"]
ARG git_commit=unknown
ARG version=unknown
ARG descriptive_version=unknown
LABEL org.cyverse.git-ref="$git_commit"
LABEL org.cyverse.version="$version"
LABEL org.cyverse.descriptive-version="$descriptive_version"
LABEL org.label-schema.vcs-ref="$git_commit"
LABEL org.label-schema.vcs-url="https://github.com/cyverse-de/terrain"
LABEL org.label-schema.version="$descriptive_version"