Skip to content

Commit

Permalink
Fixup initContainer to run migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
chosak committed Nov 25, 2024
1 parent c6eda3e commit c6040c5
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ initContainers:
pullPolicy: IfNotPresent
tag: "latest"
port: 8000
env:
- name: DJANGO_SETTINGS_MODULE
value: "django_application.settings.helm_eks"
commands: ["sh", "-c"]
command: ["/bin/sh"]
args:
- |
python friendly-umbrella/manage.py makemigrations && python friendly-umbrella/manage.py migrate
- -c
- python manage.py migrate

containers:
- name: friendly-umbrella
Expand All @@ -22,9 +19,6 @@ containers:
pullPolicy: IfNotPresent
tag: "latest"
port: 8000
env:
- name: DJANGO_SETTINGS_MODULE
value: "django_application.settings.helm_eks"

image:
repository: friendly-umbrella
Expand Down

0 comments on commit c6040c5

Please sign in to comment.