summaryrefslogtreecommitdiffstats
path: root/ms/py-executor/docker/Dockerfile
diff options
context:
space:
mode:
authorBrinda Santh <bs2796@att.com>2019-09-23 10:10:58 -0400
committerBrinda Santh Muthuramalingam <bs2796@att.com>2019-09-25 16:01:44 +0000
commit807fbaae96dc75294fe17c933b43261011f33309 (patch)
treefee0a5f7454a62b5b2717556bbeb96c3589b659d /ms/py-executor/docker/Dockerfile
parent054b1d80f19d27fb8766bf70339ec5b7a351ac2e (diff)
Add bi-directional GRPC python executor.
Python based bidirectional communication script executor microservice. Issue-ID: CCSDK-1747 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: If2e8f862ca4cb97d10714df2ab1cccccef2d576a
Diffstat (limited to 'ms/py-executor/docker/Dockerfile')
-rw-r--r--ms/py-executor/docker/Dockerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/ms/py-executor/docker/Dockerfile b/ms/py-executor/docker/Dockerfile
new file mode 100644
index 000000000..112180581
--- /dev/null
+++ b/ms/py-executor/docker/Dockerfile
@@ -0,0 +1,18 @@
+FROM python:3.7-slim
+
+ENV HTTP_PROXY ${HTTP_PROXY}
+ENV HTTPS_PROXY ${HTTPS_PROXY}
+
+RUN mkdir -p /opt/app/onap/logs/ && touch /opt/app/onap/logs/application.log
+
+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@
+
+RUN pip install --no-cache-dir -r /opt/app/onap/requirements.txt
+
+VOLUME /opt/app/onap/blueprints/deploy/
+
+ENTRYPOINT /opt/app/onap/start.sh \ No newline at end of file