Skip to content

Commit

Permalink
Fix docker command
Browse files Browse the repository at this point in the history
  • Loading branch information
snehapar9 committed Sep 19, 2023
1 parent 9036584 commit 89e0466
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down
2 changes: 1 addition & 1 deletion src/ContainerAppHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down
2 changes: 1 addition & 1 deletion src/ContainerAppHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down

0 comments on commit 89e0466

Please sign in to comment.