waiverdb: Update command for the new container image
This commit is contained in:
parent
3228a3646a
commit
c3942af631
1 changed files with 9 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: DeploymentConfig
|
kind: DeploymentConfig
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -18,7 +18,14 @@ spec:
|
||||||
failurePolicy: Abort
|
failurePolicy: Abort
|
||||||
execNewPod:
|
execNewPod:
|
||||||
containerName: web
|
containerName: web
|
||||||
command: [ /bin/sh, -i, -c, "waiverdb wait-for-db && waiverdb db upgrade" ]
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- >-
|
||||||
|
if [ -f /app/entrypoint.sh ];
|
||||||
|
then /app/entrypoint.sh waiverdb db upgrade;
|
||||||
|
else waiverdb db upgrade;
|
||||||
|
fi
|
||||||
volumes:
|
volumes:
|
||||||
- config-volume
|
- config-volume
|
||||||
- secret-volume
|
- secret-volume
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue