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 3ab5c75
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ initContainers:
pullPolicy: IfNotPresent
tag: "latest"
port: 8000
env:
- name: DJANGO_SETTINGS_MODULE
value: "django_application.settings.helm_eks"
commands: ["sh", "-c"]
args:
- |
python friendly-umbrella/manage.py makemigrations && python friendly-umbrella/manage.py migrate
- python manage.py migrate

containers:
- name: friendly-umbrella
Expand All @@ -22,9 +18,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 3ab5c75

Please sign in to comment.