From b47e670e0b6956c9fff20e37e8f0fbe8b2315b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Le=C3=9Fmann=20=28=40MarkL4YG=29?= Date: Tue, 7 Jan 2025 16:53:31 +0100 Subject: [PATCH 1/4] Start podman socket immediately --- docs/hosting-runners.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hosting-runners.md b/docs/hosting-runners.md index 3ef5bbe..d229bdf 100644 --- a/docs/hosting-runners.md +++ b/docs/hosting-runners.md @@ -33,7 +33,7 @@ machinectl shell --uid forgejo-runner # <-- This is basically "sudo -Hi XXX" but ``` ```bash -systemctl enable --user podman.socket +systemctl --user enable --now podman.socket echo 'export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock' >> ~/.profile ``` From dbaaa0a16adaa70d629292646d432cac1e65451a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Le=C3=9Fmann=20=28=40MarkL4YG=29?= Date: Tue, 7 Jan 2025 17:34:35 +0100 Subject: [PATCH 2/4] Remove automatic cleanup section because it does not work - No systemd session is available for podman in crontab entries and there appears to be no proper way to get one without a PTY... --- docs/hosting-runners.md | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/docs/hosting-runners.md b/docs/hosting-runners.md index d229bdf..c41693e 100644 --- a/docs/hosting-runners.md +++ b/docs/hosting-runners.md @@ -33,19 +33,10 @@ machinectl shell --uid forgejo-runner # <-- This is basically "sudo -Hi XXX" but ``` ```bash -systemctl --user enable --now podman.socket +systemctl --user enable --now podman.socket podman echo 'export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock' >> ~/.profile ``` -#### Automatic podman cleanup on reboot - -```bash -crontab -e -``` -```cronexp -@reboot podman system cleanup --all --force -``` - ### 4. Install the forgejo-runner ```bash From 3a84de38cb92707ec5577567942732899bec8c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Le=C3=9Fmann=20=28=40MarkL4YG=29?= Date: Tue, 7 Jan 2025 17:38:17 +0100 Subject: [PATCH 3/4] Add note on IPv6 support --- docs/hosting-runners.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/hosting-runners.md b/docs/hosting-runners.md index c41693e..dc990bc 100644 --- a/docs/hosting-runners.md +++ b/docs/hosting-runners.md @@ -65,6 +65,7 @@ Or, if you're volunteering another runner for our instance, please contact us to ```bash # As forgejo-runner forgejo-runner generate-config > config.yml +# You should open the config.yml and enable IPv6 support! (Your cloud host might charge extra for IPv4 connectivity) # We're about to enter secrets into the terminal, disable history: set +o history From 5c658db77699e4cd9f3aa2d45e1057a3e5cb1c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Le=C3=9Fmann=20=28=40MarkL4YG=29?= Date: Tue, 7 Jan 2025 17:41:58 +0100 Subject: [PATCH 4/4] Add demo WF for IpPv6 test --- .editorconfig | 3 +++ .forgejo/workflows/ipv6test.yml | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .forgejo/workflows/ipv6test.yml diff --git a/.editorconfig b/.editorconfig index 9141329..24184c3 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,3 +6,6 @@ insert_final_newline = true charset = utf-8 indent_style = space indent_size = 4 + +[*.yml] +indent_size = 2 \ No newline at end of file diff --git a/.forgejo/workflows/ipv6test.yml b/.forgejo/workflows/ipv6test.yml new file mode 100644 index 0000000..28cd86c --- /dev/null +++ b/.forgejo/workflows/ipv6test.yml @@ -0,0 +1,14 @@ +--- +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + ipv6: + runs-on: docker + steps: + - run: | + apt update; apt install --yes curl + curl -s -o /dev/null https://ipv6.google.com