-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7837264
commit 7f2b5c4
Showing
2 changed files
with
5 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ spec: | |
- args: | ||
- /bin/bash | ||
- -c | ||
- aap-eda-manage migrate && aap-eda-manage runserver 0.0.0.0:8000 | ||
- aap-eda-manage migrate && scripts/create_superuser.sh && aap-eda-manage runserver 0.0.0.0:8000 | ||
env: | ||
- name: EDA_DATABASE_URL | ||
value: postgresql+asyncpg://postgres:secret@postgres/eda | ||
|
@@ -56,9 +56,5 @@ spec: | |
- name: DJANGO_SUPERUSER_EMAIL | ||
value: ${DJANGO_SUPERUSER_EMAIL:[email protected]} | ||
image: docker.io/alpine:latest | ||
command: [ 'sh', '-c', "until nslookup eda-${EDA_DB_HOST}.$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace).svc.cluster.local; do echo waiting for ${EDA_DB_HOST}; sleep 2; done" ] | ||
- name: add-superuser | ||
image: aap-eda | ||
imagePullPolicy: Never | ||
command: [ 'sh', '-c', "aap-eda-manage createsuperuser --noinput" ] | ||
command: [ 'sh', '-c', "until nslookup ${EDA_DB_HOST}.$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace).svc.cluster.local; do echo waiting for ${EDA_DB_HOST}; sleep 2; done" ] | ||
status: {} |