Compatibility with AlpineLinux #34

Open
opened 2023-05-27 20:58:17 +00:00 by f00 · 3 comments

We've tried to use the forgejo runner (act) on a Host with AlpineLinux, which failed miserably :(

It seems that the lxc-Scripts (start-lxc.sh, lxc-helpers.sh and lxc-helpers-lib.sh) created in the ~/.cache/act folder are highly coupled to a hostsystem with systemd and a full fledged Ubuntu/Debian. Further, busybox is also not supported (which comes with AlpineLinux).

Is there a way to run the runner on AlpineLinux? And if not, is there a way to run it in docker, but run commands on the hostsystem itself?

If both is not an option, what are the steps required to get the runner running on AlpineLinux? Just the 3 scripts or is there more involved?

We've tried to use the forgejo runner (act) on a Host with AlpineLinux, which failed miserably :( It seems that the lxc-Scripts (```start-lxc.sh```, ```lxc-helpers.sh``` and ```lxc-helpers-lib.sh```) created in the ```~/.cache/act``` folder are highly coupled to a hostsystem with systemd and a full fledged Ubuntu/Debian. Further, busybox is also not supported (which comes with AlpineLinux). Is there a way to run the runner on AlpineLinux? And if not, is there a way to run it in docker, but run commands on the hostsystem itself? If both is not an option, what are the steps required to get the runner running on AlpineLinux? Just the 3 scripts or is there more involved?
Owner

LXC support is still incomplete and tied to Debian bullseye. If running in a container is good enough for your needs, I would suggest using an Alpine docker image.

A label such as alpine:docker://alpine:latest should provide you that.

Alternatively, if you're ready to try and patch the runner, there is an LXC template for alpine. But that's more work.

LXC support is still incomplete and tied to Debian bullseye. If running in a container is good enough for your needs, I would suggest using an Alpine docker image. A label such as `alpine:docker://alpine:latest` should provide you that. Alternatively, if you're ready to try and patch the runner, there is an LXC template for alpine. But that's more work.
dachary pinned this 2023-06-22 16:22:09 +00:00
dachary unpinned this 2023-06-22 16:23:55 +00:00
dachary added the
Kind/Bug
label 2023-07-15 15:17:22 +00:00
Member

Did you figure something out?

Did you figure something out?
Author

No.
We use a RaspberryPi with Ubuntu + Wireguard to run the runner now.
I know, this is not the solution for the core problem here, but we needed a quick solution.
AlpineLinux compatibility would still be awesome.
If I got some free time, I will dig into this.

No. We use a RaspberryPi with Ubuntu + Wireguard to run the runner now. I know, this is not the solution for the core problem here, but we needed a quick solution. AlpineLinux compatibility would still be awesome. If I got some free time, I will dig into this.
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: forgejo/runner#34
No description provided.