|
@ -1512,6 +1512,7 @@ try { |
|
|
|
|
|
|
|
|
app.get('/runeditor', (req, res, next) => { |
|
|
app.get('/runeditor', (req, res, next) => { |
|
|
var RES = new Object(); |
|
|
var RES = new Object(); |
|
|
|
|
|
var mypath1 = process.cwd() |
|
|
RES.instance = req.query["instance"] |
|
|
RES.instance = req.query["instance"] |
|
|
RES.error = false |
|
|
RES.error = false |
|
|
RES.error_msg = "ok" |
|
|
RES.error_msg = "ok" |
|
@ -1554,8 +1555,8 @@ try { |
|
|
n.data = 'If this fails, try:' |
|
|
n.data = 'If this fails, try:' |
|
|
io.emit('message_out', n); |
|
|
io.emit('message_out', n); |
|
|
|
|
|
|
|
|
var buildtmpexec = "" |
|
|
var buildtmpexec = `${mypath1}/swarmlab_editor_service.sh ${RES.instance}` |
|
|
buildtmpexec = fs.readFileSync(runpathfile, {encoding:'utf8', flag:'r'}); |
|
|
//buildtmpexec = fs.readFileSync(runpathfile, {encoding:'utf8', flag:'r'});
|
|
|
|
|
|
|
|
|
//var buildtmpexec = `docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix microservice-firefox /bin/sh -c "firefox"`
|
|
|
//var buildtmpexec = `docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix microservice-firefox /bin/sh -c "firefox"`
|
|
|
|
|
|
|
|
|