This function creates a default webcontainer instance
'Extract temporary webcontainer zip archive to %s %s.' % (STAF_REMOTE_HOSTNAME,WC_DIRECTORY)
{ 'location' : STAF_REMOTE_HOSTNAME,
'zipfile' : '%s/%s' % (WC_ZIPPATH,WC_ZIPNAME),
'unzipdir' : '%s' % WC_DIRECTORY }
'%s' % location
'fs'
' LIST DIRECTORY %s/%s-%s/bin EXT sh' % \
(WC_DIRECTORY, WC_TYPE, WC_VERSION)
'shFilesResult=%s' % shFilesResult
'%s' % location
'chmod +x %s' % shFilesResult
'%s/%s-%s/bin' % (WC_DIRECTORY, WC_TYPE, WC_VERSION)
['PATH=/bin:/usr/bin']
'Configure webcontainer ports HTTP %s / HTTPS %s' % (WC_PORT, WC_SSL_PORT)
'Configure webcontainer SSL keystore '
'TODO....'
RC
'caught %s with %s' % (eType,eInfo)
'Remove temporary webcontainer zip archive from %s %s' % (STAF_REMOTE_HOSTNAME,WC_DIRECTORY)
{ 'location' : STAF_REMOTE_HOSTNAME ,
'foldername' : '%s' % WC_DIRECTORY }
This function deploys a Web Application War file
Location of target host
Web application war file path
Web application war destination file path
'setup: deploy web application %s to %s/%s-%s/webapps/%s' % (warFilePath, WC_DIRECTORY, WC_TYPE, WC_VERSION, destWarFileName)
{ 'location' : STAF_REMOTE_HOSTNAME ,
'srcfile' : '%s' % warFilePath,
'destfile' : '%s/%s-%s/webapps/%s' % (WC_DIRECTORY, WC_TYPE, WC_VERSION, destWarFileName) }
This function stops a webcontainer
Location of target host
Pathname to installation root
'%s' % STAFCmd
{ 'location' : location,
'command' : STAFCmd,
'env' : STAFCmdEnv,
'name' : STAFCmd,
'path' : wcBinPath
}
{ 'returncode' : stopRC,
'result' : stopResult }
stopResult
This function starts a webcontainer
Location of target host
Pathname to installation root
'%s' % STAFCmd
{ 'location' : location,
'command' : STAFCmd,
'env' : STAFCmdEnv,
'name' : STAFCmd,
'path' : wcBinPath
}
{ 'returncode' : startRC ,
'result' : startResult }
startResult
This function removes the webcontainer instance
'Remove webcontainer from %s %s.' % (STAF_REMOTE_HOSTNAME,WC_DIRECTORY)
{ 'location' : STAF_REMOTE_HOSTNAME,
'foldername' : '%s/%s-%s' % (WC_DIRECTORY, WC_TYPE, WC_VERSION) }
RC
'caught %s with %s' % (eType,eInfo)
'Remove temporary webcontainer zip archive from %s %s' % (STAF_REMOTE_HOSTNAME,WC_DIRECTORY)
{ 'location' : STAF_REMOTE_HOSTNAME ,
'foldername' : '%s/%s-%s' % (WC_DIRECTORY, WC_TYPE, WC_VERSION) }