Skip to content

Commit

Permalink
Merge pull request #18 from alchemy-fr/PHRAS-3923-cronjob-run-entrypoint
Browse files Browse the repository at this point in the history
PHRAS-3923 cronjob run entrypoint
  • Loading branch information
moctardiouf authored Nov 3, 2023
2 parents 43e5cd2 + 0f71a84 commit 11c7662
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/phraseanet/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions charts/phraseanet/templates/cronjob_phraseanet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 11c7662

Please sign in to comment.