summaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/application
diff options
context:
space:
mode:
authorSingal, Kapil (ks220y) <ks220y@att.com>2020-09-15 09:51:24 -0400
committerKAPIL SINGAL <ks220y@att.com>2020-09-15 18:54:56 +0000
commit9c1c061c8e80f41f3838dfaf487b54af36ad8071 (patch)
tree718f3303554ca014ed9cf9378c01b0888e0e3a20 /ms/blueprintsprocessor/application
parent00618f56efbdd683430397e0336a016acdca4c6f (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/blueprintsprocessor/application')
-rwxr-xr-xms/blueprintsprocessor/application/src/main/docker/Dockerfile13
1 files changed, 7 insertions, 6 deletions
diff --git a/ms/blueprintsprocessor/application/src/main/docker/Dockerfile b/ms/blueprintsprocessor/application/src/main/docker/Dockerfile
index 751d6a5eb..b0efcbe36 100755
--- a/ms/blueprintsprocessor/application/src/main/docker/Dockerfile
+++ b/ms/blueprintsprocessor/application/src/main/docker/Dockerfile
@@ -1,22 +1,23 @@
FROM alpine:latest AS extractor
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 /startService.sh
-RUN chown onap:onap /startService.sh \
+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 \
- && chmod 755 /startService.sh
-# dos2unix /startService.sh is redundant. Pls fix your git settings!
+ && 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 [ "/startService.sh" ]
+USER onap
+ENTRYPOINT [ "/opt/app/onap/blueprints-processor/startService.sh" ]