deploy: use new bootstrap command
This commit is contained in:
parent
6a7545fd43
commit
6e9d297f02
|
@ -23,6 +23,8 @@ services:
|
||||||
server:
|
server:
|
||||||
image: beryju/passbook:${SERVER_TAG:-latest}
|
image: beryju/passbook:${SERVER_TAG:-latest}
|
||||||
command:
|
command:
|
||||||
|
- ./manage.py
|
||||||
|
- bootstrap
|
||||||
- uwsgi
|
- uwsgi
|
||||||
- uwsgi.ini
|
- uwsgi.ini
|
||||||
environment:
|
environment:
|
||||||
|
@ -42,6 +44,8 @@ services:
|
||||||
worker:
|
worker:
|
||||||
image: beryju/passbook:${SERVER_TAG:-latest}
|
image: beryju/passbook:${SERVER_TAG:-latest}
|
||||||
command:
|
command:
|
||||||
|
- ./manage.py
|
||||||
|
- bootstrap
|
||||||
- celery
|
- celery
|
||||||
- worker
|
- worker
|
||||||
- --autoscale=10,3
|
- --autoscale=10,3
|
||||||
|
|
|
@ -27,9 +27,12 @@ spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: passbook-database-migrations
|
- name: passbook-database-migrations
|
||||||
image: "beryju/passbook:{{ .Values.image.tag }}"
|
image: "beryju/passbook:{{ .Values.image.tag }}"
|
||||||
|
imagePullPolicy: Always
|
||||||
command:
|
command:
|
||||||
- ./manage.py
|
- ./manage.py
|
||||||
args:
|
args:
|
||||||
|
- bootstrap
|
||||||
|
- ./manage.py
|
||||||
- migrate
|
- migrate
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /etc/passbook
|
- mountPath: /etc/passbook
|
||||||
|
@ -57,10 +60,12 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "beryju/passbook:{{ .Values.image.tag }}"
|
image: "beryju/passbook:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: Always
|
||||||
command:
|
command:
|
||||||
- uwsgi
|
- ./manage.py
|
||||||
args:
|
args:
|
||||||
|
- bootstrap
|
||||||
|
- uwsgi
|
||||||
- uwsgi.ini
|
- uwsgi.ini
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /etc/passbook
|
- mountPath: /etc/passbook
|
||||||
|
|
|
@ -29,8 +29,10 @@ spec:
|
||||||
image: "beryju/passbook:{{ .Values.image.tag }}"
|
image: "beryju/passbook:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- celery
|
- ./manage.py
|
||||||
args:
|
args:
|
||||||
|
- bootstrap
|
||||||
|
- celery
|
||||||
- worker
|
- worker
|
||||||
- --autoscale=10,3
|
- --autoscale=10,3
|
||||||
- -E
|
- -E
|
||||||
|
|
Reference in New Issue