From 3182890d94b24519863c4eb42128eca2c18736c4 Mon Sep 17 00:00:00 2001 From: Moctar Date: Fri, 3 Nov 2023 12:14:07 +0100 Subject: [PATCH 1/3] PHRAS-3923 cronjob run entrypoint --- charts/phraseanet/templates/cronjob_phraseanet.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/charts/phraseanet/templates/cronjob_phraseanet.yaml b/charts/phraseanet/templates/cronjob_phraseanet.yaml index d3c9f61..7cdf4aa 100644 --- a/charts/phraseanet/templates/cronjob_phraseanet.yaml +++ b/charts/phraseanet/templates/cronjob_phraseanet.yaml @@ -50,12 +50,11 @@ spec: containers: - name: {{ $cronjob.name }} image: {{ $.Values.image.registry }}/phraseanet-worker:{{ $.Values.image.tag.phraseanet }} - securityContext: - runAsUser: 1000 + securityContext: {} command: - /bin/bash - -c - - {{ $cronjob.command }} + - docker/phraseanet/worker/entrypoint.sh; export TERM=xterm; su app -c {{ $cronjob.command }} volumeMounts: - name: phraseanet-config mountPath: "/var/alchemy/Phraseanet/config" From 77df1ea96bd5ada955e2b0a688a3b421098fad72 Mon Sep 17 00:00:00 2001 From: Moctar Date: Fri, 3 Nov 2023 12:14:52 +0100 Subject: [PATCH 2/3] bump helm chart to 0.26.0 --- charts/phraseanet/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/phraseanet/Chart.yaml b/charts/phraseanet/Chart.yaml index 0219891..3593019 100644 --- a/charts/phraseanet/Chart.yaml +++ b/charts/phraseanet/Chart.yaml @@ -14,7 +14,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 0.25.0 +version: 0.26.0 # This is the version number of the application being deployed. This version number should be From 0f71a84e513f61196143664422dec6f57dabd942 Mon Sep 17 00:00:00 2001 From: Moctar Date: Fri, 3 Nov 2023 12:39:46 +0100 Subject: [PATCH 3/3] add quotes to run full cron command --- charts/phraseanet/templates/cronjob_phraseanet.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/phraseanet/templates/cronjob_phraseanet.yaml b/charts/phraseanet/templates/cronjob_phraseanet.yaml index 7cdf4aa..9ed8792 100644 --- a/charts/phraseanet/templates/cronjob_phraseanet.yaml +++ b/charts/phraseanet/templates/cronjob_phraseanet.yaml @@ -54,7 +54,7 @@ spec: command: - /bin/bash - -c - - docker/phraseanet/worker/entrypoint.sh; export TERM=xterm; su app -c {{ $cronjob.command }} + - docker/phraseanet/worker/entrypoint.sh; export TERM=xterm; su app -c "{{ $cronjob.command }}" volumeMounts: - name: phraseanet-config mountPath: "/var/alchemy/Phraseanet/config"