[Bug 277352] [NEW PORT] devel/act-runner Gitea Actions Runner

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 28 Apr 2024 20:32:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277352

--- Comment #6 from Vick Khera <vivek@khera.org> ---
A couple of notes building the port from this patch.  Thanks so much for making
it! Hopefully it can be committed soon.

Building in Poudriere fails the build step with a bunch of DNS query failure
(see below).

Building directly in the port directory succeeds.

The pkg-message file has a typo "supoprt" instead of support.

When registering the runner one must first `cd ~act-runner` so the `.runner`
file is written to the right place.

Before starting the daemon, one must edit the
`/usr/local/etc/act-runner/act-runner.conf` file to comment out the docker
"labels", since this is not built with docker support.  I'm hoping we can use
the podman support to run linux images eventually.

I'm still figuring out how to write the action scripts to run on the local
machine, and how to make it use a jail instead of just its own home directory.

Errors from poudriere building (I tried two different DNS servers, one local
and one remote):

===>  Building for act-runner-0.2.10
go build -v -tags '' -ldflags '-extldflags "-static" -s -w  ' -o act_runner
go: downloading code.gitea.io/actions-proto-go v0.4.0
go: downloading connectrpc.com/connect v1.15.0
go: downloading github.com/docker/docker v25.0.3+incompatible
go: downloading github.com/joho/godotenv v1.5.1
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading gitea.com/gitea/act v0.261.1
go: downloading github.com/sirupsen/logrus v1.9.3
go: downloading github.com/spf13/cobra v1.8.0
go: downloading golang.org/x/term v0.18.0
go: downloading golang.org/x/time v0.5.0
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/avast/retry-go/v4 v4.5.1
go: downloading google.golang.org/protobuf v1.33.0
internal/app/cmd/register.go:16:2: code.gitea.io/actions-proto-go@v0.4.0: Get
"https://proxy.golang.org/code.gitea.io/actions-proto-go/@v/v0.4.0.zip": dial
tcp: lookup proxy.golang.org on 192.168.135.1:53: write udp
127.0.0.1:50796->192.168.135.1:53: write: can't assign requested address
internal/app/cmd/register.go:17:2: code.gitea.io/actions-proto-go@v0.4.0: Get
"https://proxy.golang.org/code.gitea.io/actions-proto-go/@v/v0.4.0.zip": dial
tcp: lookup proxy.golang.org on 192.168.135.1:53: write udp
127.0.0.1:50796->192.168.135.1:53: write: can't assign requested address
... bunches more ...

-- 
You are receiving this mail because:
You are the assignee for the bug.