-
Notifications
You must be signed in to change notification settings - Fork 0
AP-515: add 4.9.6 image for cross-platform testing #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
7ed9ecd
59bf731
e953159
7b8024e
5e5c7b8
139e4cf
7bcaad7
e939418
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| #!/bin/bash | ||
| # this is a BerkeleyLibrary modified version of the WSE startup script | ||
|
|
||
| # check for root access. If not, put up message and exit | ||
| # if [ "$(/usr/bin/id -u)" -ne "0" ] ; then | ||
| # echo "The Wowza Streaming Engine requires root access to start. Please run script again using sudo." | ||
| # exit | ||
| # fi | ||
|
|
||
| systemctl >> /dev/null 2>&1 | ||
| if [ $? -eq 0 ]; then | ||
| # Restart XRM service | ||
| SERVICE_NAME="xrmd.service" | ||
| systemctl list-units --full -all | grep -Fq $SERVICE_NAME | ||
|
|
||
| if [ $? -eq 0 ]; then | ||
| echo "Restarting XRM service" | ||
| systemctl restart $SERVICE_NAME | ||
| . /opt/xilinx/xcdr/setup.sh | ||
| fi | ||
| fi | ||
|
|
||
| . /usr/local/WowzaStreamingEngine/bin/setenv.sh | ||
| mode=standalone | ||
| if [ "$#" -eq 1 ]; | ||
| then | ||
| mode=$1 | ||
| fi | ||
|
|
||
| #chmod 600 /usr/local/WowzaStreamingEngine/conf/jmxremote.password | ||
| #chmod 600 /usr/local/WowzaStreamingEngine/conf/jmxremote.access | ||
|
|
||
| # NOTE: Here you can configure the JVM's built in JMX interface. | ||
| # See the "Server Management Console and Monitoring" chapter | ||
| # of the "User's Guide" for more information on how to configure the | ||
| # remote JMX interface in the [install-dir]/conf/Server.xml file. | ||
|
|
||
| JMXOPTIONS=-Dcom.sun.management.jmxremote=true | ||
| #JMXOPTIONS="$JMXOPTIONS -Djava.rmi.server.hostname=192.168.1.7" | ||
| #JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.port=1099" | ||
| #JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.authenticate=true" | ||
| #JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.ssl=false" | ||
| #JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.password.file=$WMSCONFIG_HOME/conf/jmxremote.password" | ||
| #JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.access.file=$WMSCONFIG_HOME/conf/jmxremote.access" | ||
|
|
||
| ulimit -n 64000 > /dev/null 2>&1 | ||
|
|
||
| rc=144 | ||
| while [ $rc -eq 144 ] | ||
| do | ||
|
|
||
| WMSTUNE_OPTS=`$WMSAPP_HOME/bin/tune.sh $mode` | ||
| export LD_PRELOAD=`$WMSAPP_HOME/bin/ldpreload.sh` | ||
|
|
||
| # log interceptor com.wowza.wms.logging.LogNotify - see Javadocs for ILogNotify | ||
|
|
||
| $_EXECJAVA $WMSTUNE_OPTS $JMXOPTIONS -Dorg.slf4j.simpleLogger.defaultLogLevel=warn -Dcom.wowza.wms.runmode="$mode" -Dcom.wowza.wms.native.base="linux" -Dlog4j.configurationFile="$WMSCONFIG_HOME/conf/log4j2-config.xml" -Dcom.wowza.wms.AppHome="$WMSAPP_HOME" -Dcom.wowza.wms.ConfigURL="$WMSCONFIG_URL" -Dcom.wowza.wms.ConfigHome="$WMSCONFIG_HOME" -cp $WMSAPP_HOME/bin/wms-bootstrap.jar com.wowza.wms.bootstrap.Bootstrap start | ||
|
|
||
| rc=$? | ||
| if [ $rc -ge 10 ] && [ $rc -le 15 ] ; then | ||
| WSE_EXIT_CODE=$rc | ||
| $_EXECJAVA $WMSTUNE_OPTS $JMXOPTIONS -Dcom.wowza.wms.runmode="$mode" -Dcom.wowza.wms.native.base="linux" -Dlog4j.configurationFile="$WMSCONFIG_HOME/conf/log4j2-config.xml" -Dcom.wowza.wms.AppHome="$WMSAPP_HOME" -Dcom.wowza.wms.ConfigURL="$WMSCONFIG_URL" -Dcom.wowza.wms.ConfigHome="$WMSCONFIG_HOME" -cp $WMSAPP_HOME/bin/wms-bootstrap.jar com.wowza.wms.bootstrap.Bootstrap startLicenseUpdateServer | ||
| rc=$? | ||
| fi | ||
| done |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,11 @@ services: | |
| - WOWZA_MANAGER_USER=${WOWZA_MANAGER_USER} | ||
| - WOWZA_MANAGER_PASSWORD=${WOWZA_MANAGER_PASSWORD} | ||
| - WOWZA_ENABLE_DOCUMENTATION_SERVER=yes | ||
| healthcheck: | ||
| test: curl -s http://localhost:8087 > /dev/null || exit 1 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mentioned it in our review this morning but worth asking again here: is there a reason not to include this in the Dockerfile? That would make it easier to configure across environments, and it can still be disabled via
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed in 7bcaad7. |
||
| interval: 5s | ||
| timeout: 5s | ||
| retries: 10 | ||
| # Uncommment these when editing / running tests locally. | ||
| # (Note: slows performance on macOS Catalina, for some reason.) | ||
| # volumes: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| [program:WowzaStreamingEngine] | ||
| priority=10 | ||
| directory=/usr/local/WowzaStreamingEngine/bin | ||
| command=/usr/local/WowzaStreamingEngine/bin/startup.sh | ||
| user=${APP_USER} | ||
| autostart=true | ||
| autorestart=true | ||
| stdout_logfile=/dev/stdout | ||
| stdout_logfile_maxbytes = 0 | ||
| stderr_logfile=/dev/stderr | ||
| stderr_logfile_maxbytes = 0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| [program:WowzaStreamingEngineManager] | ||
| priority=20 | ||
| directory=/usr/local/WowzaStreamingEngine/manager/bin | ||
| command=/usr/local/WowzaStreamingEngine/manager/bin/startmgr.sh | ||
| user=${APP_USER} | ||
| autostart=true | ||
| autorestart=true | ||
| stdout_logfile=/dev/stdout | ||
| stdout_logfile_maxbytes = 0 | ||
| stderr_logfile=/dev/stderr | ||
| stderr_logfile_maxbytes = 0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| ; supervisor config file | ||
|
|
||
| [unix_http_server] | ||
| file=${SUPERVISORD_SOCKET_FILE} ; (the path to the socket file) | ||
| chmod=0700 ; socket file mode (default 0700) | ||
|
|
||
| [supervisord] | ||
| logfile=/dev/stdout ; send supervisor logs to stdout | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This appears to duplicate the logs to stdout (i.e., they're sent twice for the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Docker recommends a few modifications to this, most notably setting supervisord's logfile to /dev/null: I'm not sure why they write program logs to # ls -l /dev/stdout
lrwxrwxrwx 1 root root 15 Dec 2 07:56 /dev/stdout -> /proc/self/fd/1
# ls -l /proc/self/fd/1
lrwx------ 1 root root 64 Dec 2 07:56 /proc/self/fd/1 -> /dev/pts/0
# ls -l /dev/fd/1
lrwx------ 1 root root 64 Dec 2 07:56 /dev/fd/1 -> /dev/pts/0
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed in 7bcaad7. |
||
| logfile_maxbytes = 0 ; forcibly disable log rotation | ||
| pidfile=${SUPERVISORD_PID_FILE} ; (supervisord pidfile;default supervisord.pid) | ||
| childlogdir=/usr/local/supervisor ; ('AUTO' child log dir, default $TEMP) | ||
| user=${APP_USER} | ||
|
|
||
| ; the below section must remain in the config file for RPC | ||
| ; (supervisorctl/web interface) to work, additional interfaces may be | ||
| ; added by defining them in separate rpcinterface: sections | ||
| [rpcinterface:supervisor] | ||
| supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface | ||
|
|
||
| [supervisorctl] | ||
| serverurl=unix://${SUPERVISORD_SOCKET_FILE} ; use a unix:// URL for a unix socket | ||
|
|
||
| ; The [include] section can just contain the "files" setting. This | ||
| ; setting can list multiple files (separated by whitespace or | ||
| ; newlines). It can also contain wildcards. The filenames are | ||
| ; interpreted as relative to this file. Included files *cannot* | ||
| ; include files themselves. | ||
|
|
||
| [include] | ||
| files = /etc/supervisor/conf.d/*.conf | ||
Uh oh!
There was an error while loading. Please reload this page.