Child pages
  • Deployment using Docker Container

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

#!/bin/sh
# new EC2 Instance configure script
# /home/ec2-user/wodocker/git/XXX_Deploy/XXX.woa/Contents/Resources/sbin/configure.sh


echo "Add 127.0.0.1 to JavaMonitor"
curl -X POST -d "{id: '127.0.0.1',type: 'MHost', osType: 'UNIX',address: '127.0.0.1', name: '127.0.0.1'}" http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mHosts.json

echo "Configure WOAdaptorURL"
curl -X PUT -d “{woAdaptor:'http://XXX.com/apps/WebObjects'}" http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mSiteConfig.json

echo "Add JavaMonitor"
curl -X POST -d "{id: 'JavaMonitor',type: 'MApplication', name: 'JavaMonitor',unixOutputPath: '/var/log/WebObjects', unixPath: '/woapps/JavaMonitor.woa/JavaMonitor'}" http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json
curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/JavaMonitor/addInstance
echo "Add XXX”
curl -X POST -d "{id: ‘XXX',type: 'MApplication', name: ‘XXX', additionalArgs: '-Xms64m -Xmx300m -DWOAllowsConcurrentRequestHandling=true -WOStatisticsPassword wonderpass',unixOutputPath: '/var/log/WebObjects', unixPath: ‘/mywoapps/XXX.woa/XXX’}" http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json
curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/XXX/addInstance

echo "Configure JavaMonitor Password"
curl -X PUT -d "{password:'XXXXXXX'}" http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mSiteConfig.json

echo "Initialization Complete"

...