Revision 8fd1d584
Added by Remy Menard about 11 years ago
IoTa-Installer/lib/lambda_iota.py | ||
---|---|---|
("Enter the LaMBDa web application name", "lambda", "name", {}),
|
||
("Enter the archive file pathname", "lambda", "repo", {"type": "file"}),
|
||
("Enter the URL of the OMeGa web service", "omega", "url", {}),
|
||
("Enter the URL of the SigMa web service", "sigma", "url", {})
|
||
("Enter the URL of the SigMa web service", "sigma", "url", {}),
|
||
("Use GaMMa?", "lambda", "use_gamma", {"type": "YN"}),
|
||
("Enter the GaMMa archive file path", "lambda", "gamma_repo",
|
||
{"when": ("lambda", "use_gamma")}),
|
||
("Enter the path where you want to unpack it", "lambda", "gamma_path",
|
||
{"when": ("lambda", "use_gamma")})
|
||
], [
|
||
("application",
|
||
{ "omega-url": ("omega", "url"),
|
||
... | ... | |
|
||
def postConfigure(self):
|
||
url = self.setSecuredURL()
|
||
|
||
|
||
def postUnpack(self):
|
||
if self.cget("use_gamma"):
|
||
lambda_path = CONFIG.get("tomcat", "catalina_home") + "webapps/" + self.cget("name")
|
||
gamma_path = self.cget("gamma_path")
|
||
utils.sh_mkdir_p(gamma_path)
|
||
detar_command = "tar -C " + gamma_path + " -xaf " + self.cget("gamma_repo")
|
||
if utils.sh_exec(detar_command):
|
||
gamma_path = gamma_path + "/GaMMa"
|
||
utils.sh_cp(gamma_path+"/src/scripts/gamma.js", lambda_path+"/scripts")
|
||
utils.sh_cp(gamma_path+"/src/styles/gamma-style.css", lambda_path+"/styles")
|
||
openlayers_repo = gamma_path + "/src/OpenLayers-2.12.tar.gz"
|
||
detar_command_openlayers = "tar -C " + lambda_path + " -xaf " + openlayers_repo
|
||
if utils.sh_exec(detar_command_openlayers):
|
||
jsp_queryepcis = lambda_path + "/jsp/pages/queryepcis.jsp"
|
||
jsp_trace = lambda_path + "/jsp/pages/trace.jsp"
|
||
cmd = """sed -i '
|
||
/<\/head>/i\\
|
||
<link rel="stylesheet" type="text/css" href="OpenLayers-2.12/theme/default/style.css">\\
|
||
<link rel="stylesheet" type="text/css" href="styles/gamma-style.css">\\
|
||
<script type="text/javascript" src="./OpenLayers-2.12/OpenLayers.js"></script>\\
|
||
<script type="text/javascript" src="scripts/gamma.js"></script>' %(file)s
|
||
sed -i '
|
||
/<\/body>/i\\
|
||
<div id="map" class="smallmap"></div>\\
|
||
<script type="text/javascript">\\
|
||
gamma_init(); /* OpenLayers and div map init */\\
|
||
initShowOnMap("eventItems");\\
|
||
</script>' %(file)s """
|
||
utils.sh_exec(cmd % dict(file=jsp_queryepcis))
|
||
utils.sh_exec(cmd % dict(file=jsp_trace))
|
Also available in: Unified diff
Version 2.0
- upgrades Apache CXF to 2.7.5
- upgrades Apache ActiveMQ to 5.8.0
- license LGPL-3 for client libraries
- a few bugs fixed!
- use Apache CXF
- use JMS to store events to publish
- uses GaMMa for event mapping with OpenLayers
- "trace" and "DS" services are fully functionnal
- uses YPSilon
- access to the web interface of policy management is made by
certificate
- adds the MasterData to the web interface of policy management
- retrieves the owner of MasterData in the attributes if missing from
the extensions
- removes calls to old CXF classes to avoid compatibility problems
- installs and configures the new DS and DSeTa
- adds GaMMa to LaMBDa
- upgrades Apache Tomcat to 7.0.41 and mysql-connector to 5.1.25