forked from DataVault/datavault
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbroker.Dockerfile
36 lines (24 loc) · 1.17 KB
/
broker.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
FROM datavault/maven-build:latest
# will trigger the maven build
FROM tomcat:7-jre8-alpine
RUN apk add --no-cache tzdata
ENV TZ BST
MAINTAINER William Petit <[email protected]>
ARG LOCAL_DATAVAULT_DIR="./datavault"
ENV DATAVAULT_HOME "/docker_datavault-home"
RUN apk add --no-cache mysql curl su-exec
COPY --from=0 /usr/local/bin/ep /usr/local/bin/ep
COPY --from=0 /usr/local/bin/wait-for-it /usr/local/bin/wait-for-it
COPY --from=0 /usr/src/datavault-assembly/target/datavault-assembly-1.0-SNAPSHOT-assembly/datavault-home/lib ${DATAVAULT_HOME}/lib
COPY --from=0 /usr/src/datavault-assembly/target/datavault-assembly-1.0-SNAPSHOT-assembly/datavault-home/webapps ${DATAVAULT_HOME}/webapps
COPY docker/config ${DATAVAULT_HOME}/config
COPY docker/scripts ${DATAVAULT_HOME}/scripts
COPY docker/pure/ /tmp/
RUN ln -s ${DATAVAULT_HOME}/webapps/datavault-broker ${CATALINA_HOME}/webapps/datavault-broker
RUN adduser -D datavault
RUN chown -R datavault:datavault ${DATAVAULT_HOME}
RUN chown -R datavault:datavault ${CATALINA_HOME}
WORKDIR ${CATALINA_HOME}
EXPOSE 8080
ENTRYPOINT ["/docker_datavault-home/scripts/docker-entrypoint.sh", "broker"]
CMD ["/usr/local/tomcat/bin/catalina.sh", "run"]