From 331de5b2e7a3c4902b6e91dd057d9088fb8a4b91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= Date: Sat, 23 Jan 2021 22:02:00 +0100 Subject: [PATCH] oraculum: Simplify commands to run the container --- .../oraculum/templates/deploymentconfig.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/roles/openshift-apps/oraculum/templates/deploymentconfig.yml b/roles/openshift-apps/oraculum/templates/deploymentconfig.yml index e6b46d7bed..212662892c 100644 --- a/roles/openshift-apps/oraculum/templates/deploymentconfig.yml +++ b/roles/openshift-apps/oraculum/templates/deploymentconfig.yml @@ -116,10 +116,7 @@ spec: failurePolicy: Abort execNewPod: containerName: oraculum-worker - # 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 - command: ["/bin/sh"] - args: ["-c", "python /opt/app-root/src/oraculum/cli.py init_db && /usr/bin/celery -A oraculum.celery_app worker -c 2 --loglevel=INFO"] + command: ["/usr/bin/celery", "-A", "oraculum.celery_app", "worker", "-c", "2", "--loglevel=INFO"] volumes: - oraculum-secret-volume template: @@ -200,10 +197,7 @@ spec: failurePolicy: Abort execNewPod: containerName: oraculum-beat - # 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 - command: ["/bin/sh"] - args: ["-c", "python /opt/app-root/src/oraculum/cli.py init_db && /usr/bin/celery -A oraculum.celery_app beat --loglevel=INFO"] + command: ["/usr/bin/celery", "-A", "oraculum.celery_app", "beat", "--loglevel=INFO"] volumes: - oraculum-secret-volume template: