summaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/application/src
diff options
context:
space:
mode:
Diffstat (limited to 'ms/blueprintsprocessor/application/src')
-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" ]