From 6c2ad901585bf47fdf50de6c928b5a583ee4d655 Mon Sep 17 00:00:00 2001 From: "Joao F. Santos" Date: Tue, 19 Jul 2022 14:48:36 -0400 Subject: [PATCH] Update Dockerfile to use Kubernetes ConfigMap --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5f7a66e..51dcaff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,12 +31,14 @@ COPY setup.py /tmp COPY README.md /tmp COPY LICENSE.txt /tmp/ COPY src/ /tmp/src -COPY init/ /tmp/init RUN pip install /tmp -# Env - TODO- Configmap ENV PYTHONUNBUFFERED 1 -ENV CONFIG_FILE=/tmp/init/config-file.json + +# Set up ConfigMap +RUN mkdir -p /opt/ric/config && chmod -R 755 /opt/ric/config +COPY init/ /opt/ric/config +ENV CONFIG_FILE=/opt/ric/config/config-file.json # For Default DB connection, modify for resp kubernetes env ENV DBAAS_SERVICE_PORT=6379