ci: Deploy rabbitmq with a password (#7239)
This commit is contained in:
parent
b36ff61805
commit
ad34104f68
|
@ -18,7 +18,11 @@ DATABASES = {
|
||||||
|
|
||||||
SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY")
|
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_IDNITS_BINARY = "/usr/local/bin/idnits"
|
||||||
IDSUBMIT_REPOSITORY_PATH = "/test/id/"
|
IDSUBMIT_REPOSITORY_PATH = "/test/id/"
|
||||||
|
|
|
@ -179,7 +179,7 @@ celery:
|
||||||
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command: ["celery", "inspect", "ping"]
|
command: ["celery", "-A", "ietf", "inspect", "ping"]
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
|
|
||||||
|
@ -233,7 +233,7 @@ celery:
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 60
|
failureThreshold: 60
|
||||||
exec:
|
exec:
|
||||||
command: ["celery", "inspect", "ping"]
|
command: ["celery", "-A", "ietf", "inspect", "ping"]
|
||||||
|
|
||||||
# Additional volumes on the output Deployment definition.
|
# Additional volumes on the output Deployment definition.
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -290,7 +290,7 @@ beat:
|
||||||
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command: ["celery", "inspect", "ping"]
|
command: ["celery", "-A", "ietf", "inspect", "ping"]
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
|
|
||||||
|
@ -344,7 +344,7 @@ beat:
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 60
|
failureThreshold: 60
|
||||||
exec:
|
exec:
|
||||||
command: ["celery", "inspect", "ping"]
|
command: ["celery", "-A", "ietf", "inspect", "ping"]
|
||||||
|
|
||||||
# Additional volumes on the output Deployment definition.
|
# Additional volumes on the output Deployment definition.
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -389,9 +389,9 @@ beat:
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
name: "rabbitmq"
|
name: "rabbitmq"
|
||||||
image:
|
image:
|
||||||
repository: "rabbitmq"
|
repository: "ghcr.io/ietf-tools/datatracker-mq"
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
tag: "3.13"
|
tag: "3.12-alpine"
|
||||||
|
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
|
@ -567,4 +567,4 @@ env:
|
||||||
DBUSER: "django"
|
DBUSER: "django"
|
||||||
DBPASS: "RkTkDPFnKpko"
|
DBPASS: "RkTkDPFnKpko"
|
||||||
DJANGO_SECRET_KEY: "PDwXboUq!=hPjnrtG2=ge#N$Dwy+wn@uivrugwpic8mxyPfHk"
|
DJANGO_SECRET_KEY: "PDwXboUq!=hPjnrtG2=ge#N$Dwy+wn@uivrugwpic8mxyPfHk"
|
||||||
CELERY_BROKER_URL: "amqp://datatracker:frog@rabbitmq/dt"
|
CELERY_PASSWORD: "this-is-a-secret"
|
||||||
|
|
Loading…
Reference in a new issue