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

View File

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

View File

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