public async Task <string> RebuildContainer() { if (!await this.VerifySession(_manager) || !await this.VerifyAdmin(_query)) { Response.StatusCode = 403; return(null); } return(ModulrJail.Initialize()); }
public string DockerTest(string sourceFolder, string connectionID = null, params string[] files) { // We're going to make the assumption that sourceFolder is sanitized. // Mainly because it's created within Modulr. // Probably requires to be relative as well. var jail = ModulrJail.Build(sourceFolder, connectionID, files); jail.Wait(); var output = jail.GetAllOutput(); jail.Dispose(); return(output); }