mirror of
https://github.com/ansible/awx.git
synced 2026-02-17 03:00:04 -03:30
remove honcho in the dev environment (just use foregrounded supervisor)
using supervisor gives us the ability to restart entire processes on code change (like the dispatcher and callback receiver)
This commit is contained in:
@@ -19,7 +19,7 @@ RUN python3 -m ensurepip
|
||||
RUN pip3 install virtualenv
|
||||
RUN /usr/bin/ssh-keygen -q -t rsa -N "" -f /root/.ssh/id_rsa
|
||||
RUN mkdir -p /data/db
|
||||
RUN pip3 install honcho && pip install supervisor
|
||||
RUN pip install supervisor
|
||||
|
||||
ADD requirements/requirements.txt \
|
||||
requirements/requirements_git.txt \
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
nginx: make nginx
|
||||
runworker: make runworker
|
||||
daphne: make daphne
|
||||
dispatcher: make dispatcher
|
||||
receiver: make receiver
|
||||
uwsgi: make uwsgi
|
||||
jupyter: make jupyter
|
||||
@@ -5,9 +5,4 @@ set +x
|
||||
|
||||
cd /awx_devel
|
||||
# Start the services
|
||||
if [ -f "/awx_devel/tools/docker-compose/use_dev_supervisor.txt" ]; then
|
||||
make supervisor
|
||||
else
|
||||
export PYTHONIOENCODING=utf_8
|
||||
honcho start -f "tools/docker-compose/Procfile"
|
||||
fi
|
||||
make supervisor
|
||||
|
||||
@@ -32,6 +32,10 @@ command = make uwsgi
|
||||
autostart = true
|
||||
autorestart = true
|
||||
redirect_stderr=true
|
||||
stopwaitsecs = 1
|
||||
stopsignal=KILL
|
||||
stopasgroup=true
|
||||
killasgroup=true
|
||||
stdout_logfile=/dev/fd/1
|
||||
stdout_logfile_maxbytes=0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user