Skip to content

Commit 7bcaad7

Browse files
committed
address PR feedback
* follow Docker guidelines for supervisord logging * move healthcheck to Dockerfile from compose file
1 parent 139e4cf commit 7bcaad7

5 files changed

Lines changed: 10 additions & 13 deletions

File tree

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ RUN apt-get remove -y zip
163163

164164
USER $APP_USER
165165

166+
# =============================================================================
167+
# Healthcheck
168+
HEALTHCHECK --interval=5s --timeout=5s --start-period=10s --retries=10 CMD curl -s http://localhost:8087 > /dev/null || exit 1
169+
166170
# =============================================================================
167171
# Default command
168172

docker-compose.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ services:
1616
- WOWZA_MANAGER_USER=${WOWZA_MANAGER_USER}
1717
- WOWZA_MANAGER_PASSWORD=${WOWZA_MANAGER_PASSWORD}
1818
- WOWZA_ENABLE_DOCUMENTATION_SERVER=yes
19-
healthcheck:
20-
test: curl -s http://localhost:8087 > /dev/null || exit 1
21-
interval: 5s
22-
timeout: 5s
23-
retries: 10
24-
# Uncommment these when editing / running tests locally.
19+
# Uncomment these when editing / running tests locally.
2520
# (Note: slows performance on macOS Catalina, for some reason.)
2621
# volumes:
2722
# - ./test:/opt/app/test

supervisor_templates/conf.d/WowzaStreamingEngine.conf.tmpl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ command=/usr/local/WowzaStreamingEngine/bin/startup.sh
55
user=${APP_USER}
66
autostart=true
77
autorestart=true
8-
stdout_logfile=/dev/stdout
8+
stdout_logfile=/dev/fd/1
99
stdout_logfile_maxbytes = 0
10-
stderr_logfile=/dev/stderr
11-
stderr_logfile_maxbytes = 0
10+
redirect_stderr=true

supervisor_templates/conf.d/WowzaStreamingEngineManager.conf.tmpl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ command=/usr/local/WowzaStreamingEngine/manager/bin/startmgr.sh
55
user=${APP_USER}
66
autostart=true
77
autorestart=true
8-
stdout_logfile=/dev/stdout
8+
stdout_logfile=/dev/fd/1
99
stdout_logfile_maxbytes = 0
10-
stderr_logfile=/dev/stderr
11-
stderr_logfile_maxbytes = 0
10+
redirect_stderr=true

supervisor_templates/supervisord.conf.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ file=${SUPERVISORD_SOCKET_FILE} ; (the path to the socket file)
55
chmod=0700 ; socket file mode (default 0700)
66

77
[supervisord]
8-
logfile=/dev/stdout ; send supervisor logs to stdout
8+
logfile=/dev/null ; send supervisor logs to stdout
99
logfile_maxbytes = 0 ; forcibly disable log rotation
1010
pidfile=${SUPERVISORD_PID_FILE} ; (supervisord pidfile;default supervisord.pid)
1111
childlogdir=/usr/local/supervisor ; ('AUTO' child log dir, default $TEMP)

0 commit comments

Comments
 (0)