oraculum: Shuffle args and command a bit

This commit is contained in:
František Zatloukal 2021-01-23 21:23:21 +01:00
parent e1b2416889
commit 26e3687439

View file

@ -118,8 +118,8 @@ spec:
containerName: oraculum-worker containerName: oraculum-worker
# Oraculum would automatically proceed with upgrade_db if necessary # Oraculum would automatically proceed with upgrade_db if necessary
# init_db isn't dropping anything, so it's safe to call every time the pod starts # init_db isn't dropping anything, so it's safe to call every time the pod starts
command: ["/bin/sh","-c"] command: ["/bin/sh"]
args: ["python /opt/app-root/src/oraculum/cli.py init_db && /usr/bin/celery -A oraculum.celery_app worker -c 2 --loglevel=INFO"] args: ["-c", "python /opt/app-root/src/oraculum/cli.py init_db && /usr/bin/celery -A oraculum.celery_app worker -c 2 --loglevel=INFO"]
volumes: volumes:
- oraculum-secret-volume - oraculum-secret-volume
template: template:
@ -202,8 +202,8 @@ spec:
containerName: oraculum-beat containerName: oraculum-beat
# Oraculum would automatically proceed with upgrade_db if necessary # Oraculum would automatically proceed with upgrade_db if necessary
# init_db isn't dropping anything, so it's safe to call every time the pod starts # init_db isn't dropping anything, so it's safe to call every time the pod starts
command: ["/bin/sh","-c"] command: ["/bin/sh"]
args: ["python /opt/app-root/src/oraculum/cli.py init_db && /usr/bin/celery -A oraculum.celery_app beat --loglevel=INFO"] args: ["-c", "python /opt/app-root/src/oraculum/cli.py init_db && /usr/bin/celery -A oraculum.celery_app beat --loglevel=INFO"]
volumes: volumes:
- oraculum-secret-volume - oraculum-secret-volume
template: template: