Upgrade Tornjak to image v1.2.2 (#328)
Upgrade Tornjak image to version v1.2.2 (https://github.com/spiffe/tornjak/releases/tag/v1.2.2) - Resolving issue #326 (remove an emergency patch) - Refactor and improve Tornajk image build process --------- Signed-off-by: Mariusz Sabath <[email protected]> Co-authored-by: Edwin Buck <[email protected]>
This commit is contained in:
co-authored by
Edwin Buck
parent
cfa9f78885
commit
52e5c24947
@@ -28,13 +28,6 @@ spec:
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
ln -s /tmp/env.js build/env.js
|
||||
npx react-inject-env set -n /tmp/env.js
|
||||
serve -s build -p $PORT_FE
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 3000
|
||||
@@ -61,6 +54,8 @@ spec:
|
||||
volumeMounts:
|
||||
- name: cache
|
||||
mountPath: /usr/src/app/node_modules/.cache
|
||||
- name: env
|
||||
mountPath: /usr/src/app/build/tmp
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
@@ -80,3 +75,5 @@ spec:
|
||||
volumes:
|
||||
- name: cache
|
||||
emptyDir: {}
|
||||
- name: env
|
||||
emptyDir: {}
|
||||
|
||||
Reference in New Issue
Block a user