Skip to content

Commit

Permalink
Fix formating for oryx dockerfile command
Browse files Browse the repository at this point in the history
  • Loading branch information
snehapar9 committed Oct 12, 2023
1 parent 97ee27f commit 6f4da9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
];
Expand Down
2 changes: 1 addition & 1 deletion src/ContainerAppHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f4da9e

Please sign in to comment.