Skip to content

Commit

Permalink
feat: update run containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Slanx committed Mar 26, 2024
1 parent 35997b7 commit 64d61e3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion containers/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const ALGORITMS_TARGET_DEBUG_DIST = process.env.ALGORITMS_TARGET_DEBUG_DIST;
const ALGORITMS_TARGET_IMAGES_DIST = process.env.ALGORITMS_TARGET_IMAGES_DIST;
const ALGORITMS_SOURCE_DEBUG_DIST = process.env.ALGORITMS_SOURCE_DEBUG_DIST;
const ALGORITMS_SOURCE_IMAGES_DIST = process.env.ALGORITMS_SOURCE_IMAGES_DIST;
const NETWORK = process.env.NETWORK;

export const startContainer = async (
image = 'test_ref',
Expand Down Expand Up @@ -35,7 +36,12 @@ export const startContainer = async (
},
],
CpuQuota: 100000,
NetworkMode: 'host',
ExtraHosts: ['host.docker.internal:host-gateway'],
},
NetworkingConfig: {
EndpointsConfig: {
[NETWORK]: {},
},
},
});
const startedContainer = await container.start();
Expand Down

0 comments on commit 64d61e3

Please sign in to comment.