1 FROM java:openjdk-8-jre
2 MAINTAINER Dominic Lunanuova
3 ENV insdir /opt/app/dmaapbc
5 mkdir -p ${insdir}/lib \
6 && mkdir -p ${insdir}/etc \
7 && mkdir -p ${insdir}/logs \
8 && mkdir -p ${insdir}/www && mkdir -p ${insdir}/www/doc \
9 && mkdir -p ${insdir}/config \
10 && mkdir -p ${insdir}/misc \
11 && mkdir -p ${insdir}/bin
14 COPY target/buscontroller.jar ${insdir}/lib/
15 COPY target/deps/*.jar ${insdir}/lib/
16 # COPY src/main/resources/log4j.properties ${insdir}/etc/
17 # COPY www/ ${insdir}/www/
18 # COPY target/site/apidocs/ ${insdir}/www/doc/
19 COPY misc/LocalKey ${insdir}/etc/
20 COPY misc/opensource.env ${insdir}/misc/
21 COPY misc/*.tmpl ${insdir}/misc/
22 COPY misc/dmaapbc ${insdir}/bin/
23 RUN chmod +x ${insdir}/bin/*
24 COPY misc/doaction ${insdir}/bin/
27 CMD ["./bin/dmaapbc", "deploy" ]