Files missing License text
[dmaap/buscontroller.git] / Dockerfile
1 #
2 # ============LICENSE_START==========================================
3 # org.onap.dmaap
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
10 #
11 #        http://www.apache.org/licenses/LICENSE-2.0
12 #
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.
20 #
21 #
22 FROM java:openjdk-8-jre
23 MAINTAINER Dominic Lunanuova
24 ENV insdir  /opt/app/dmaapbc
25 RUN \
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
33 WORKDIR ${insdir}
34 USER root
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 ./version.properties ${insdir}/etc
41 COPY misc/opensource.env ${insdir}/misc/
42 COPY misc/*.tmpl ${insdir}/misc/
43 COPY misc/cert-client-init.sh ${insdir}/misc/
44 RUN chmod +x ${insdir}/misc/cert-client-init.sh
45 COPY misc/dmaapbc ${insdir}/bin/
46 RUN chmod +x ${insdir}/bin/*
47 COPY misc/doaction ${insdir}/bin/
48
49 VOLUME ${insdir}/log
50 CMD ["./bin/dmaapbc", "deploy" ]