Skip to content

Commit

Permalink
Use chroot in the fuse runner
Browse files Browse the repository at this point in the history
Now the build fails.

This is step two of three to verify the solution to:
buildbarn/bb-remote-execution#115
  • Loading branch information
stagnation committed Mar 27, 2024
1 parent 4bd72af commit b546ddd
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions bare/config/runner.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local common = import 'common.libsonnet';

{
buildDirectoryPath: std.extVar('PWD') + '/worker/build',
chrootIntoInputRoot: true,
global: common.globalWithDiagnosticsHttpServer(':9987'),
grpcServers: [{
listenPaths: ['worker/runner'],
Expand Down
10 changes: 9 additions & 1 deletion bare/config/worker.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,16 @@ local common = import 'common.libsonnet';
cacheReplacementPolicy: 'LEAST_RECENTLY_USED',
},
runners: [{
# https://github.com/grpc/grpc/blob/master/doc/naming.md
// https://github.com/grpc/grpc/blob/master/doc/naming.md
endpoint: { address: 'unix:worker/runner' },
inputRootCharacterDeviceNodes: [
'full',
'null',
'random',
'tty',
'urandom',
'zero',
],
concurrency: 8,
platform: {},
workerId: {
Expand Down
1 change: 1 addition & 0 deletions docker-compose/config/runner-ubuntu22-04.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local common = import 'common.libsonnet';

{
buildDirectoryPath: '/worker/build',
chrootIntoInputRoot: true,
global: common.global,
grpcServers: [{
listenPaths: ['/worker/runner'],
Expand Down
8 changes: 8 additions & 0 deletions docker-compose/config/worker-fuse-ubuntu22-04.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ local common = import 'common.libsonnet';
endpoint: { address: 'unix:///worker/runner' },
concurrency: 8,
instanceNamePrefix: 'fuse',
inputRootCharacterDeviceNodes: [
'full',
'null',
'random',
'tty',
'urandom',
'zero',
],
platform: {
properties: [
{ name: 'OSFamily', value: 'linux' },
Expand Down

0 comments on commit b546ddd

Please sign in to comment.