deploy: use new bootstrap command

This commit is contained in:
Jens Langhammer 2020-02-23 20:12:48 +01:00
parent 6a7545fd43
commit 6e9d297f02
3 changed files with 14 additions and 3 deletions

View File

@ -23,6 +23,8 @@ services:
server:
image: beryju/passbook:${SERVER_TAG:-latest}
command:
- ./manage.py
- bootstrap
- uwsgi
- uwsgi.ini
environment:
@ -42,6 +44,8 @@ services:
worker:
image: beryju/passbook:${SERVER_TAG:-latest}
command:
- ./manage.py
- bootstrap
- celery
- worker
- --autoscale=10,3

View File

@ -27,9 +27,12 @@ spec:
initContainers:
- name: passbook-database-migrations
image: "beryju/passbook:{{ .Values.image.tag }}"
imagePullPolicy: Always
command:
- ./manage.py
args:
- bootstrap
- ./manage.py
- migrate
volumeMounts:
- mountPath: /etc/passbook
@ -57,10 +60,12 @@ spec:
containers:
- name: {{ .Chart.Name }}
image: "beryju/passbook:{{ .Values.image.tag }}"
imagePullPolicy: IfNotPresent
imagePullPolicy: Always
command:
- uwsgi
- ./manage.py
args:
- bootstrap
- uwsgi
- uwsgi.ini
volumeMounts:
- mountPath: /etc/passbook

View File

@ -29,8 +29,10 @@ spec:
image: "beryju/passbook:{{ .Values.image.tag }}"
imagePullPolicy: IfNotPresent
command:
- celery
- ./manage.py
args:
- bootstrap
- celery
- worker
- --autoscale=10,3
- -E