Compare commits
3 Commits
eed630519a
...
8d085f1f93
Author | SHA1 | Date | |
---|---|---|---|
8d085f1f93 | |||
7338ee133e | |||
082c86667a |
@ -28,11 +28,17 @@ RUN echo "${DOCKER_PRUNE_INTERVAL} echo Pruning docker volumes && docker volume
|
|||||||
# Remove warning from supervisord about running as root
|
# Remove warning from supervisord about running as root
|
||||||
RUN sed -i '/\[supervisord\]/a user=root' /etc/supervisord.conf
|
RUN sed -i '/\[supervisord\]/a user=root' /etc/supervisord.conf
|
||||||
|
|
||||||
|
# Add stdout/stderr logs for docker
|
||||||
|
RUN sed -i '/\[program:dockerd\]/a stdout_logfile_maxbytes=0' /etc/supervisord.conf && \
|
||||||
|
sed -i '/\[program:dockerd\]/a stdout_logfile=/dev/fd/1' /etc/supervisord.conf && \
|
||||||
|
sed -i '/\[program:dockerd\]/a redirect_stderr=true' /etc/supervisord.conf
|
||||||
|
|
||||||
# Add Cron to supervisord
|
# Add Cron to supervisord
|
||||||
RUN echo "" >> /etc/supervisord.conf && \
|
RUN echo "" >> /etc/supervisord.conf && \
|
||||||
echo "[program:cron]" >> /etc/supervisord.conf && \
|
echo "[program:cron]" >> /etc/supervisord.conf && \
|
||||||
echo "command=/usr/sbin/crond -f" >> /etc/supervisord.conf && \
|
echo "command=/usr/sbin/crond -f" >> /etc/supervisord.conf && \
|
||||||
echo "stdout_logfile=/dev/fd/1" >> /etc/supervisord.conf && \
|
echo "stdout_logfile=/dev/fd/1" >> /etc/supervisord.conf && \
|
||||||
echo "stdout_logfile_maxbytes=0" >> /etc/supervisord.conf
|
echo "stdout_logfile_maxbytes=0" >> /etc/supervisord.conf && \
|
||||||
|
echo "redirect_stderr=true" >> /etc/supervisord.conf
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
|
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
|
Loading…
x
Reference in New Issue
Block a user