ci: Deploy rabbitmq with a password (#7239)

This commit is contained in:
Jennifer Richards 2024-03-20 16:13:26 +10:00 committed by Nicolas Giard
parent b36ff61805
commit ad34104f68
2 changed files with 12 additions and 8 deletions

View file

@ -18,7 +18,11 @@ DATABASES = {
SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY")
CELERY_BROKER_URL = os.environ.get("CELERY_BROKER_URL")
CELERY_BROKER_URL = "amqp://datatracker:{password}@{host}/{queue}".format(
host=os.environ.get("RABBITMQ_HOSTNAME", "rabbitmq"),
password=os.environ.get("CELERY_PASSWORD", ""),
queue=os.environ.get("RABBITMQ_QUEUE", "dt")
)
IDSUBMIT_IDNITS_BINARY = "/usr/local/bin/idnits"
IDSUBMIT_REPOSITORY_PATH = "/test/id/"

View file

@ -179,7 +179,7 @@ celery:
livenessProbe:
exec:
command: ["celery", "inspect", "ping"]
command: ["celery", "-A", "ietf", "inspect", "ping"]
periodSeconds: 30
timeoutSeconds: 5
@ -233,7 +233,7 @@ celery:
successThreshold: 1
failureThreshold: 60
exec:
command: ["celery", "inspect", "ping"]
command: ["celery", "-A", "ietf", "inspect", "ping"]
# Additional volumes on the output Deployment definition.
volumes:
@ -290,7 +290,7 @@ beat:
livenessProbe:
exec:
command: ["celery", "inspect", "ping"]
command: ["celery", "-A", "ietf", "inspect", "ping"]
periodSeconds: 30
timeoutSeconds: 5
@ -344,7 +344,7 @@ beat:
successThreshold: 1
failureThreshold: 60
exec:
command: ["celery", "inspect", "ping"]
command: ["celery", "-A", "ietf", "inspect", "ping"]
# Additional volumes on the output Deployment definition.
volumes:
@ -389,9 +389,9 @@ beat:
rabbitmq:
name: "rabbitmq"
image:
repository: "rabbitmq"
repository: "ghcr.io/ietf-tools/datatracker-mq"
pullPolicy: IfNotPresent
tag: "3.13"
tag: "3.12-alpine"
imagePullSecrets: []
nameOverride: ""
@ -567,4 +567,4 @@ env:
DBUSER: "django"
DBPASS: "RkTkDPFnKpko"
DJANGO_SECRET_KEY: "PDwXboUq!=hPjnrtG2=ge#N$Dwy+wn@uivrugwpic8mxyPfHk"
CELERY_BROKER_URL: "amqp://datatracker:frog@rabbitmq/dt"
CELERY_PASSWORD: "this-is-a-secret"