From ed2a1e31945d64e175cdbb2d478860a005e81622 Mon Sep 17 00:00:00 2001
From: zeus Playground LabBootstrap "+t+"
";this.$swal({type:t,html:s+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},s["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",s["default"].nextTick(()=>this.$refs.vuetable.refresh())},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t)},onChangePage(t){this.$refs.vuetable.changePage(t)},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async onAction(t,e,a){await v.dispatch("pipelineLLO/swarmlabhybridjoin",{token:this.token,action:"join"});if("edit"==t)this.nodeadmin=!0,this.nodeadminupdate=!0,this.nodeid=e.nodeid,this.nodeip=e.ip,this.nodename=e.name,this.noderole=e.role,this.nodezones=e.zones,this.nodedesc=e.description;else if("update"==t){if(await this.$refs.provider.validate().then(t=>{t.valid?this.valid=!0:this.valid=!1}),this.valid){await v.dispatch("pipelineLLO/swarmlabhybridadd",{token:this.token,action:"add",nodeid:this.nodeid,nodeip:this.nodeip,nodename:this.nodename,noderole:this.noderole,nodezones:this.nodezones,nodedesc:this.nodedesc});s["default"].nextTick(()=>this.$refs.vuetable.refresh())}}else if("rm"==t)this.rowdata=e,this.$swal({type:"info",html:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Yes, Delete it!"}).then(t=>{this.rmAndClose(t)});else if("add"==t)this.nodeadmin=!0,this.nodeadminupdate=!1;else if("addserver"==t){if(await this.$refs.provider.validate().then(t=>{t.valid?this.valid=!0:this.valid=!1}),this.valid){this.nodeadmin=!1,this.nodeadminupdate=!1;await v.dispatch("pipelineLLO/swarmlabhybridadd",{token:this.token,action:"add",nodeid:this.nodeid,nodeip:this.nodeip,nodename:this.nodename,noderole:this.noderole,nodezones:this.nodezones,nodedesc:this.nodedesc});s["default"].nextTick(()=>this.$refs.vuetable.refresh())}}else"cancel"==t&&(this.nodeadmin=!1,this.nodeadminupdate=!1)},async rmAndClose(t){await v.dispatch("pipelineLLO/getswarmlabhybridinfo",{token:this.token,nodezones:this.rowdata.zones});if(t.value){await v.dispatch("pipelineLLO/swarmlabhybridrm",{token:this.token,action:"rm",nodeid:this.rowdata.nodeid,nodeip:this.rowdata.ip,nodename:this.rowdata.name,noderole:this.rowdata.role,nodezones:this.rowdata.zones,nodedesc:this.rowdata.description});s["default"].nextTick(()=>this.$refs.vuetable.refresh())}},async addAndClose(t){},refreshVuetable(){this.$nextTick(()=>{this.vuetablekeyc+=1})},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},rowClicked(t,e){return{html:!0,title:()=>"Hello Popover: "+ ++this.counter,content:()=>"The date is:
"+new Date+""}},loadsuccess(t){var e=t.data.data;if(this.fielddata=e,e.length){e.length;1}},onLoadError(t){"401"==t.response.status&&(window.location.href="https://api-login.swarmlab.io:8089",s["default"].nextTick(()=>window.location.href="https://api-login.swarmlab.io:8089"))}},actions:{}},P=E,D=(a("55b7"),Object(_["a"])(P,O,R,!1,null,null,null)),T=D.exports,V=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-header",staticStyle:{"max-height":"100%"},attrs:{title:"Hybrid API Request"}},[a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("table",{staticClass:"table table-bordered"},[a("tbody",[a("tr",[a("th",{staticClass:"text-center",attrs:{scope:"row"}},[t._v(" Project ")]),a("td",[a("div",{staticClass:"input-group input-group-sm sm-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.swarmlabhybridapi.project,expression:"swarmlabhybridapi.project"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Project Name (Alphanumeric characters, dashes and underscores, NOT spaces)"},domProps:{value:t.swarmlabhybridapi.project},on:{input:function(e){e.target.composing||t.$set(t.swarmlabhybridapi,"project",e.target.value)}}}),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"ti-info btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showinfo("Project")}}})])])])]),a("tr",[a("th",{staticClass:"text-center",attrs:{scope:"row"}},[t._v(" Category ")]),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.swarmlabhybridapi.faculty,expression:"swarmlabhybridapi.faculty"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Project Category"},domProps:{value:t.swarmlabhybridapi.faculty},on:{input:function(e){e.target.composing||t.$set(t.swarmlabhybridapi,"faculty",e.target.value)}}})])]),a("tr",[a("th",{staticClass:"text-center",attrs:{scope:"row"}},[t._v(" Description ")]),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.swarmlabhybridapi.desc,expression:"swarmlabhybridapi.desc"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"What is the purpose of the project?"},domProps:{value:t.swarmlabhybridapi.desc},on:{input:function(e){e.target.composing||t.$set(t.swarmlabhybridapi,"desc",e.target.value)}}})])])])])])],1),a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:t.getApi}},[t._v(" Request hybrid API ")])])])],1)],1)},F=[],G={components:{},props:{},data(){return{swarmlabhybridapi:{labservices:"services"}}},mounted(){},beforeDestroy(){},computed:{},methods:{showinfo(t){if("Project"==t){var e='We use that "Name" to retrieve the corresponding key values
The name assigned here will be needed to connect you to Swarmlab Server.
The ProjectName can only contain alphanumeric characters, dashes or underscores.';this.$swal({type:"info",html:e,showCloseButton:!1,showLoaderOnConfirm:!1,allowOutsideClick:!1,showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Ok!"})}},async getApi(){console.log("getApi");var t=await v.dispatch("pipelineLLO/swarmlabhybridapi",{lab:this.swarmlabhybridapi});if("ok"==t.data.action){var e="OK
";this.$swal({type:"info",html:e,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,focusCancel:!0})}else{e="Error
";this.$swal({type:"error",html:e,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,focusCancel:!0})}}},actions:{}},z=G,M=(a("546d"),Object(_["a"])(z,V,F,!1,null,null,null)),j=M.exports,U=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("b",[t._v("Swarmlab hybrid-agent config")])])]),s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("br")])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-3"},[s("b",[t._v("Node ID")])]),s("div",{staticClass:"col-9"},[s("i",[t._v(t._s(t.CONFIG.nodeid))])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-3"},[s("b",[t._v("Swarmlab key")])]),s("div",{staticClass:"col-9"},[s("i",[t._v(t._s(t.CONFIG.workerkey))])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-3"},[s("b",[t._v("Swarmlab PublicKey")])]),s("div",{staticClass:"col-9"},[s("i",[t._v(t._s(t.CONFIG.swarmlab_public_wgkey))])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-3"},[s("b",[t._v("Swarmlab ip")])]),s("div",{staticClass:"col-3"},[s("i",[t._v(t._s(t.CONFIG.server_ip))])]),s("div",{staticClass:"col-2"},[s("b",[t._v("Local IP")])]),s("div",{staticClass:"col-4"},[s("i",[t._v(t._s(t.CONFIG.wg_ip))])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-3"},[s("b",[t._v("Private key")])]),s("div",{staticClass:"col-3"},[s("i",[t._v(t._s(t.CONFIG.privatekey))])]),s("div",{staticClass:"col-2"},[s("b",[t._v("Public key")])]),s("div",{staticClass:"col-4"},[s("i",[t._v(t._s(t.CONFIG.publickey))])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-12"},[s("br")])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-4"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend"},[s("button",{staticClass:"ti-settings btn btn-outline-info",attrs:{round:"",type:"button",title:"Load config"},on:{click:function(e){return t.onAction("load")}}},[t._v(" Load Settings ")])]),s("div",{staticClass:"input-group-prepend"})])]),s("div",{staticClass:"col-1"},[s("div",{staticClass:"input-group input-group-sm sm-3"})]),t._v(" "),s("div",{staticClass:"col-7 text-right"},[s("div",{staticClass:"input-group input-group-sm sm-3 text-right"},[s("div",{staticClass:"input-group-append text-right"},[s("button",{staticClass:"ti-link btn btn-outline-success",attrs:{round:"",type:"button",title:"Connect"},on:{click:function(e){return t.onAction("connect")}}},[t._v(" Connect ")]),s("button",{staticClass:"ti-unlink btn btn-outline-warning",attrs:{round:"",type:"button",title:"Connect"},on:{click:function(e){return t.onAction("disconnect")}}},[t._v(" Disconnect ")]),t.isconnect?s("button",{staticClass:"ti-link btn btn-outline-success",attrs:{round:"",type:"button",title:"Connect"}},[t._v(" Status online ")]):s("button",{staticClass:"ti-unlink btn btn-outline-warning",attrs:{round:"",type:"button",title:"Connect"}},[t._v(" Status offline ")])])])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-12"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend"},[t.ishybridlab?s("button",{staticClass:"ti-key btn btn-outline-info",attrs:{round:"",type:"button",title:"Api keys"},on:{click:function(e){return t.onAction("apikeyopen")}}},[t._v(" Enable the Swarmlab hybrid API ")]):s("button",{staticClass:"ti-layout-media-overlay-alt btn btn-outline-warning",attrs:{round:"",type:"button",title:"Api keys"},on:{click:function(e){return t.onAction("apikeyclose")}}},[t._v(" Enable the Swarmlab hybrid API ")]),s("button",{staticClass:"ti-info btn btn-outline-success",attrs:{round:"",type:"button",title:"HowTo"},on:{click:function(e){return t.onAction("register")}}})])])])])])],1)},Y=[],q={components:{card:k},props:{},data(){return{isconnect:!1,ishybridlab:!0,isstatus:!1,CONFIG:{status:"",privatekey:"",publickey:"",server_ip:"",nodeid:"",workerkey:"",allowed_ips:"",swarmlab_public_wgkey:"",wg_ip:"",swarm_ip:"",wg_port:""},token:""}},mounted(){this.$root.$on("hybrid_connect_server_view",t=>{this.CONFIG.status=t.status,this.CONFIG.workerkey=t.workerkey,this.CONFIG.swarmlab_public_wgkey=t.swarmlab_public_wgkey,this.CONFIG.server_ip=t.server_ip,this.CONFIG.allowed_ips=t.allowed_ips,this.CONFIG.wg_port=t.wg_port,this.CONFIG.wg_ip=t.wg_ip,this.CONFIG.swarm_ip=t.swarm_ip,this.CONFIG.privatekey=t.privatekey,this.CONFIG.publickey=t.publickey,"on"==this.CONFIG.status?this.isstatus=!0:"off"==this.CONFIG.status&&(this.isstatus=!1)}),this.$root.$on("hybrid_server_status",t=>{this.serverstatus()})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token")},beforeDestroy(){this.$root.$off("hybrid_connect_server_view"),this.$root.$off("hybrid_server_status")},computed:{},methods:{async serverstatus(t){var e=v.getters["pipelineLLO/getstatus"];"active"==e.data.swarmlab&&"Online"==e.data.hybrid?(this.isstatus=!0,this.isconnect=!0,this.CONFIG.nodeid=e.data.swarmlabid):(this.isstatus=!1,this.isconnect=!1,this.CONFIG.nodeid="null")},async onAction(t){if("load"==t){var e=await v.dispatch("pipelineLLO/swarmlabhybridconfig",{token:this.token});this.CONFIG.status=e.data.data.status,this.CONFIG.workerkey=e.data.data.workerkey,this.CONFIG.swarmlab_public_wgkey=e.data.data.wg_public,this.CONFIG.server_ip=e.data.data.endpoint,this.CONFIG.allowed_ips=e.data.data.allowed_ip,this.CONFIG.wg_port=e.data.data.wg_port,this.CONFIG.wg_ip=e.data.data.wg_ip,this.CONFIG.swarm_ip=e.data.data.swarm_ip,this.CONFIG.privatekey=e.data.data.privatekey,this.CONFIG.publickey=e.data.data.publickey,"on"==this.CONFIG.status?this.isstatus=!0:"off"==this.CONFIG.status&&(this.isstatus=!1),this.onAction("save")}else if("apikeyopen"==t)this.ishybridlab=!1,this.$root.$emit("hybrid_lab_keyview","open");else if("apikeyclose"==t)this.ishybridlab=!0,this.$root.$emit("hybrid_lab_keyview","close");else if("connect"==t){e=await v.dispatch("pipelineLLO/get_config",{token:this.token});this.isconnect=!0;var a=e.data.data;if(e.data.error_msg="ok"){var s='sudo /bin/bash ';s+=a.trim(),s+="/hybrid/connect/join.sh "}else s="no exec file";var i='Swarmlab Connect
You are about to connect with others. Be Careful
Copy-and-run-command
';this.$swal({type:"info",html:i+s,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}else if("save"==t)e=await v.dispatch("pipelineLLO/create_config",{token:this.token,value:this.CONFIG});else if("disconnect"==t){e=await v.dispatch("pipelineLLO/get_config",{token:this.token}),a=e.data.data;if(e.data.error_msg="ok"){s='sudo /bin/bash ';s+=a.trim(),s+="/hybrid/connect/leave.sh "}else s="no exec file";i="Swarmlab Disconnect
Copy-and-run-command
";this.$swal({type:"info",icon:"info",html:i+s,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}else if("register"==t){s="Before you begin\n
\n Before you start using the Swarmlab Hybrid API, you need a hybrid enabled account and the Swarmlab API enabled. \n
\n To learn more, see Get Started with Hybrid Platform. \n ",i="Get API Key's
";this.$swal({type:"info",html:i+s,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}}},actions:{}},H=q,K=(a("cd6e"),Object(_["a"])(H,U,Y,!1,null,null,null)),W=K.exports,Q={components:{HybridLab:j,ZonesView:T,card:k,MyconnectServer:W},data(){return{loading:!1,ishybridlab:!1,consoleView:"off",productIndex:1}},mounted(){this.$root.$on("hybrid_lab_keyview",t=>{"open"==t?this.ishybridlab=!0:"close"==t&&(this.ishybridlab=!1)})},beforeDestroy(){this.$root.$off("hybrid_lab_keyview")},created(){}},J=Q,Z=Object(_["a"])(J,x,A,!1,null,null,null),X=Z.exports,tt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-7 order-first "},[a("br"),a("view-network"),a("docker-services")],1),a("div",{staticClass:"col-5 order-last"},[a("br"),t.viewconsole?a("adhoc-view"):t._e(),a("docker-images",{directives:[{name:"show",rawName:"v-show",value:t.viewimages,expression:"viewimages"}]}),a("docker-networks",{directives:[{name:"show",rawName:"v-show",value:t.viewnetworks,expression:"viewnetworks"}]})],1)])])},et=[],at=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),s("v-wait",{attrs:{for:"myRunInstanceeditor"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Editor... ")])])],2),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("b",[s("span",{staticClass:"text-muted"},[t._v("View and Manage your")]),t._v(" "),s("span",{staticClass:"text-info"},[t._v("Running Instances")])])])]),s("br"),s("div",{staticClass:"row"},[s("div",{staticClass:"col-5"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend"},[t.$socket.disconnected?s("button",{staticClass:"ti-unlink btn btn-outline-danger",attrs:{round:"",type:"button",title:"You are disconnected from Swarmlab-hybrid",disabled:""}}):s("button",{staticClass:"ti-link btn btn-outline-success",attrs:{round:"",type:"button",title:"You are connected swarmlab-hybrid"},on:{click:function(e){return t.onAction("shareinfo")}}})]),s("div",{staticClass:"input-group-prepend"},[t.webinterface?s("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("startweb")}}},[t._v(" Web")]):t._e(),t.webinterfacegeneric&&t.hybridshowdata.Names?s("button",{staticClass:"btn btn-info",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("startwebgeneric")}}},[t._v(" "+t._s(t.webinterfacegeneric_text))]):t._e()]),s("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.Names?s("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("container-connect")}}},[t._v(" Connect")]):s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button",disabled:""}},[t._v(" Connect")]),t.webinterfacegenericedit&&t.hybridshowdata.Names?s("button",{staticClass:"btn btn-outline-info",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("basedireditor")}}},[t._v(" Editor")]):t._e(),t.hybridshowdata.Names?s("button",{staticClass:"btn btn-outline-danger",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("container-stop")}}},[t._v(" Stop")]):s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button",disabled:""}},[t._v(" stop")]),t.actionrowindexconsole?s("button",{staticClass:"btn btn-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("container-logsclose")}}},[t._v(" Close Console")]):t._e()])])]),t._v(" "),s("div",{staticClass:"col-1"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend float-center"})])]),t._v(" "),s("div",{staticClass:"col-1"}),t._v(" "),s("div",{staticClass:"col-5"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend float-right"},[t.actionrowindex&&t.hybridshowdata.Names?s("button",{staticClass:"ti-more-alt btn btn-secondary btn-sm",attrs:{title:"More Options...",round:""},on:{click:function(e){return t.runmore("off")}}}):t._e(),t.actionrowindexselect&&t.hybridshowdata.Names?s("button",{staticClass:"ti-more btn btn-outline-info btn-sm",attrs:{round:"",title:"More Options..."},on:{click:function(e){return t.runmore("on")}}}):t._e(),t.actionrowindex&&t.hybridshowdata.Names?s("button",{staticClass:"btn btn-outline-info",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("basedir")}}},[t._v(" Persistent Data")]):t._e()]),s("div",{staticClass:"input-group-prepend float-right"},[t.actionrowindex&&t.hybridshowdata.Names?s("button",{staticClass:"btn btn-outline-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("basebackup")}}},[t._v(" Backup")]):t._e()]),s("div",{staticClass:"input-group-prepend float-right"},[t.actionrowindex&&t.hybridshowdata.Names?s("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("basebackupview")}}},[t._v(" BrowseBackups")]):t._e()]),s("div",{staticClass:"input-group-append"},[!t.actionrowindexconsole&&t.actionrowindex&&t.hybridshowdata.Names?s("button",{staticClass:"btn btn-outline-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("container-logs")}}},[t._v(" Logs")]):t._e(),t.actionrowindexconsole&&t.actionrowindex&&t.hybridshowdata.Names?s("button",{staticClass:"btn btn-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("container-logsclose")}}},[t._v(" Logs")]):t._e()])])])]),t._v(" "),t.webinterfacegeneric&&t.webinterfacegeneric_menou1&&t.hybridshowdata.Names?s("div",{staticClass:"row"},[s("div",{staticClass:"col-12"},[s("hr")])]):t._e(),t.webinterfacegeneric&&t.webinterfacegeneric_menou1&&t.hybridshowdata.Names?s("div",{staticClass:"row"},[s("div",{staticClass:"col-5"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend"},[t.webinterfacegeneric&&t.webinterfacegeneric_menou1&&t.hybridshowdata.Names&&!t.webinterfacegeneric_menou1typelog?s("a",{staticClass:"btn btn-outline-secondary",attrs:{href:t.webinterfacegeneric_menou1_url,target:t.webinterfacegeneric_menou1_url_target1,role:"button"}},[t._v(" "+t._s(t.webinterfacegeneric_menou1_text)+" ")]):t._e(),t.webinterfacegeneric&&t.webinterfacegeneric_menou1&&t.hybridshowdata.Names&&t.webinterfacegeneric_menou1typelog&&!t.webinterfacegeneric_menou1typelog_active?s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.guilogs(1)}}},[t._v(" "+t._s(t.webinterfacegeneric_menou1_text)+" ")]):t._e(),t.webinterfacegeneric&&t.webinterfacegeneric_menou1&&t.hybridshowdata.Names&&t.webinterfacegeneric_menou1typelog&&t.webinterfacegeneric_menou1typelog_active?s("button",{staticClass:"btn btn-outline-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.guilogsclose(1)}}},[t._v(" "+t._s(t.webinterfacegeneric_menou1_text)+" ")]):t._e()]),s("div",{staticClass:"input-group-prepend"},[t.webinterfacegeneric&&t.webinterfacegeneric_menou2&&t.hybridshowdata.Names&&!t.webinterfacegeneric_menou2typelog?s("a",{staticClass:"btn btn-outline-secondary",attrs:{href:t.webinterfacegeneric_menou2_url,target:t.webinterfacegeneric_menou1_url_target2,role:"button"}},[t._v(" "+t._s(t.webinterfacegeneric_menou2_text)+" ")]):t._e(),t.webinterfacegeneric&&t.webinterfacegeneric_menou2&&t.hybridshowdata.Names&&t.webinterfacegeneric_menou2typelog&&!t.webinterfacegeneric_menou2typelog_active?s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.guilogs(2)}}},[t._v(" "+t._s(t.webinterfacegeneric_menou2_text)+" ")]):t._e(),t.webinterfacegeneric&&t.webinterfacegeneric_menou2&&t.hybridshowdata.Names&&t.webinterfacegeneric_menou2typelog&&t.webinterfacegeneric_menou2typelog_active?s("button",{staticClass:"btn btn-outline-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.guilogsclose(2)}}},[t._v(" "+t._s(t.webinterfacegeneric_menou2_text)+" ")]):t._e()]),s("div",{staticClass:"input-group-prepend"},[t.webinterfacegeneric&&t.webinterfacegeneric_menou3&&t.hybridshowdata.Names&&!t.webinterfacegeneric_menou3typelog?s("a",{staticClass:"btn btn-outline-secondary",attrs:{href:t.webinterfacegeneric_menou3_url,target:t.webinterfacegeneric_menou1_url_target3,role:"button"}},[t._v(" "+t._s(t.webinterfacegeneric_menou3_text)+" ")]):t._e(),t.webinterfacegeneric&&t.webinterfacegeneric_menou3&&t.hybridshowdata.Names&&t.webinterfacegeneric_menou3typelog&&!t.webinterfacegeneric_menou3typelog_active?s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.guilogs(3)}}},[t._v(" "+t._s(t.webinterfacegeneric_menou3_text)+" ")]):t._e(),t.webinterfacegeneric&&t.webinterfacegeneric_menou3&&t.hybridshowdata.Names&&t.webinterfacegeneric_menou3typelog&&t.webinterfacegeneric_menou3typelog_active?s("button",{staticClass:"btn btn-outline-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.guilogsclose(3)}}},[t._v(" "+t._s(t.webinterfacegeneric_menou3_text)+" ")]):t._e()])])])]):t._e()]),s("b-container",{attrs:{fluid:""}},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-2 text-info"},[t._v(" ID ")]),s("div",{staticClass:"col-3 text-muted"},[t._v(" "+t._s(t.hybridshowdata.ID)+" ")]),s("div",{staticClass:"col-2 text-info"},[t._v(" Image ")]),s("div",{staticClass:"col-4 text-muted"},[t._v(" "+t._s(t.hybridshowdata.Image)+" ")])]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-2 text-info"},[t._v(" Names ")]),s("div",{staticClass:"col-3 text-muted"},[t._v(" "+t._s(t.hybridshowdata.Names)+" ")]),s("div",{staticClass:"col-2 text-info"},[t._v(" RunningFor ")]),s("div",{staticClass:"col-4 text-muted"},[t._v(" "+t._s(t.hybridshowdata.RunningFor)+" ")])]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-2 text-info"},[t._v(" Status ")]),s("div",{staticClass:"col-3 text-muted"},[t._v(" "+t._s(t.hybridshowdata.Status)+" ")]),s("div",{staticClass:"col-2 text-info"},[t._v(" CreatedAt ")]),s("div",{staticClass:"col-4 text-muted"},[t._v(" "+t._s(t.hybridshowdata.CreatedAt)+" ")])]),t._v(" "),s("div",{staticClass:"row"},[t.actionrowindex?s("div",{staticClass:"col-2 text-info"},[t.hybridshowdata.Networks&&0==t.addNetworkMenou?s("button",{staticClass:"btn btn-primary btn-sm",attrs:{round:"",type:"button"},on:{click:function(e){return t.addNetwork(t.hybridshowdata,"on")}}},[t._v(" Networks")]):t._e(),t.hybridshowdata.Networks&&1==t.addNetworkMenou?s("button",{staticClass:"btn btn-outline-warning btn-sm",attrs:{round:"",type:"button"},on:{click:function(e){return t.addNetwork(t.hybridshowdata,"off")}}},[t._v(" Networks")]):t._e()]):s("div",{staticClass:"col-2 text-info"},[t._v(" Networks ")]),s("div",{staticClass:"col-3 text-muted"},[t._v(" "+t._s(t.hybridshowdata.Networks)+" ")]),s("div",{staticClass:"col-2 text-info"},[t._v(" Ports ")]),s("div",{staticClass:"col-4 text-muted"},[t._v(" "+t._s(t.hybridshowdata.Ports)+" ")])])]),1==t.addNetworkMenou?s("div",{staticClass:"card border-success bg-light mb-3",staticStyle:{"max-width":"100%"}},[s("div",{staticClass:"card-header"}),s("div",{staticClass:"card-body text-info"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-6 text-info"},[s("h5",{staticClass:"card-title"},[t._v("Select network")])]),s("div",{staticClass:"col-6 text-info"},[t._v(" Connect a running container to multiple networks ")])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-6 text-info"},[s("b-form-select",{attrs:{options:t.localNetworkoptions,multiple:"","select-size":4},model:{value:t.selectedNetworks,callback:function(e){t.selectedNetworks=e},expression:"selectedNetworks"}}),s("div",{staticClass:"mt-3"},[t._v("Selected: "),s("strong",[t._v(t._s(t.selectedNetworks))])])],1),s("div",{staticClass:"col-6 text-info"},[s("img",{staticClass:"border-white img-thumbnail",attrs:{src:a("04d6"),alt:"..."}})])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-6 text-info"},[s("button",{staticClass:"btn btn-warning btn-sm",attrs:{round:"",type:"button"},on:{click:function(e){return t.updateNetwork(t.hybridshowdata,"update")}}},[t._v(" Update")])])])])]):t._e()],1)},st=[];const it=[{name:"justtemplate",automated:!0,version:0,menou:"xeLatex",menou1:"ViewPDF",menou1url:"docs/main.pdf",menou1server:"http://localhost:3384",menou2:"View2",menou2url:"docs2/main.pdf",menou2type:"log",menou2server:"http://localhost:3384",menou3:"Compile",menou3url:"docs/main111111111111.pdf",menou3server:"http://localhost:3384",port:0},{name:"microservice-firefox",automated:!0,menou:"openGui",version:0,port:0},{name:"microservice-xelatexthesis",automated:!0,exec:'/bin/sh -c "latex-all"',version:0,menou:"Compile",menou1:"View-PDF",menou1url:"docs/main.pdf",menou1server:"http://localhost:3384",menou2:"xeLatex-LOG",menou2type:"log",menou2url:"docs/main.log",menou2server:"http://localhost:3394",port:0},{name:"microservice-wireshark",automated:!0,menou:"openGui",version:0,port:0},{name:"microservice-oletools",automated:!0,menou:"openGui",version:0,port:0}],ot=[{name:"just-test-info-no-service",large:"no or text",custom:"true",customostext:"Base OS: python:3.11-rc-alpine3.15",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!1,ttydport:"3787/tcp",ttydurl:"http",app1:!1,link1:"Click here to open rstudio",url1:"http",port1:"8787/tcp",app2:!1,link2:"Click here to open app text",url2:"http",port2:"8788/tcp",app3:!1,link3:"Click here to open app text",url3:"http",port3:"8789/tcp"},{name:"microservice-etherpad",app:!0,url:"http",port:"9001/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"jitsiweb",app:!0,url:"https",port:"443/tcp",ttyd:!1,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-novncfull",app:!0,url:"http",port:"80/tcp",ttyd:!1,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-novnclite",app:!0,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-mongoexpress",app:!0,url:"http",port:"8081/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-gns3",custom:"true",customostext:"Base OS: ubuntu:18.04.6 LTS ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!0,url:"http",port:"8001/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-ubuntu",custom:"true",customostext:"Base OS: ubuntu:20.04.3 LTS",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"8001/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-ubuntugui",app:!0,url:"http",port:"80/tcp",ttyd:!1,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-numpylite",custom:"true",customostext:"Base OS: debian:buster",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-nodejs",custom:"true",customostext:"Base OS: alpine:3.13",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-nginx",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-ipterm",custom:"true",customostext:"Base OS: debian:jessie ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-firefox",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-haproxy",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-xelatexthesis",custom:"true",customostext:"Base OS: alpine:3.15 ",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-snmpsim",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-ansible",custom:"true",customostext:"Base OS: alpine:3.14 ",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-wireshark",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-redisserver",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-mongoserver",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-filemanager",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-powershell",custom:"true",customostext:"Base OS: alpine:3.14 ",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-dvwa",app:!0,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-hping3",custom:"true",customostext:"Base OS: alpine:3.15 ",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-volatilitylinux",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-volatilitywindows",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-twint",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-twintexplorer",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-octave",large:"The build will take some time, so be patient!",custom:"true",customostext:"Base OS: ubuntu:18.04.6 LTS ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!0,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-r",large:"Note that this image is somewhat heavy (~2GB). It can take some time to build the Instance. If you think the proccess is frosen you can reload the page in your Browser",custom:"true",customostext:"Base OS: ubuntu:18.04.6 LTS ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!0,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http",app1:!0,link1:"Click here to open rstudio",url1:"http",port1:"8787/tcp"},{name:"microservice-rust",large:"no",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-julia",large:"no",custom:"true",customostext:"Base OS: alpine3.15",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-lua",large:"no",custom:"true",customostext:"Base OS: alpine3.12",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-luajit",large:"no",custom:"true",customostext:"Base OS: alpine3.12",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-nodesqlite3",large:"no",custom:"true",customostext:"Base OS: ubuntu:20.04 LTS ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-electron",large:"Note that this image is somewhat heavy (~1.5GB). It can take some time to build the Instance. If you think the proccess is frosen you can reload the page in your Browser",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-rubyfull",large:"Note that this image is somewhat heavy (~1GB). It can take some time to build the Instance. If you think the proccess is frosen you can reload the page in your Browser",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-ruby",large:"no",custom:"true",customostext:"Base OS: alpine3.15",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-golangfull",large:"Note that this image is somewhat heavy (~1GB). It can take some time to build the Instance. If you think the proccess is frosen you can reload the page in your Browser",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-golang",large:"no",custom:"true",customostext:"Base OS: alpine3.15",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-mariadb",large:"no",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-adminer",large:"no",custom:"true",customostext:"Base OS: alpine3.15",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!0,url:"http",port:"8080/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-gcc",large:"no",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"8080/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-opencv",large:"no",custom:"true",customostext:"Base OS: debian:buster",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"8080/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-phpcli",large:"no",app:!1,url:"http",port:"8080/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-phpapache",large:"no",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http",app2:!0,link2:"Click to run your PHP code over https",url2:"https",port2:"443/tcp",app1:!0,link1:"Click to run your PHP code over http",url1:"http",port1:"80/tcp"},{name:"microservice-wordpress",large:"no",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!0,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-oletools",large:"no",custom:"true",customostext:"Base OS: python:3.11-rc-alpine3.15",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-dfirntfs",large:"no",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-peframe",large:"The build will take some time, so be patient!",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-libvshadow",large:"no",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-regripper",large:"no",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-jsshell",large:"no",custom:"true",customostext:"Base OS: python:3.11-rc-alpine3.15",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-alpine313",large:"no",custom:"true",customostext:"Base OS: alpine3.13",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-alpine314",large:"no",custom:"true",customostext:"Base OS: alpine3.14",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-alpine315",large:"no",custom:"true",customostext:"Base OS: alpine3.15",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-debianbookworm",large:"no",custom:"true",customostext:"Base OS: debian:bookworm ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-debianbullseye",large:"no",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-debianbuster",large:"no",custom:"true",customostext:"Base OS: debian:buster ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-awscli",large:"no",custom:"true",customostext:"Base OS: alpine3.13",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-perl",large:"no",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-perlfull",large:"no",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-vue",large:"no",custom:"true",customostext:"Base OS: alpine:3.14 ",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!0,url:"http",port:"8080/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"hybrid-linux",large:"no",custom:"true",customostext:"Base OS: ubuntu ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"8080/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"hybrid-mpi",large:"no",custom:"true",customostext:"Base OS: ubuntu ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"8080/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"}],nt=[{name:"microservice-xelatexthesis",automated:!0,url:"http",version:0,port:0},{name:"microservice-ansible",automated:!0,url:"http",version:0,port:0},{name:"microservice-nodejs",automated:!0,url:"http",version:0,port:0},{name:"microservice-numpylite",automated:!0,url:"http",version:0,port:0},{name:"microservice-rust",automated:!0,url:"http",version:0,port:0},{name:"microservice-julia",automated:!0,url:"http",version:0,port:0},{name:"microservice-lua",automated:!0,url:"http",version:0,port:0},{name:"microservice-luajit",automated:!0,url:"http",version:0,port:0},{name:"microservice-nodesqlite3",automated:!0,url:"http",version:0,port:0},{name:"microservice-electron",automated:!0,url:"http",version:0,port:0},{name:"microservice-ruby",automated:!0,url:"http",version:0,port:0},{name:"microservice-rubyfull",automated:!0,url:"http",version:0,port:0},{name:"microservice-golang",automated:!0,url:"http",version:0,port:0},{name:"microservice-golangfull",automated:!0,url:"http",version:0,port:0},{name:"microservice-gcc",automated:!0,url:"http",version:0,port:0},{name:"microservice-opencv",automated:!0,url:"http",version:0,port:0},{name:"microservice-phpcli",automated:!0,url:"http",version:0,port:0},{name:"microservice-jsshell",automated:!0,url:"http",version:0,port:0},{name:"microservice-phpapache",automated:!0,url:"http",version:0,port:0},{name:"microservice-alpine313",automated:!0,url:"http",version:0,port:0},{name:"microservice-alpine314",automated:!0,url:"http",version:0,port:0},{name:"microservice-alpine315",automated:!0,url:"http",version:0,port:0},{name:"microservice-debianbookworm",automated:!0,url:"http",version:0,port:0},{name:"microservice-debianbuster",automated:!0,url:"http",version:0,port:0},{name:"microservice-debianbullseye",automated:!0,url:"http",version:0,port:0},{name:"microservice-awscli",automated:!0,url:"http",version:0,port:0},{name:"microservice-perl",automated:!0,url:"http",version:0,port:0},{name:"microservice-vue",automated:!0,url:"http",version:0,port:0},{name:"microservice-perlfull",automated:!0,url:"http",version:0,port:0}];Object(B["b"])("alpha_num",N["a"]),Object(B["b"])("required",{...N["c"],message:"This field is required"});var rt={components:{card:k},props:{},data(){return{actionrowindexconsole:!1,actionrowindex:!1,actionrowindexselect:!0,addNetworkMenou:!1,localNetworks:[],selectedNetworks:[],localNetworkoptions:[],localNetworkdefault:"",webinterface:!1,webinterfacegeneric:!1,webinterfacegeneric_text:"openGui",webinterfacegeneric_menou1_url_target1:"_blank",webinterfacegeneric_menou1_url_target2:"_blank",webinterfacegeneric_menou1_url_target3:"_blank",webinterfacegeneric_menou_exec:"",webinterfacegeneric_menou_basedir:"",swarmlab_services_type:"swarmlab",webinterfacegeneric_menou1:!1,webinterfacegeneric_menou1_text:"",webinterfacegeneric_menou1_url:"",webinterfacegeneric_menou1typelog:!1,webinterfacegeneric_menou1typelog_active:!1,webinterfacegeneric_menou1typedir:"",webinterfacegeneric_menou1typedir_log:"",webinterfacegeneric_menou2:!1,webinterfacegeneric_menou2_text:"",webinterfacegeneric_menou2_url:"",webinterfacegeneric_menou2typelog:!1,webinterfacegeneric_menou2typelog_active:!1,webinterfacegeneric_menou2typedir:"",webinterfacegeneric_menou2typedir_log:"",webinterfacegeneric_menou3:!1,webinterfacegeneric_menou3_text:"",webinterfacegeneric_menou3_url:"",webinterfacegeneric_menou3typelog:!1,webinterfacegeneric_menou3typelog_active:!1,webinterfacegeneric_menou3typedir:"",webinterfacegeneric_menou3typedir_log:"",webinterfacegenericedit:!1,webinterface_port:"",STATUS:{},editor_instance:{start:"",port:""},CONFIG:{status:"",workerkey:"",swarmlab_public_wgkey:"",server_ip:"",allowed_ips:"",wg_port:"",wg_ip:"",swarm_ip:"",privatekey:"",publickey:"",workerkey:"",privatekey:"",publickey:"",server_ip:""},CONFIGallowed_ips:"",swarmlabnamecustomstart:{},swarmlabnamecustomdata:{},swarmlabnamecustom:"",swarmlabnamecustomservice:"",swarmlabnamecustomuser:"",swarmlabname:"swarmlab-sec",swarmlabname_port:"",swarmlabname_size:3,swarmlabname_git:"",hybridshowdata:{},hybridshowdata_user:{},hybridshowdatashare:{},issocket:"close",setFilter:{},searchFor:{},resetFilter:{}}},beforeMount(){this.socketopen(),this.socketauthenticate()},mounted(){this.$root.$on("hybrid_show_info",t=>{(async()=>{this.actionrowindex=!1,this.actionrowindexselect=!0,this.addNetworkMenou=!1,this.actionrowindexconsole=!1,this.$root.$emit("hybrid_show_instance_images","images"),this.webinterface=!1,this.webinterfacegeneric=!1,this.webinterfacegenericedit=!1,this.hybridshowdata=t;var e="microservice-jupyter",a=new RegExp(e);a.test(t.Networks)&&a.test(t.Names)?(this.webinterface=!0,this.webinterface_port=t.Ports):(this.webinterface=!1,this.webinterface_port="");for(var s=this.hybridshowdata.Names.split("_"),i=0;i
"+this.hybridshowdata.Names;s+="
',s+=" Click on hyperlink opens Directory in new tab
",s+="Local | Container | '+c[m].Source+" | "+c[m].Destination+" | "}s+="
",s+=r,s+="
",this.$swal({type:"Info",icon:"info",html:s,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}else if("shareinfo"==t){var h="no",b="microservice-jupyter",f=new RegExp(b);if(f.test(this.hybridshowdata.Names)){a=await v.dispatch("pipelineLLO/getjupyterinfo",{instance:this.hybridshowdata.Names});if(a.data.test){var w=a.data.test.split("?token="),g=w[1],y=g.split(" "),_=y[0],C=this.webinterface_port.split("->"),k=C[0].trim();h=`http://${k}/?token=${_}`}}a=await v.dispatch("pipelineLLO/getshareinfo",{instance:this.hybridshowdata.Names});this.hybridshowdatashare=a.data.network;var x=this.hybridshowdatashare.IPv4Address.split("/"),A="->",O=",",R=new RegExp(A),$=new RegExp(O);s="";if(R.test(this.hybridshowdata.Ports))try{if($.test(this.hybridshowdata.Ports))for(var L=this.hybridshowdata.Ports.split(","),I=0;I',s+="docker exec -it -u"+z+" "+this.hybridshowdata.Names+" "+V,s+="
"):(s+='',s+="docker exec -it "+this.hybridshowdata.Names+" "+V,s+="
"),"no"!=j&&(s+='',s+='Click here to open the Web_App',s+="
"),"no"!=J&&(s+='',s+='Click here to open the Web_App',s+="
");var et=this.hybridshowdata.Names.split("_"),at="no",st="no",it="no",nt="no",rt="no",lt="no",ct="no",dt="no",ut="no",mt="no",pt="no",ht="no",bt="no",vt="no",ft="no",wt="no",gt="no",yt="no";for(m=0;m',s+=' - OR -
Click to open Terminal emulator',s+="
',s+='Click here to open Web App',s+="
",s+="',s+=' '+nt+"",s+="
",s+="',s+=' '+lt+"",s+="
",s+="',s+=' '+dt+"",s+="
",s+="',s+=' '+mt+"",s+="
",s+="',s+=' '+ht+"",s+="
",s+="',s+=' '+vt+"",s+="
",s+="',s+=' '+wt+"",s+="
",s+="',s+=' '+yt+"",s+="
",s+="',o+="sudo chown -R $USER.$USER "+a+"/instance/"+s+"/"+s,o+="
",o+="',e+=" Click on hyperlink opens Editor in new tab
",e+=' Open Editor',e+="Shift-Tab | indentLess |
Alt-Q | wrapLines |
Ctrl-Up | scrollLineUp |
Ctrl-Down | scrollLineDown |
Ctrl-L | selectLine |
Esc | singleSelectionTop |
Ctrl-Enter | insertLineAfter |
Ctrl-D | selectNextOccurrence |
Shift-Ctrl-Space | selectScope |
Shift-Ctrl-M | selectBetweenBrackets |
Ctrl-M | goToBracket |
Ctrl-K Ctrl-Y | sublimeYank |
Ctrl-K Ctrl-C | showInCenter |
Ctrl-K Ctrl-G | clearBookmarks |
Ctrl-K Ctrl-Backspace | delLineLeft |
Ctrl-K Ctrl-0 | unfoldAll |
Ctrl-K Ctrl-J | unfoldAll |
Ctrl-Alt-Up | addCursorToPrevLine |
Ctrl-Alt-Down | addCursorToNextLine |
Ctrl-F3 | findUnder |
Shift-Ctrl-F3 | findUnderPrevious |
Shift-Ctrl-[ | fold |
Shift-Ctrl-] | unfold |
Ctrl-F | find |
\n It\'s the total amount of layers; \n
\n\n The current limit of 125 layers is due to the kernel\'s ARG_MAX, which limits the number of arguments / length of arguments that can be passed when mounting the layers \n \n
(this limit can be raised in kernels, but is not something that could be relied on as it would make those images non-interoperable on systems that don\'t have the custom configuration)\n
\n Note that not every step in a Dockerfile creates a new layer, only (RUN) steps that modify the filesystem will introduce a new layer.\n
\n\n\n
\n Delete all local docker images related to your dockerfile using the following:\n
\n
\n docker rmi -f $(docker images -a -q)\n
\n
\n
',t+=" Click on hyperlink opens Directory in new tab
",t+=' View Backups',t+="'+e[0]+"
";return a}a='';return a}return t}},{name:"readme",title:'Info',titleClass:"center aligned",dataClass:"left aligned w-25 text-muted",visible:!0,width:"25%"},{name:"visibility",title:'Pub',sortField:"gitrepoCloneUrl",dataClass:"center aligned w-10 text-center",visible:!0,width:"10%",callback:function(t){if("Public"==t){var e=' \n\t\t\t\t\t\n';return e}e=' \n\t\t\t\t\t\n';return e}},{name:"gitrepo",title:'User repo',sortField:"gitrepo",titleClass:"center aligned",dataClass:"left aligned w-25 text-muted",visible:!1,width:"30%"},{name:"__slot:actionsenabled",title:"Status",titleClass:"center",dataClass:"center aligned",width:"5%"},{name:"__slot:actions",title:"Download",titleClass:"col text-center",dataClass:"center aligned",width:"10%"}],apiurl:d.swarmlab_url_80+"/swarmlabhybridmymicroservicesall",css:S["a"],perpage:8,searchFor:"",sortOrder:[{field:"pipelinename",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",currentpage:"1",currentpagepaginationData:{},dataselect:"",indexselect:"",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",type:"scripts"}}},mounted(){this.$root.$on("hybrid_build_micro_service_menou_refreshtable",()=>{this.refreshVuetable()}),this.$root.$on("hybrid_refresh_availableservices",()=>{s["default"].nextTick(()=>this.refreshVuetable())}),this.$root.$on("hybrid_refresh_table",t=>{this.$nextTick((function(){this.refreshVuetable(),this.viewhybridoptions=!1}))})},async created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token"),await this.refreshVuetable()},beforeDestroy(){this.$root.$off("hybrid_refresh_availableservices"),this.$root.$off("hybrid_build_micro_service_menou_refreshtable"),this.$root.$off("hybrid_refresh_table")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{async onSwitch(t){console.log(t),this.form_visibility=t,this.selected=this.form_visibility,this.moreParams={filter:this.searchFor,type:this.selected},this.$nextTick(()=>{this.vuetablekeygusersservices+=1})},onActionmore(){this.actionrowindex=!0,this.actionrowindexmore=!1},onActionmoreclose(){this.actionrowindex=!1,this.actionrowindexmore=!0},async onActionstopcheck(){var t=this.hybridoptions.user.split("@"),e=`${i}
',t+=" Click on hyperlink opens Directory in new tab
",t+=' View Backups',t+="\n\nHere you may start additional services. \n
\n
\nPlease keep in mind that they WILL NOT be started automatically! You HAVE to start them here!\n\n
\n
\nIt is executed after all build processes are finished.\n\t\t
\nA script intended to be run after the installation is done to automate system update, extra software installation and configuration. \n\n
\n
\nIt is executed after "add packages" step has finished\n
\n
\n\nHere you can make changes or install other software for example programs that cannot be found using the package manager\n\n\n\t\t
\n swarmlab.io uses GitHub as an Identity Provider\n
\n
\n To avoid further naming issues swarmlab uses the email used with the oauth provider as the identification key.\n
\n
\n This ensures that multiple accounts with different providers and the same name won\'t be messed up within swarmlab\n
\n\n sh script to install packages\n\n\t\t\t\t
\n
\n Examples\n
\n apt update && apt install -y vim\n
\n OR\n
\n apk update && apk add --no-cache vim\n
\n
\n The file needs to contain the commands in ONE LINE!\n\n\n\t\t
\n\nHere you can declare the services you wish to start and publish.\n\n
\n
\n\nPublished ports:\nBy default, when you create or run a container, it does not publish any of its ports to the outside world.\n
\nTo make a port available to services outside of Docker, or to Docker containers which are not connected to the container’s network, use the "Port" field. \n\t\t
\n\t\t\t\tURI: http/https\n\t\t
\n\n\t\t\t\tName: \n this is the name used by the end user. Try to be clear using few words!\n\n\t\t
\nShift-Tab | indentLess |
Alt-Q | wrapLines |
Ctrl-Up | scrollLineUp |
Ctrl-Down | scrollLineDown |
Ctrl-L | selectLine |
Esc | singleSelectionTop |
Ctrl-Enter | insertLineAfter |
Ctrl-D | selectNextOccurrence |
Shift-Ctrl-Space | selectScope |
Shift-Ctrl-M | selectBetweenBrackets |
Ctrl-M | goToBracket |
Ctrl-K Ctrl-Y | sublimeYank |
Ctrl-K Ctrl-C | showInCenter |
Ctrl-K Ctrl-G | clearBookmarks |
Ctrl-K Ctrl-Backspace | delLineLeft |
Ctrl-K Ctrl-0 | unfoldAll |
Ctrl-K Ctrl-J | unfoldAll |
Ctrl-Alt-Up | addCursorToPrevLine |
Ctrl-Alt-Down | addCursorToNextLine |
Ctrl-F3 | findUnder |
Shift-Ctrl-F3 | findUnderPrevious |
Shift-Ctrl-[ | fold |
Shift-Ctrl-] | unfold |
Ctrl-F | find |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:';t+="
",t+="
",t+="1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.",t+="
",t+="
",t+="2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.",t+="
",t+="
",t+="3. Neither the name of Swarmlab.io nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.",t+="
",t+="
",t+="THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
";let e=''+t+"
{{subTitle}}
\n\n Project\n | \n\n \n \n \n\n \n \n \n | \n
---|---|
\n Category\n | \n\n \n | \n
\n Description\n | \n\n \n | \n