Skip to content

Commit 542d61a

Browse files
authored
fix: remove hard-coded docker reference (#1536)
1 parent 7132392 commit 542d61a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/job.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ export class Job {
605605
let chownOpt = "0:0";
606606
let chmodOpt = "a+rw";
607607
if (!this.argv.umask) {
608-
const {stdout} = await Utils.spawn(["docker", "run", "--rm", "--entrypoint", "sh", imageName, "-c", "echo \"$(id -u):$(id -g)\""]);
608+
const {stdout} = await Utils.spawn([this.argv.containerExecutable, "run", "--rm", "--entrypoint", "sh", imageName, "-c", "echo \"$(id -u):$(id -g)\""]);
609609
chownOpt = stdout;
610610
if (chownOpt == "0:0") {
611611
chmodOpt = "g-w";
@@ -624,7 +624,7 @@ export class Job {
624624
await Utils.spawn([this.argv.containerExecutable, "start", "--attach", containerId], argv.cwd);
625625
await Utils.spawn([this.argv.containerExecutable, "rm", "-vf", containerId], argv.cwd);
626626
const endTime = process.hrtime(time);
627-
writeStreams.stdout(chalk`${this.formattedJobName} {magentaBright copied to docker volumes} in {magenta ${prettyHrtime(endTime)}}\n`);
627+
writeStreams.stdout(chalk`${this.formattedJobName} {magentaBright copied to ${this.argv.containerExecutable} volumes} in {magenta ${prettyHrtime(endTime)}}\n`);
628628
}
629629

630630
if (this.services?.length) {

0 commit comments

Comments
 (0)