|
|
@ -44,7 +44,7 @@ export const executeScriptInContainer = async (
|
|
|
|
const instance = findResourceInstance(state, "coder_script");
|
|
|
|
const instance = findResourceInstance(state, "coder_script");
|
|
|
|
const id = await runContainer(image);
|
|
|
|
const id = await runContainer(image);
|
|
|
|
// const resp = await execContainer(id, [shell, "-c", instance.script]);
|
|
|
|
// const resp = await execContainer(id, [shell, "-c", instance.script]);
|
|
|
|
command = command + " " + instance.script;
|
|
|
|
command = command + "; " + instance.script;
|
|
|
|
const resp = await execContainer(id, [shell, "-c", command]);
|
|
|
|
const resp = await execContainer(id, [shell, "-c", command]);
|
|
|
|
const stdout = resp.stdout.trim().split("\n");
|
|
|
|
const stdout = resp.stdout.trim().split("\n");
|
|
|
|
const stderr = resp.stderr.trim().split("\n");
|
|
|
|
const stderr = resp.stderr.trim().split("\n");
|
|
|
|