Skip to content

Commit e3a304b

Browse files
committed
add image command for prebuilt images
1 parent 4aafd29 commit e3a304b

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

helm-charts/kuberoapp/templates/deployment-web.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ spec:
8484
{{- toYaml .Values.image.run.securityContext | nindent 12 }}
8585
{{- if eq .Values.deploymentstrategy "docker" }}
8686
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}"
87+
{{- if .Values.image.command }}
88+
command: {{ .Values.image.command }}
89+
{{- end }}
8790
{{- else }}
8891
image: "{{ .Values.image.run.repository }}:{{ .Values.image.run.tag | default "latest" }}"
8992
workingDir: /app

helm-charts/kuberoapp/templates/deployment-worker.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ spec:
8484
{{- toYaml .Values.image.run.securityContext | nindent 12 }}
8585
{{- if eq .Values.deploymentstrategy "docker" }}
8686
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}"
87+
{{- if .Values.image.command }}
88+
command: {{ .Values.image.command }}
89+
{{- end }}
8790
{{- else }}
8891
image: "{{ .Values.image.run.repository }}:{{ .Values.image.run.tag | default "latest" }}"
8992
workingDir: /app

helm-charts/kuberoapp/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ image:
2626
tag: main
2727
pullPolicy: Always
2828
containerPort: 8080
29+
command: "node index.js"
2930
fetch:
3031
repository: ghcr.io/kubero-dev/buildpacks/fetch
3132
tag: main

0 commit comments

Comments
 (0)