diff --git a/Dockerfile b/Dockerfile index 3068d01358bc15a7d7fc1e04127b7aaa76f59258..ea8819ec3ba01a2855c174acb1a181eb244da5f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,6 +35,7 @@ RUN apt-get install --install-recommends --assume-yes \ COPY docker/supervisord.conf /etc/supervisor/supervisord.conf COPY docker/supervisord-apache2.conf /etc/supervisor/conf.d/apache2.conf +COPY docker/supervisord-shibd.conf /etc/supervisor/conf.d/shibd.conf COPY docker/shibboleth-ds /etc/shibboleth-ds COPY docker/apache-config /etc/apache2/sites-available/gracedb.conf COPY docker/login.ligo.org.cert.LIGOCA.pem /etc/shibboleth/login.ligo.org.cert.LIGOCA.pem @@ -56,6 +57,7 @@ RUN pip install --upgrade setuptools wheel && \ # Give pip-installed packages priority over distribution packages ENV PYTHONPATH /usr/local/lib/python2.7/dist-packages:$PYTHONPATH +ENV ENABLE_SHIBD false ENV VIRTUAL_ENV dummy # Expose port and run Gunicorn diff --git a/docker/supervisord-shibd.conf b/docker/supervisord-shibd.conf index e950085b3a5250e320cc468fb4f0b5929bffe42e..c58279bd9b1c96a8691f42f0e90fbaf64cca9a9b 100644 --- a/docker/supervisord-shibd.conf +++ b/docker/supervisord-shibd.conf @@ -1,4 +1,5 @@ [program:shibd] +autostart=%(ENV_ENABLE_SHIBD)s command=/usr/sbin/shibd -F user=_shibd group=_shibd