2 # ============LICENSE_START==========================================
4 # ===================================================================
5 # Copyright © 2018 AT&T Intellectual Property. All rights reserved.
6 # ===================================================================
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 # ============LICENSE_END============================================
19 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 FROM java:openjdk-8-jre
23 MAINTAINER Dominic Lunanuova
24 ENV insdir /opt/app/dmaapbc
26 mkdir -p ${insdir}/lib \
27 && mkdir -p ${insdir}/etc \
28 && mkdir -p ${insdir}/logs \
29 && mkdir -p ${insdir}/www && mkdir -p ${insdir}/www/doc \
30 && mkdir -p ${insdir}/config \
31 && mkdir -p ${insdir}/misc \
32 && mkdir -p ${insdir}/bin
35 COPY target/buscontroller.jar ${insdir}/lib/
36 COPY misc/LocalKey ${insdir}/etc/
37 COPY misc/logback.xml ${insdir}/etc/
38 COPY misc/dbc-api.jks ${insdir}/etc/keystore
39 RUN chmod 600 ${insdir}/etc/keystore
40 COPY misc/org.onap.dmaap-bc.trust.jks ${insdir}/etc
41 RUN chmod 600 ${insdir}/etc/org.onap.dmaap-bc.trust.jks
42 COPY ./version.properties ${insdir}/etc
43 COPY misc/opensource.env ${insdir}/misc/
44 COPY misc/*.tmpl ${insdir}/misc/
45 COPY misc/cert-client-init.sh ${insdir}/misc/
46 RUN chmod +x ${insdir}/misc/cert-client-init.sh
47 COPY misc/dmaapbc ${insdir}/bin/
48 RUN chmod +x ${insdir}/bin/*
49 COPY misc/doaction ${insdir}/bin/
52 CMD ["./bin/dmaapbc", "deploy" ]