56e66a8992736d2825d13bdf5898514073c49216
[appc/deployment.git] / installation / appc / src / main / docker / Dockerfile
1 # ============LICENSE_START==========================================
2 # ONAP : APPC
3 # ===================================================================
4 # Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
5 # ===================================================================
6 #
7 # Unless otherwise specified, all software contained herein is licensed
8 # under the Apache License, Version 2.0 (the License);
9 # you may not use this software except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 #    http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 #
20 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
21 # ============LICENSE_END============================================
22
23 # Base ubuntu with added packages needed for ONAP
24 FROM onap/ccsdk-odlsli-alpine-image:0.6.3
25 MAINTAINER APP-C Team (appc@lists.openecomp.org)
26
27 # run as root to install ps to comply with karaf scripts
28 USER root
29 RUN apk add --no-cache procps
30 RUN apk add --no-cache openssh
31 RUN apk add --no-cache sshpass
32
33 # Set the Env. Variable in the container to add the APPC CONFIG DIR (the SDNC_CONFIG_DIR is inherited from SDNC Image)
34 ENV APPC_CONFIG_DIR /opt/onap/appc/data/properties
35
36 # Copy the opt folder to the container's /opt folder
37 COPY --chown=odl:odl opt /opt
38
39 #Copy the directory containing each features' install script
40 COPY --chown=odl:odl featureDir /opt/onap/appc/features
41
42 #Copy the directory containing a system folder and an etc folder in order
43 #  to merge both of these with the opendaylight folders of the same names.
44 COPY --chown=odl:odl repoDir /opt/opendaylight
45 RUN chown -R odl:odl /opt
46
47 USER odl
48 RUN ln -s /opt/onap/appc /opt/appc
49
50 # cvass dir stores VNF's configure via Audit or Sync LCM
51 RUN mkdir /opt/onap/appc/cvaas
52
53 #Start opendaylight and pre-install the appc features
54 #RUN opt/onap/appc/bin/dockerInstall.sh
55
56 # Expose port 8181 for ODL REST calls
57 EXPOSE 8181