aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/workflows/doc.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/workflows/doc.go')
-rw-r--r--internal/workflows/doc.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/internal/workflows/doc.go b/internal/workflows/doc.go
index 0c7e94b9..e34c59c8 100644
--- a/internal/workflows/doc.go
+++ b/internal/workflows/doc.go
@@ -47,6 +47,7 @@ The container can be specified via docker-compose:
runner:
restart: always
image: docker.io/gitea/act_runner:nightly
+ network_mode: host
environment:
CONFIG_FILE: /config.yaml
GITEA_INSTANCE_URL: "https://git.gensokyo.uk"
@@ -62,17 +63,21 @@ The container can be specified via docker-compose:
Before starting the container, configure act_runner via config.yaml:
container:
- network: host
options: -e PAGER=cat -e MBF_CACHE_DIR=/rosa -e MBF_POISON_OPEN=1
-v /var/lib/rosa:/rosa
+ --security-opt='unmask=/proc/*'
+ --cap-add=SYS_ADMIN
--device=/dev/kvm
+ --device=/dev/fuse
valid_volumes:
- /var/lib/rosa
where /var/lib/rosa is the absolute pathname of the cache directory in the init
namespace. Setting MBF_POISON_OPEN enables cmd/mbf to run as root. It is also
a good idea here to set runner.capacity to reflect the capacity of the guest, so
-jobs can be consumed quicker.
+jobs can be consumed quicker. Removing mount points covering /proc enables
+testing of cmd/hakurei. Exposing the fuse device and adding capability SYS_ADMIN
+enables testing of cmd/sharefs.
Build a statically-linked cmd/mbf: