Skip to content

Commit

Permalink
Fix oryx dockerfile command to get runtime stack
Browse files Browse the repository at this point in the history
  • Loading branch information
snehapar9 committed Sep 29, 2023
1 parent 84afe95 commit c6376d9
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 @@ -5180,7 +5180,7 @@ var ContainerAppHelper = /** @class */ (function () {
return [4 /*yield*/, toolHelper.which("docker", true)];
case 2:
dockerTool = _a.sent();
command = "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 = "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(dockerTool + " " + 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 @@ -362,7 +362,7 @@ export class ContainerAppHelper {
try {
let dockerTool: string = await toolHelper.which("docker", true);
// Use 'oryx dockerfile' command to determine the runtime stack to use and write it to a temp file
let command = `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 = `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(`${dockerTool} ${command}`)

// Read the temp file to get the runtime stack into a variable
Expand Down

0 comments on commit c6376d9

Please sign in to comment.