1 # ============LICENSE_START==========================================
3 # ===================================================================
4 # Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
5 # ===================================================================
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
12 # http://www.apache.org/licenses/LICENSE-2.0
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.
20 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
21 # ============LICENSE_END============================================
23 # Base ubuntu with added packages needed for ONAP
24 FROM onap/ccsdk-odlsli-alpine-image:0.4.1
25 MAINTAINER APP-C Team (appc@lists.openecomp.org)
27 # Set the Env. Variable in the container to add the APPC CONFIG DIR (the SDNC_CONFIG_DIR is inherited from SDNC Image)
28 ENV APPC_CONFIG_DIR /opt/onap/appc/data/properties
30 # Copy the opt folder to the container's /opt folder
31 COPY --chown=odl:odl opt /opt
33 #Copy the directory containing each features' install script
34 COPY --chown=odl:odl featureDir /opt/onap/appc/features
36 #Copy the directory containing a system folder and an etc folder in order
37 # to merge both of these with the opendaylight folders of the same names.
38 COPY --chown=odl:odl repoDir /opt/opendaylight
39 RUN chown -R odl:odl /opt
41 RUN ln -s /opt/onap/appc /opt/appc
43 #Start opendaylight and pre-install the appc features
44 RUN opt/onap/appc/bin/dockerInstall.sh
46 # Expose port 8181 for ODL REST calls