Skip to content

Commit

Permalink
configure runner to chroot and mount special filesystems
Browse files Browse the repository at this point in the history
  • Loading branch information
stagnation committed Mar 1, 2024
1 parent d36981b commit 5bf0080
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
14 changes: 13 additions & 1 deletion bare/config/runner.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@ local common = import 'common.libsonnet';

{
buildDirectoryPath: std.extVar('PWD') + '/worker/build',
chrootIntoInputRoot: true,
global: common.globalWithDiagnosticsHttpServer(':9987'),
grpcServers: [{
listenPaths: ['worker/runner'],
authenticationPolicy: { allow: {} },
}],
chrootIntoInputRoot: true,
inputRootMounts: [
{
mountpoint: 'proc',
source: '/proc',
filesystemType: 'proc',
},
{
mountpoint: 'sys',
source: '/sys',
filesystemType: 'sysfs',
},
],
}
14 changes: 13 additions & 1 deletion docker-compose/config/runner-ubuntu22-04.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@ local common = import 'common.libsonnet';

{
buildDirectoryPath: '/worker/build',
chrootIntoInputRoot: true,
global: common.global,
grpcServers: [{
listenPaths: ['/worker/runner'],
authenticationPolicy: { allow: {} },
}],
chrootIntoInputRoot: true,
inputRootMounts: [
{
mountpoint: 'proc',
source: '/proc',
filesystemType: 'proc',
},
{
mountpoint: 'sys',
source: '/sys',
filesystemType: 'sysfs',
},
],
}

0 comments on commit 5bf0080

Please sign in to comment.