diff --git a/dist/index.js b/dist/index.js index 937f7492..d480e8c2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5379,7 +5379,7 @@ var ContainerAppHelper = /** @class */ (function () { case 2: dockerTool = _a.sent(); dockerCommand = "run --rm -v " + appSourcePath + ":/app " + ORYX_CLI_IMAGE + " /bin/bash -c \"oryx dockerfile /app | head -n 1 | sed 's/ARG RUNTIME=//' >> /app/oryx-runtime.txt\""; - return [4 /*yield*/, exec.exec(dockerTool, [dockerCommand]) + return [4 /*yield*/, exec.exec(dockerTool, ['run', '--rm', '-v', appSourcePath + ":/app", "" + ORYX_CLI_IMAGE, '/bin/bash', '-c', "\"oryx dockerfile /app | head -n 1 | sed 's/ARG RUNTIME=//' >> /app/oryx-runtime.txt\""]) // new Utility().executeAndthrowIfError( // `${dockerTool}`, // `${dockerCommand}`, diff --git a/src/ContainerAppHelper.js b/src/ContainerAppHelper.js index b3f6deed..2892e819 100644 --- a/src/ContainerAppHelper.js +++ b/src/ContainerAppHelper.js @@ -604,7 +604,7 @@ var ContainerAppHelper = /** @class */ (function () { case 2: dockerTool = _a.sent(); dockerCommand = "run --rm -v " + appSourcePath + ":/app " + ORYX_CLI_IMAGE + " /bin/bash -c \"oryx dockerfile /app | head -n 1 | sed 's/ARG RUNTIME=//' >> /app/oryx-runtime.txt\""; - return [4 /*yield*/, exec.exec(dockerTool, [dockerCommand]) + return [4 /*yield*/, exec.exec(dockerTool, ['run', '--rm', '-v', appSourcePath + ":/app", "" + ORYX_CLI_IMAGE, '/bin/bash', '-c', "\"oryx dockerfile /app | head -n 1 | sed 's/ARG RUNTIME=//' >> /app/oryx-runtime.txt\""]) // new Utility().executeAndthrowIfError( // `${dockerTool}`, // `${dockerCommand}`, diff --git a/src/ContainerAppHelper.ts b/src/ContainerAppHelper.ts index 5fd608e4..91593bd2 100644 --- a/src/ContainerAppHelper.ts +++ b/src/ContainerAppHelper.ts @@ -447,7 +447,7 @@ export class ContainerAppHelper { const dockerTool: string = await io.which("docker", true); // Use 'oryx dockerfile' command to determine the runtime stack to use and write it to a temp file const dockerCommand: string = `run --rm -v ${appSourcePath}:/app ${ORYX_CLI_IMAGE} /bin/bash -c "oryx dockerfile /app | head -n 1 | sed 's/ARG RUNTIME=//' >> /app/oryx-runtime.txt"`; - const exitCode = await exec.exec(dockerTool, [dockerCommand]) + const exitCode = await exec.exec(dockerTool, ['run', '--rm', '-v', `${appSourcePath}:/app`, `${ORYX_CLI_IMAGE}`, '/bin/bash', '-c', `"oryx dockerfile /app | head -n 1 | sed 's/ARG RUNTIME=//' >> /app/oryx-runtime.txt"`]) // new Utility().executeAndthrowIfError( // `${dockerTool}`, // `${dockerCommand}`,