Skip to content
Snippets Groups Projects

Resolve "optimize pipeline"

Merged Dominik Hebeler requested to merge 29-optimize-pipeline into master
1 file
+ 10
10
Compare changes
  • Side-by-side
  • Inline
@@ -61,7 +61,7 @@ spec:
emptyDir: {}
- name: vendor
emptyDir: {}
- name: css
- name: public
emptyDir: {}
- name: packages
persistentVolumeClaim:
@@ -70,12 +70,12 @@ spec:
- name: {{ .Chart.Name }}-nodejs
image: {{ template "imagename" . }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ['sh', '-c', 'npm i --cache .npm --prefer-offline --no-audit --progress=false && npm run prod']
command: ['sh', '-c', 'npm i --cache .npm --prefer-offline --no-audit --progress=false && npm run prod && cp -a ./node_modules/. && cp -a ./public/. /public/']
volumeMounts:
- mountPath: /html/node_modules
name: node-modules
- mountPath: /html/public/css
name: css
- mountPath: /public
name: public
- mountPath: /html/.npm
name: packages
subPath: .npm
@@ -109,8 +109,8 @@ spec:
name: node-modules
- mountPath: /html/vendor
name: vendor
- mountPath: /html/public/css
name: css
- mountPath: /html/public
name: public
{{- if .Values.lifecycle }}
lifecycle:
{{ toYaml .Values.lifecycle | indent 10 }}
@@ -149,8 +149,8 @@ spec:
name: node-modules
- mountPath: /html/vendor
name: vendor
- mountPath: /html/public/css
name: css
- mountPath: /html/public
name: public
ports:
- name: "{{ .Values.service.name }}"
containerPort: {{ .Values.service.internalPort }}
@@ -197,8 +197,8 @@ spec:
name: node-modules
- mountPath: /html/vendor
name: vendor
- mountPath: /html/public/css
name: css
- mountPath: /html/public
name: public
livenessProbe:
exec:
command:
Loading