|
@ -643,8 +643,32 @@ export default { |
|
|
container_bash = '/bin/bash' |
|
|
container_bash = '/bin/bash' |
|
|
var container_user_swarmlab = 'docker' |
|
|
var container_user_swarmlab = 'docker' |
|
|
} |
|
|
} |
|
|
|
|
|
// ----- |
|
|
|
|
|
var swarmlabinstance1c = new RegExp("(/poc-|/POC-)"); |
|
|
|
|
|
var pocurl = 'no' |
|
|
|
|
|
console.log('log---------- ' + JSON.stringify(this.hybridshowdata)) |
|
|
|
|
|
if(swarmlabinstance1c.test(this.hybridshowdata.Image)){ |
|
|
|
|
|
var swarmlabinstance1cd = new RegExp("(->)"); |
|
|
|
|
|
if(swarmlabinstance1cd.test(this.hybridshowdata.Ports)){ |
|
|
|
|
|
var splitcd = this.hybridshowdata.Ports.split(':') |
|
|
|
|
|
var splitcd1 = splitcd[1].split('-') |
|
|
|
|
|
var swarmlabinstance1ce = new RegExp("^(web)"); |
|
|
|
|
|
if(swarmlabinstance1ce.test(this.hybridshowdata.Names)){ |
|
|
|
|
|
pocurl = 'http://localhost:'+splitcd1[0]+'/?token='+this.token |
|
|
|
|
|
} |
|
|
|
|
|
//console.log('log1a---------- ' + pocurl) |
|
|
|
|
|
//console.log('log1---------- ' + JSON.stringify(this.hybridshowdata)) |
|
|
|
|
|
} |
|
|
|
|
|
//container_user = true |
|
|
|
|
|
} |
|
|
|
|
|
// ----- |
|
|
|
|
|
var swarmlabinstance = new RegExp("^(hybrid-|HYBRID-)"); |
|
|
|
|
|
if(swarmlabinstance.test(this.hybridshowdata.Names)){ |
|
|
|
|
|
container_user = true |
|
|
|
|
|
container_bash = '/bin/bash' |
|
|
|
|
|
var container_user_swarmlab = 'docker' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// console.log('log---------- ' + JSON.stringify(this.hybridshowdata)) |
|
|
|
|
|
//var Localpath = JSON.parse(log.data.test) |
|
|
//var Localpath = JSON.parse(log.data.test) |
|
|
var info=`<h5>You can connect to the same contained process multiple times simultaneously, from different sessions on the Docker host.<br> |
|
|
var info=`<h5>You can connect to the same contained process multiple times simultaneously, from different sessions on the Docker host.<br> |
|
|
<br> |
|
|
<br> |
|
@ -662,6 +686,12 @@ if(container_user){ |
|
|
info +='</p>' |
|
|
info +='</p>' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(pocurl != 'no'){ |
|
|
|
|
|
info +='<p class="text-info">' |
|
|
|
|
|
info += '<a href="'+pocurl+'" target="_blank">Click here to open the Web_App</a>' |
|
|
|
|
|
info +='</p>' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
info +='<p class="text-secondary">' |
|
|
info +='<p class="text-secondary">' |
|
|
info +=' <b>Directory Maps</b>' |
|
|
info +=' <b>Directory Maps</b>' |
|
|
info +='<br>' |
|
|
info +='<br>' |
|
|