mirror of
https://github.com/actions/runner.git
synced 2025-12-16 06:57:25 +00:00
.
This commit is contained in:
@@ -53,9 +53,9 @@ async function run(): Promise<void> {
|
||||
// --entrypoint "tail" node:10.16-jessie "-f" "/dev/null"
|
||||
const containerId = await exec.getExecOutput('podman', [
|
||||
'create',
|
||||
`--workdir ${jobContainer.containerWorkDirectory}`,
|
||||
// `--workdir ${jobContainer.containerWorkDirectory}`,
|
||||
`--network ${networkName}`,
|
||||
`-v /Users/ting/Desktop/runner/_layout/_work:/__w`,
|
||||
// `-v /Users/ting/Desktop/runner/_layout/_work:/__w`,
|
||||
`--entrypoint "${jobContainer.containerEntryPoint}"`,
|
||||
`${containerImage}`,
|
||||
`${jobContainer.containerEntryPointArgs}`
|
||||
|
||||
@@ -1069,7 +1069,7 @@ function run() {
|
||||
core.debug(JSON.stringify(creationInput));
|
||||
const containers = creationInput.containers;
|
||||
const jobContainer = containers[0];
|
||||
const networkName = "actions_podman_network";
|
||||
const networkName = 'actions_podman_network';
|
||||
// podman network create {network} -> track and return `network` for ${{job.container.network}}
|
||||
yield exec.exec('podman', ['network', 'create', networkName]);
|
||||
const containerImage = `docker.io/library/${jobContainer.containerImage}`;
|
||||
@@ -1089,10 +1089,11 @@ function run() {
|
||||
// -v "/home/runner/work/_temp/_github_home":"/github/home"
|
||||
// -v "/home/runner/work/_temp/_github_workflow":"/github/workflow"
|
||||
// --entrypoint "tail" node:10.16-jessie "-f" "/dev/null"
|
||||
const containerId = yield exec.getExecOutput('podman', ['create',
|
||||
`--workdir ${jobContainer.containerWorkDirectory}`,
|
||||
const containerId = yield exec.getExecOutput('podman', [
|
||||
'create',
|
||||
// `--workdir ${jobContainer.containerWorkDirectory}`,
|
||||
`--network ${networkName}`,
|
||||
`-v /Users/ting/Desktop/runner/_layout/_work:/__w`,
|
||||
// `-v /Users/ting/Desktop/runner/_layout/_work:/__w`,
|
||||
`--entrypoint "${jobContainer.containerEntryPoint}"`,
|
||||
`${containerImage}`,
|
||||
`${jobContainer.containerEntryPointArgs}`
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace GitHub.Runner.Worker.Container
|
||||
_pathMappings.Add(new PathMapping(hostContext.GetDirectory(WellKnownDirectory.Externals), "/__e"));
|
||||
if (this.IsJobContainer)
|
||||
{
|
||||
this.MountVolumes.Add(new MountVolume("/var/run/docker.sock", "/var/run/docker.sock"));
|
||||
// this.MountVolumes.Add(new MountVolume("/var/run/docker.sock", "/var/run/docker.sock"));
|
||||
}
|
||||
#endif
|
||||
if (container.Ports?.Count > 0)
|
||||
|
||||
Reference in New Issue
Block a user