aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Brady <patrick.brady@att.com>2019-02-26 12:36:31 -0800
committerPatrick Brady <patrick.brady@att.com>2019-02-26 20:38:18 +0000
commit95ef2ec2871013b21806fc00cd27f6483da82a56 (patch)
tree892d2c194aac58a7e792f42eb838372d26bd61ce
parent58d5a115f561efca3b32a03b1d6d496939e44411 (diff)
Dockerfile changes for non-root user
Copy appc folders in as odl user instead of root user and run install scripts as odl user. Change-Id: Ia748e607c80aa5c030c68c7eb01a3c27a296a786 Signed-off-by: Patrick Brady <patrick.brady@att.com> Issue-ID: APPC-1503
-rw-r--r--installation/appc/src/main/docker/Dockerfile10
1 files changed, 5 insertions, 5 deletions
diff --git a/installation/appc/src/main/docker/Dockerfile b/installation/appc/src/main/docker/Dockerfile
index c0b18fa..ab3e2f2 100644
--- a/installation/appc/src/main/docker/Dockerfile
+++ b/installation/appc/src/main/docker/Dockerfile
@@ -28,16 +28,16 @@ MAINTAINER APP-C Team (appc@lists.openecomp.org)
ENV APPC_CONFIG_DIR /opt/onap/appc/data/properties
# Copy the opt folder to the container's /opt folder
-COPY opt /opt
+COPY --chown=odl:odl opt /opt
#Copy the directory containing each features' install script
-COPY featureDir /opt/onap/appc/features
+COPY --chown=odl:odl featureDir /opt/onap/appc/features
#Copy the directory containing a system folder and an etc folder in order
# to merge both of these with the opendaylight folders of the same names.
-COPY repoDir /opt/opendaylight
-
-
+COPY --chown=odl:odl repoDir /opt/opendaylight
+RUN chown -R odl:odl /opt
+USER odl
RUN ln -s /opt/onap/appc /opt/appc
#Start opendaylight and pre-install the appc features