Make docker environment interoperable with supervisorctl commands

This commit is contained in:
AlanCoding
2018-12-03 21:42:19 -05:00
parent 2b5210842d
commit 77d2364022
4 changed files with 12 additions and 12 deletions

View File

@@ -63,6 +63,6 @@ CMD /start_development.sh
RUN for dir in /var/lib/awx/ /projects /.ansible /var/log/nginx /var/lib/nginx /.local; \
do mkdir -p $dir; chmod -R g+rwx $dir; chgrp -R root $dir; done
RUN for file in /etc/passwd /supervisor.conf \
RUN for file in /etc/passwd /etc/supervisord.conf \
/venv/awx/lib/python2.7/site-packages/awx.egg-link /var/run/nginx.pid; \
do touch $file; chmod -R g+rwx $file; chgrp -R root $file; done

View File

@@ -28,7 +28,7 @@ else
fi
make awx-link
yes | cp -rf /awx_devel/tools/docker-compose/supervisor.conf /supervisor.conf
yes | cp -rf /awx_devel/tools/docker-compose/supervisor.conf /etc/supervisord.conf
# AWX bootstrapping
make version_file

View File

@@ -3,7 +3,7 @@ umask = 022
minfds = 4096
nodaemon=true
[program:dispatcher]
[program:awx-dispatcher]
command = awx-manage run_dispatcher
autostart = true
autorestart = true
@@ -11,7 +11,7 @@ redirect_stderr=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
[program:receiver]
[program:awx-receiver]
command = python manage.py run_callback_receiver
autostart = true
autorestart = true
@@ -19,7 +19,7 @@ redirect_stderr=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
[program:runworker]
[program:awx-runworker]
command = python manage.py runworker
autostart = true
autorestart = true
@@ -27,7 +27,7 @@ redirect_stderr=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
[program:uwsgi]
[program:awx-uwsgi]
command = make uwsgi
autostart = true
autorestart = true
@@ -35,7 +35,7 @@ redirect_stderr=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
[program:daphne]
[program:awx-daphne]
command = daphne -b 0.0.0.0 -p 8051 awx.asgi:channel_layer
autostart = true
autorestart = true
@@ -43,7 +43,7 @@ redirect_stderr=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
[program:nginx]
[program:awx-nginx]
command = nginx -g "daemon off;"
autostart = true
autorestart = true
@@ -51,7 +51,7 @@ redirect_stderr=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
[program:jupyter]
[program:awx-jupyter]
command = make jupyter
autostart = true
autorestart = true
@@ -59,8 +59,8 @@ redirect_stderr=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
[group:awx-processes]
programs=dispatcher,receiver,runworker,uwsgi,daphne,nginx
[group:tower-processes]
programs=awx-dispatcher,awx-receiver,awx-runworker,awx-uwsgi,awx-daphne,awx-nginx
priority=5
[unix_http_server]