diff options
author | Singal, Kapil (ks220y) <ks220y@att.com> | 2020-09-15 19:49:35 -0400 |
---|---|---|
committer | Singal, Kapil (ks220y) <ks220y@att.com> | 2020-09-15 19:49:35 -0400 |
commit | 07090b2d199108935a028afa3bb43d3bf5190723 (patch) | |
tree | a781beb4ec2b5f5e7cc52f050c711cbcac7fad2a /ms/blueprintsprocessor | |
parent | 9c1c061c8e80f41f3838dfaf487b54af36ad8071 (diff) |
Fixing DockerFiles
refactoring to use onap certified base image and combining run commands
Issue-ID: CCSDK-2794
Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
Change-Id: Id31d5a0018cbce14e54f4aa3e5caebb75dda2276
Diffstat (limited to 'ms/blueprintsprocessor')
-rwxr-xr-x | ms/blueprintsprocessor/application/src/main/docker/Dockerfile | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/ms/blueprintsprocessor/application/src/main/docker/Dockerfile b/ms/blueprintsprocessor/application/src/main/docker/Dockerfile index b0efcbe36..6326bb862 100755 --- a/ms/blueprintsprocessor/application/src/main/docker/Dockerfile +++ b/ms/blueprintsprocessor/application/src/main/docker/Dockerfile @@ -1,23 +1,21 @@ -FROM alpine:latest AS extractor +FROM onap/ccsdk-alpine-j11-image:1.0.1 + +USER root +# add entrypoint +COPY startService.sh /opt/app/onap/blueprints-processor/startService.sh +# add application COPY @project.build.finalName@-@assembly.id@.tar.gz /source.tar.gz RUN tar -xzf /source.tar.gz -C /tmp \ && cp -rf /tmp/@project.build.finalName@/opt / \ && rm -rf /source.tar.gz \ && rm -rf /tmp/@project.build.finalName@ - -FROM onap/ccsdk-alpine-j11-image:1.0.1 - -USER root -# add entrypoint -COPY startService.sh /opt/app/onap/blueprints-processor/startService.sh -RUN chown onap:onap /opt/app/onap/blueprints-processor/startService.sh \ - && touch /velocity.log && chmod 755 /velocity.log && chown onap:onap /velocity.log \ + && touch /velocity.log \ + && chown onap:onap /velocity.log \ + && chmod 755 /velocity.log \ + && mkdir -p /opt/app/onap/blueprints/deploy \ + && chown onap:onap /opt -R \ && chmod 755 /opt/app/onap/blueprints-processor/startService.sh -# add application -COPY --from=extractor /opt /opt -RUN mkdir -p /opt/app/onap/blueprints/deploy && chown onap:onap /opt -R - USER onap ENTRYPOINT [ "/opt/app/onap/blueprints-processor/startService.sh" ] |