Skip to content

Commit

Permalink
Run a receptor node in the dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jbradberry authored and shanemcd committed Aug 25, 2020
1 parent b043b26 commit 9df01d9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions installer/roles/image_build/templates/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,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 | \
Expand Down Expand Up @@ -203,6 +208,7 @@ RUN for dir in \
/var/log/tower \
/var/log/nginx \
/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 \
Expand Down
3 changes: 3 additions & 0 deletions tools/docker-compose-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}
Expand All @@ -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}
Expand Down
1 change: 1 addition & 0 deletions tools/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ services:
SDB_PORT: 7899
AWX_GROUP_QUEUES: tower
ports:
- "2222:2222"
- "8888:8888"
- "8080:8080"
- "8013:8013"
Expand Down
8 changes: 8 additions & 0 deletions tools/docker-compose/supervisor.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9df01d9

Please sign in to comment.