-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
7ed9ecd
AP-515: add 4.9.6 image for cross-platform testing
anarchivist 59bf731
simplify test runner given the reliance on supervisord
anarchivist e953159
allow supervisord to drop privileges to APP_USER
anarchivist 7b8024e
drop privileges to APP_USER earlier to ensure stdout/stderr have corr…
anarchivist 5e5c7b8
send supervisord process logs to container's stdout
anarchivist 139e4cf
misc cleanup
anarchivist 7bcaad7
address PR feedback
anarchivist e939418
fix whitespace and supervisord.conf template comment
anarchivist File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
10 changes: 10 additions & 0 deletions
10
supervisor_templates/conf.d/WowzaStreamingEngine.conf.tmpl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| [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/fd/1 | ||
| stdout_logfile_maxbytes = 0 | ||
| redirect_stderr=true |
10 changes: 10 additions & 0 deletions
10
supervisor_templates/conf.d/WowzaStreamingEngineManager.conf.tmpl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| [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/fd/1 | ||
| stdout_logfile_maxbytes = 0 | ||
| redirect_stderr=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/null ; supervisor logs to stdout | ||
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.