Changes for ODL SR2
[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.5.1
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
31 # Set the Env. Variable in the container to add the APPC CONFIG DIR (the SDNC_CONFIG_DIR is inherited from SDNC Image)
32 ENV APPC_CONFIG_DIR /opt/onap/appc/data/properties
33
34 # Copy the opt folder to the container's /opt folder
35 COPY --chown=odl:odl opt /opt
36
37 #Copy the directory containing each features' install script
38 COPY --chown=odl:odl featureDir /opt/onap/appc/features
39
40 #Copy the directory containing a system folder and an etc folder in order
41 #  to merge both of these with the opendaylight folders of the same names.
42 COPY --chown=odl:odl repoDir /opt/opendaylight
43 RUN chown -R odl:odl /opt
44
45 USER odl
46 RUN ln -s /opt/onap/appc /opt/appc
47
48 # cvass dir stores VNF's configure via Audit or Sync LCM
49 RUN mkdir /opt/onap/appc/cvaas
50
51 #Start opendaylight and pre-install the appc features
52 RUN opt/onap/appc/bin/dockerInstall.sh
53
54 # Expose port 8181 for ODL REST calls
55 EXPOSE 8181