diff options
author | Singal, Kapil (ks220y) <ks220y@att.com> | 2020-09-15 09:51:24 -0400 |
---|---|---|
committer | KAPIL SINGAL <ks220y@att.com> | 2020-09-15 18:54:56 +0000 |
commit | 9c1c061c8e80f41f3838dfaf487b54af36ad8071 (patch) | |
tree | 718f3303554ca014ed9cf9378c01b0888e0e3a20 /ms/sdclistener | |
parent | 00618f56efbdd683430397e0336a016acdca4c6f (diff) |
Fixing DockerFiles
Copying starting script to respective dir as root and then running as user onap
Issue-ID: CCSDK-2794
Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
Change-Id: I2b3c27cc8e3a378f9ceeeb0de62f81de9fc38c6b
Diffstat (limited to 'ms/sdclistener')
-rwxr-xr-x | ms/sdclistener/distribution/src/main/docker/Dockerfile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ms/sdclistener/distribution/src/main/docker/Dockerfile b/ms/sdclistener/distribution/src/main/docker/Dockerfile index b5b74e11e..b001a6fa4 100755 --- a/ms/sdclistener/distribution/src/main/docker/Dockerfile +++ b/ms/sdclistener/distribution/src/main/docker/Dockerfile @@ -1,8 +1,11 @@ FROM onap/ccsdk-alpine-j11-image:1.0.1 +USER root # add entrypoint -COPY startService.sh /startService.sh -RUN chown onap:onap /startService.sh && chmod 755 /startService.sh +COPY startService.sh /opt/app/onap/sdc-listener/startService.sh +RUN chown onap:onap /opt/app/onap/sdc-listener/startService.sh \ + && chmod 755 /opt/app/onap/sdc-listener/startService.sh + # add application COPY @project.build.finalName@-@assembly.id@.tar.gz /source.tar.gz RUN tar -xzf /source.tar.gz -C /tmp \ @@ -13,4 +16,4 @@ RUN tar -xzf /source.tar.gz -C /tmp \ && chown onap:onap /opt -R USER onap -ENTRYPOINT /startService.sh +ENTRYPOINT /opt/app/onap/sdc-listener/startService.sh |