From 6f4da9e218e99c334b85c6ac233b9dda70b55754 Mon Sep 17 00:00:00 2001 From: snehapar9 Date: Thu, 12 Oct 2023 00:16:58 -0700 Subject: [PATCH] Fix formating for oryx dockerfile command --- dist/index.js | 2 +- src/ContainerAppHelper.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 7b3d63ea..0bc3e65f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5176,7 +5176,7 @@ var ContainerAppHelper = /** @class */ (function () { _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); - command = "docker 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"; + command = "docker 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*/, util.executeAndThrowIfError(command) // Read the temp file to get the runtime stack into a variable ]; diff --git a/src/ContainerAppHelper.ts b/src/ContainerAppHelper.ts index 773a43a5..5f391d9a 100644 --- a/src/ContainerAppHelper.ts +++ b/src/ContainerAppHelper.ts @@ -361,7 +361,7 @@ export class ContainerAppHelper { toolHelper.writeDebug('Attempting to determine the runtime stack needed for the provided application source'); try { // Use 'oryx dockerfile' command to determine the runtime stack to use and write it to a temp file - let command = `docker 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` + let command = `docker 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\"` await util.executeAndThrowIfError(command) // Read the temp file to get the runtime stack into a variable