Skip to content

Commit

Permalink
Updated log mount locations
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaswell-bcgov committed Aug 1, 2024
1 parent f0d9422 commit da16168
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 . .
Expand Down
6 changes: 1 addition & 5 deletions helm/templates/deployment-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit da16168

Please sign in to comment.