From 1c020c705baa0a2a55591750c0fd46fff52a6929 Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Fri, 21 Oct 2022 23:36:11 +0800 Subject: [PATCH] Fix Docker image and helm issue Issue-ID: INF-317 Signed-off-by: Bin Yang Change-Id: I8efb52d9d804d104e8c6f1ca8f51c0ce420b126c --- Dockerfile | 6 ++++++ charts/templates/deployment.yaml | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c3aba8d..989e9d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,6 +36,12 @@ COPY o2ims/ /src/o2ims/ COPY o2dms/ /src/o2dms/ COPY o2common/ /src/o2common/ +RUN mkdir -p /src/helm_sdk/ +COPY helm_sdk/ /src/helm_sdk/ + +RUN mkdir -p /configs/ +COPY configs/ /configs/ + RUN mkdir -p /src/o2app/ COPY o2app/ /src/o2app/ COPY setup.py /src/ diff --git a/charts/templates/deployment.yaml b/charts/templates/deployment.yaml index d9ebf10..5f64ccb 100644 --- a/charts/templates/deployment.yaml +++ b/charts/templates/deployment.yaml @@ -139,8 +139,8 @@ spec: volumeMounts: - name: scripts mountPath: /opt - - name: configs - mountPath: /configs + # - name: configs + # mountPath: /configs - name: applicationconfig mountPath: /configs/o2app.conf subPath: config.json @@ -170,8 +170,8 @@ spec: - name: scripts configMap: name: {{ .Chart.Name }}-scripts-configmap - - name: configs - emptyDir: {} + # - name: configs + # emptyDir: {} - configMap: name: {{ .Chart.Name }}-application-config name: applicationconfig -- 2.16.6