testdays: Have the application create the database for us
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
058b01bc87
commit
1119061f7c
1 changed files with 9 additions and 0 deletions
|
@ -13,6 +13,15 @@ spec:
|
|||
deploymentconfig: testdays
|
||||
strategy:
|
||||
type: Recreate
|
||||
recreateParams:
|
||||
mid:
|
||||
failurePolicy: Abort
|
||||
execNewPod:
|
||||
containerName: testdays
|
||||
command: ["/usr/bin/python3", "/opt/app-root/src/testdays/cli", "init_db"]
|
||||
env:
|
||||
- name: PYTHONPATH
|
||||
value: /opt/app-root/src
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue