Skip to content
Snippets Groups Projects

Resolve "optimize pipeline"

Merged Dominik Hebeler requested to merge 29-optimize-pipeline into master
Compare and Show latest version
10 files
+ 41
56
Compare changes
  • Side-by-side
  • Inline
Files
10
@@ -57,36 +57,10 @@ spec:
- name: env-files
secret:
secretName: {{ .Values.application.secretName }}
- name: packages
persistentVolumeClaim:
claimName: packages
- name: node-modules
emptyDir: {}
- name: vendor
emptyDir: {}
securityContext:
fsGroup: 1000
runAsUser: 1000
runAsGroup: 1000
initContainers:
- name: {{ .Chart.Name }}-install-resources
image: {{ template "imagename" . }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- name: vendor
mountPath: /html/vendor
- name: node-modules
mountPath: /html/node_modules
- name: packages
subPath: .npm
mountPath: /cache/.npm
- name: packages
subPath: .composer
mountPath: /cache/.composer
# Run init container as root to allow setting proper file permissions
securityContext:
runAsUser: 0
command: ["/bin/sh", "-c", "chmod +x /html/helpers/initProduction.sh && /html/helpers/initProduction.sh"]
containers:
- name: {{ .Chart.Name }}-phpfpm
image: {{ template "imagename" . }}
@@ -106,10 +80,6 @@ spec:
mountPath: /html/.env
subPath: ENV_FILE
readOnly: true
- name: vendor
mountPath: /html/vendor
- name: node-modules
mountPath: /html/node_modules
{{- if .Values.lifecycle }}
lifecycle:
{{ toYaml .Values.lifecycle | indent 10 }}
@@ -184,10 +154,6 @@ spec:
mountPath: /html/.env
subPath: ENV_FILE
readOnly: true
- name: vendor
mountPath: /html/vendor
- name: node-modules
mountPath: /html/node_modules
livenessProbe:
exec:
command:
Loading