load stuff

This commit is contained in:
William Mantly 2016-04-25 16:56:57 -04:00
parent c42cf797e7
commit c742c8fb7a

View File

@ -162,11 +162,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 = 'crunner-'+(Math.random()*100).toString().replace('.',''); return runner(req, res, availContainers.pop());
return lxc.startEphemeral(name, 'crunner', function(data){
ip2name[data.ip] = name;
return runner(req, res, data.ip);
});
} }
}); });