diff options
author | Dan Timoney <dtimoney@att.com> | 2020-04-28 14:01:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-04-28 14:01:55 +0000 |
commit | 133f584b2257aa8c85a95854ca6b324a3f34edf3 (patch) | |
tree | 1fb0bf0cb7e2436e675e8ba0ab016e0211ca8cad /ms/command-executor/src/main/docker/Dockerfile | |
parent | 340b97f14af71fbf2a35dd996cab7a60e4e791de (diff) | |
parent | be864c3d32ea9dfe88f0e121734abdc950401449 (diff) |
Merge "Making POD run as non-root"
Diffstat (limited to 'ms/command-executor/src/main/docker/Dockerfile')
-rw-r--r-- | ms/command-executor/src/main/docker/Dockerfile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ms/command-executor/src/main/docker/Dockerfile b/ms/command-executor/src/main/docker/Dockerfile index c38126066..e91265b56 100644 --- a/ms/command-executor/src/main/docker/Dockerfile +++ b/ms/command-executor/src/main/docker/Dockerfile @@ -11,7 +11,6 @@ COPY start.sh /opt/app/onap/start.sh RUN chmod u+x /opt/app/onap/start.sh RUN mkdir -p /opt/app/onap/logs/ && touch /opt/app/onap/logs/application.log -RUN chown onap:onap /opt -R COPY @project.build.finalName@-@assembly.id@.tar.gz /source.tar.gz RUN tar -xzf /source.tar.gz -C /tmp \ @@ -19,6 +18,9 @@ RUN tar -xzf /source.tar.gz -C /tmp \ && rm -rf /source.tar.gz \ && rm -rf /tmp/@project.build.finalName@ +RUN mkdir -p /opt/app/onap/blueprints/deploy +RUN chown onap:onap /opt -R + VOLUME /opt/app/onap/blueprints/deploy/ USER onap ENTRYPOINT /opt/app/onap/start.sh |