From da161685e51456b6bc3bd6fc0fe97b8a556bbf33 Mon Sep 17 00:00:00 2001 From: Michael Haswell Date: Thu, 1 Aug 2024 08:14:29 -0700 Subject: [PATCH] Updated log mount locations --- Dockerfile | 2 +- helm/templates/deployment-app.yaml | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index f17233328..852328888 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN mkdir -p /home/node/app WORKDIR /home/node/app -RUN touch /home/node/app/access.log && chmod 777 /home/node/app/access.log +RUN mkdir /home/node/app/logs/ && touch /home/node/app/logs/access.log && chmod 777 /home/node/app/access.log # Bundle app source code COPY --chown=node . . diff --git a/helm/templates/deployment-app.yaml b/helm/templates/deployment-app.yaml index 78c53db79..1792c8396 100644 --- a/helm/templates/deployment-app.yaml +++ b/helm/templates/deployment-app.yaml @@ -69,10 +69,6 @@ spec: key: redis-password image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} - command: [ - "touch log/app.log", - "2>&1 > log/app.log" - ] ports: - name: web containerPort: 3000 @@ -107,7 +103,7 @@ spec: subPath: {{ .subPath }} {{- end }} - name: local-logs - mountPath: /tmp/logs/ + mountPath: /home/node/app/logs/ {{- if .Values.fluentbit.enabled }} - name: {{ .Chart.Name }}-fluent-bit image: {{ .Values.fluentbit.imageRegistry }}