summaryrefslogtreecommitdiffstats
path: root/ms/command-executor
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/command-executor
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/command-executor')
-rw-r--r--ms/command-executor/src/main/docker/Dockerfile13
1 files changed, 7 insertions, 6 deletions
diff --git a/ms/command-executor/src/main/docker/Dockerfile b/ms/command-executor/src/main/docker/Dockerfile
index 1e5d4cbb8..7ef689728 100644
--- a/ms/command-executor/src/main/docker/Dockerfile
+++ b/ms/command-executor/src/main/docker/Dockerfile
@@ -1,14 +1,14 @@
-FROM python:3.6-slim
+FROM onap/integration-python:7.0.1
+USER root
ENV GRPC_PYTHON_VERSION 1.20.0
+
RUN python -m pip install --upgrade pip
RUN pip install grpcio==${GRPC_PYTHON_VERSION} grpcio-tools==${GRPC_PYTHON_VERSION}
RUN pip install virtualenv==16.7.9
-RUN groupadd -r -g 1000 onap && useradd -r -u 1000 -g onap onap
-
-COPY start.sh /opt/app/onap/start.sh
-RUN chmod u+x /opt/app/onap/start.sh
+COPY start.sh /opt/app/onap/command-executor/start.sh \
+ && chmod u+x /opt/app/onap/command-executor/start.sh
RUN mkdir -p /opt/app/onap/logs/ && touch /opt/app/onap/logs/application.log
@@ -22,5 +22,6 @@ RUN mkdir -p /opt/app/onap/blueprints/deploy
RUN chown onap:onap /opt -R
VOLUME /opt/app/onap/blueprints/deploy/
+
USER onap
-ENTRYPOINT /opt/app/onap/start.sh
+ENTRYPOINT /opt/app/onap/command-executor/start.sh