Skip to content

Commit

Permalink
Fix docker for deno
Browse files Browse the repository at this point in the history
  • Loading branch information
ggodlewski committed Jan 16, 2025
1 parent cce6ecb commit 7ee1115
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions src/containers/action/DockerContainer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import path from 'node:path';
import {PassThrough, Writable} from 'node:stream';
import {PassThrough, type Writable} from 'node:stream';
import type { Buffer } from 'node:buffer';

import Docker from 'dockerode';
import tarFs from 'tar-fs';
Expand All @@ -20,7 +21,10 @@ export class DockerContainer implements OciContainer {
}

static async create(logger: winston.Logger, image: string, env: { [p: string]: string }, repoSubDir: string): Promise<OciContainer> {
const dockerEngine = new Docker({socketPath: '/var/run/docker.sock'});
// https://github.com/apocas/dockerode/issues/747
// const dockerEngine = new Docker({socketPath: '/var/run/docker.sock'});

const dockerEngine = new Docker({ protocol: 'http', host: 'localhost', port: 5000 });

const container = await dockerEngine.createContainer({
Image: image,
Expand Down

0 comments on commit 7ee1115

Please sign in to comment.