From 9036584552fa15beb2a91dad263928509c199f7e Mon Sep 17 00:00:00 2001 From: snehapar9 Date: Mon, 18 Sep 2023 22:20:29 -0700 Subject: [PATCH] Fix docker command --- dist/index.js | 2 +- src/ContainerAppHelper.js | 2 +- src/ContainerAppHelper.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 57f1515b..937f7492 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('docker', [dockerCommand]) + return [4 /*yield*/, exec.exec(dockerTool, [dockerCommand]) // new Utility().executeAndthrowIfError( // `${dockerTool}`, // `${dockerCommand}`, diff --git a/src/ContainerAppHelper.js b/src/ContainerAppHelper.js index 5ea5aed8..b3f6deed 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('docker', [dockerCommand]) + return [4 /*yield*/, exec.exec(dockerTool, [dockerCommand]) // new Utility().executeAndthrowIfError( // `${dockerTool}`, // `${dockerCommand}`, diff --git a/src/ContainerAppHelper.ts b/src/ContainerAppHelper.ts index f85f81bd..5fd608e4 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('docker', [dockerCommand]) + const exitCode = await exec.exec(dockerTool, [dockerCommand]) // new Utility().executeAndthrowIfError( // `${dockerTool}`, // `${dockerCommand}`,