-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (23 loc) · 1.28 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
FROM discoenv/dataone-base
ENV CONSUL_TEMPLATE_BASE=https://releases.hashicorp.com/consul-template
ENV CONSUL_TEMPLATE_VERSION=0.16.0
ENV CONSUL_TEMPLATE_SHA256SUM=064b0b492bb7ca3663811d297436a4bbf3226de706d2b76adade7021cd22e156
ENV CONSUL_TEMPLATE_FILE=consul-template_${CONSUL_TEMPLATE_VERSION}_linux_amd64.zip
ADD ${CONSUL_TEMPLATE_BASE}/${CONSUL_TEMPLATE_VERSION}/${CONSUL_TEMPLATE_FILE} .
RUN echo "${CONSUL_TEMPLATE_SHA256SUM} ${CONSUL_TEMPLATE_FILE}" | sha256sum -c - \
&& unzip ${CONSUL_TEMPLATE_FILE} \
&& mkdir -p /usr/local/bin \
&& mv consul-template /usr/local/bin/consul-template
COPY setenv.sh /usr/local/tomcat/bin/
COPY pid-service/target/dataone-pid-service-standalone.jar /etc/irods-ext/d1plugins/
COPY repo-service/target/dataone-repo-service-standalone.jar /etc/irods-ext/d1plugins/
COPY event-service/target/dataone-event-service-standalone.jar /etc/irods-ext/d1plugins/
COPY consul.hcl /
COPY d1client.properties.tmpl /
COPY default-event-indexer.properties.tmpl /
COPY generate-configs.sh /usr/local/bin/
COPY run-member-node-service.sh /usr/local/bin/
ENV CLJ_VERSION="1.8.0"
ENV CLJ_FILE="clojure-${CLJ_VERSION}.jar"
ENV CLJ_URL="http://search.maven.org/remotecontent?filepath=org/clojure/clojure/${CLJ_VERSION}/${CLJ_FILE}"
ADD "${CLJ_URL}" "/tmp/lib/${CLJ_FILE}"