Skip to content

Commit

Permalink
UNCATEGORIZED WORK
Browse files Browse the repository at this point in the history
  • Loading branch information
stagnation committed Mar 1, 2024
1 parent 5bf0080 commit 644a624
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 28 deletions.
12 changes: 10 additions & 2 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
load("@aspect_bazel_lib//lib:run_binary.bzl", "run_binary")
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")

# gazelle:prefix github.com/buildbarn/bb-deployments
# gazelle:exclude dummy_for_dependencies.go
Expand All @@ -18,5 +17,14 @@ run_binary(
"no-cache": "1",
},
tool = ":ls-proc",
srcs = ["usr/bin/env"],
srcs = [
# env is required in path resolution for chroot actions.
"usr/bin/env",
# Not strictly needed, but symmetric with sys and proc.
"dev/dummy",
# Send a directory for /sys and /proc
# Bazel wants a file for it to send the directory.
"sys/dummy",
"proc/dummy",
],
)
13 changes: 0 additions & 13 deletions bare/config/runner.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,4 @@ local common = import 'common.libsonnet';
listenPaths: ['worker/runner'],
authenticationPolicy: { allow: {} },
}],
chrootIntoInputRoot: true,
inputRootMounts: [
{
mountpoint: 'proc',
source: '/proc',
filesystemType: 'proc',
},
{
mountpoint: 'sys',
source: '/sys',
filesystemType: 'sysfs',
},
],
}
3 changes: 3 additions & 0 deletions bare/config/worker.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ local common = import 'common.libsonnet';
'zero',
],
concurrency: 8,
environment_variables: {
PATH: '/usr/bin',
},
platform: {},
workerId: {
datacenter: 'paris',
Expand Down
13 changes: 0 additions & 13 deletions docker-compose/config/runner-ubuntu22-04.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,4 @@ local common = import 'common.libsonnet';
listenPaths: ['/worker/runner'],
authenticationPolicy: { allow: {} },
}],
chrootIntoInputRoot: true,
inputRootMounts: [
{
mountpoint: 'proc',
source: '/proc',
filesystemType: 'proc',
},
{
mountpoint: 'sys',
source: '/sys',
filesystemType: 'sysfs',
},
],
}
3 changes: 3 additions & 0 deletions docker-compose/config/worker-fuse-ubuntu22-04.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ local common = import 'common.libsonnet';
'urandom',
'zero',
],
environment_variables: {
PATH: '/usr/bin',
},
platform: {
properties: [
{ name: 'OSFamily', value: 'linux' },
Expand Down

0 comments on commit 644a624

Please sign in to comment.