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/Dockerfile16
-rwxr-xr-x[-rw-r--r--]ms/blueprintsprocessor/application/src/main/docker/startService.sh0
2 files changed, 7 insertions, 9 deletions
diff --git a/ms/blueprintsprocessor/application/src/main/docker/Dockerfile b/ms/blueprintsprocessor/application/src/main/docker/Dockerfile
index e9c4c5895..751d6a5eb 100755
--- a/ms/blueprintsprocessor/application/src/main/docker/Dockerfile
+++ b/ms/blueprintsprocessor/application/src/main/docker/Dockerfile
@@ -5,20 +5,18 @@ RUN tar -xzf /source.tar.gz -C /tmp \
&& rm -rf /source.tar.gz \
&& rm -rf /tmp/@project.build.finalName@
-FROM omahoco1/alpine-java-python
-
+FROM onap/ccsdk-alpine-j11-image:1.0.1
+USER root
# add entrypoint
COPY startService.sh /startService.sh
-RUN addgroup -S -g 1000 onap && adduser -u 1000 -S onap -G onap
-RUN chown onap:onap /startService.sh
-RUN touch /velocity.log && chmod 777 /velocity.log
-RUN chown onap:onap /velocity.log
-RUN chmod 777 /startService.sh && dos2unix /startService.sh
+RUN chown onap:onap /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!
# add application
COPY --from=extractor /opt /opt
-RUN mkdir -p /opt/app/onap/blueprints/deploy
-RUN chown onap:onap /opt -R
+RUN mkdir -p /opt/app/onap/blueprints/deploy && chown onap:onap /opt -R
USER onap
ENTRYPOINT [ "/startService.sh" ]
diff --git a/ms/blueprintsprocessor/application/src/main/docker/startService.sh b/ms/blueprintsprocessor/application/src/main/docker/startService.sh
index fb44ffd1c..fb44ffd1c 100644..100755
--- a/ms/blueprintsprocessor/application/src/main/docker/startService.sh
+++ b/ms/blueprintsprocessor/application/src/main/docker/startService.sh