mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Run a receptor node in the dev environment
This commit is contained in:
parent
45a0084f78
commit
3cbf384ad1
@ -135,6 +135,11 @@ RUN python3 -m ensurepip && pip3 install "virtualenv < 20" supervisor {% if buil
|
||||
|
||||
RUN rm -rf /root/.cache && rm -rf /tmp/*
|
||||
|
||||
# Install Receptor
|
||||
RUN cd /usr/local/bin && \
|
||||
curl -L http://nightlies.testing.ansible.com/receptor/receptor --output receptor && \
|
||||
chmod a+x receptor
|
||||
|
||||
# Install OpenShift CLI
|
||||
RUN cd /usr/local/bin && \
|
||||
curl -L https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz | \
|
||||
@ -216,6 +221,7 @@ RUN for dir in \
|
||||
/var/log/nginx \
|
||||
/var/lib/postgresql \
|
||||
/var/run/supervisor \
|
||||
/var/run/receptor \
|
||||
/var/lib/nginx ; \
|
||||
do mkdir -m 0775 -p $dir ; chmod g+rw $dir ; chgrp root $dir ; done && \
|
||||
for file in \
|
||||
|
||||
@ -32,6 +32,7 @@ services:
|
||||
- "./redis/redis_socket_ha_1:/var/run/redis/"
|
||||
- "./docker-compose/supervisor.conf:/etc/supervisord.conf"
|
||||
ports:
|
||||
- "2222:2222"
|
||||
- "5899-5999:5899-5999"
|
||||
awx-2:
|
||||
user: ${CURRENT_UID}
|
||||
@ -51,6 +52,7 @@ services:
|
||||
- "./redis/redis_socket_ha_2:/var/run/redis/"
|
||||
- "./docker-compose/supervisor.conf:/etc/supervisord.conf"
|
||||
ports:
|
||||
- "2223:2222"
|
||||
- "7899-7999:7899-7999"
|
||||
awx-3:
|
||||
user: ${CURRENT_UID}
|
||||
@ -70,6 +72,7 @@ services:
|
||||
- "./redis/redis_socket_ha_3:/var/run/redis/"
|
||||
- "./docker-compose/supervisor.conf:/etc/supervisord.conf"
|
||||
ports:
|
||||
- "2224:2222"
|
||||
- "8899-8999:8899-8999"
|
||||
redis_1:
|
||||
user: ${CURRENT_UID}
|
||||
|
||||
@ -14,6 +14,7 @@ services:
|
||||
SDB_PORT: 7899
|
||||
AWX_GROUP_QUEUES: tower
|
||||
ports:
|
||||
- "2222:2222"
|
||||
- "8888:8888"
|
||||
- "8080:8080"
|
||||
- "8013:8013"
|
||||
|
||||
@ -83,6 +83,14 @@ redirect_stderr=true
|
||||
stdout_logfile=/dev/fd/1
|
||||
stdout_logfile_maxbytes=0
|
||||
|
||||
[program:awx-receptor]
|
||||
command = receptor --node id=%(ENV_HOSTNAME)s --control-service filename=/var/run/receptor/receptor.sock --tcp-listener port=2222
|
||||
autostart = true
|
||||
autorestart = true
|
||||
stopsignal = KILL
|
||||
stopasgroup = true
|
||||
killasgroup = true
|
||||
|
||||
[group:tower-processes]
|
||||
programs=awx-dispatcher,awx-receiver,awx-uwsgi,awx-daphne,awx-nginx,awx-wsbroadcast,awx-rsyslogd
|
||||
priority=5
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user