testdays: Have the application create the database for us

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-10-02 10:58:25 +02:00
parent 058b01bc87
commit 1119061f7c

View file

@ -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: