Skip to content

Commit

Permalink
added get docker path in max
Browse files Browse the repository at this point in the history
  • Loading branch information
damshenas committed Jun 20, 2024
1 parent c826d8f commit 7a90f9a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/cdk-assets/lib/private/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,15 @@ export class DockerFactory {
}

function getDockerCmd(): string {
return process.env.CDK_DOCKER ?? 'docker';
return process.env.CDK_DOCKER ?? getDockerCmdMac() ?? 'docker';
}

function flatten(x: string[][]) {
return Array.prototype.concat([], ...x);
}

function getDockerCmdMac(): string | undefined {
const isMac = os.platform() === 'darwin';
if ( isMac ) return '/Applications/Docker.app/Contents/Resources/bin/docker'
else return
}

0 comments on commit 7a90f9a

Please sign in to comment.