runner
This commit is contained in:
parent
26eed34abd
commit
74c73e8c6d
@ -110,6 +110,7 @@ router.post('/run/:ip?', function doRun(req, res, next){
|
|||||||
if(found){
|
if(found){
|
||||||
return runner(req, res, ip)
|
return runner(req, res, ip)
|
||||||
}else{
|
}else{
|
||||||
|
var name = 'u1-'+(Math.random()*100).toString().replace('.','');
|
||||||
return lxc.startEphemeral(name, 'u1', function(data){
|
return lxc.startEphemeral(name, 'u1', function(data){
|
||||||
return runner(req, res, data.ip);
|
return runner(req, res, data.ip);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user