mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #952] Issue: System has not been booted with systemd as init system (PID 1). Can't operate. #559
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#559
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @joedborg on GitHub (Jan 5, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/952
System information
act: ghcr.io/catthehacker/ubuntu:full-20.04actversion: 0.2.24Expected behaviour
systemctl start snapdto workActual behaviour
Workflow and/or repository
Steps to reproduce
Run above code.
actoutput@catthehacker commented on GitHub (Jan 6, 2022):
It's not possible to run
snapsinceactis using Docker containers, you can try with--privilegedbut without mounting special paths and/or running own systemd inside container it's most likely going to fail.@joedborg commented on GitHub (Jan 6, 2022):
Hey @catthehacker, I do understand why this happening, but I do believe it's a but. The reason I believe this is because it breaks the first statement in the readme: "Run your GitHub Actions locally!".
In my very inexperienced (with the guts of act) opinion, I would guess running systemd inside the container is the fix. This would mean that you can have a like-for-like experience with GitHub Actions. I understand that this might feel overkill, especially for those GHA's that are just checkout and flake8, but I do think
actneeds to be able to run everything you could within any GHA.@catthehacker commented on GitHub (Jan 6, 2022):
Currently it's not possible to run everything,
actis making a compromise between ease of use and compatibility, by leveraging Docker.I think the comment "Run your GitHub Actions locally!" is before even GitHub re-made how GHA works, while it still applies there is a lot that GitHub does and
actcan't due to GHA runner complexity and features.To be completely compatible it would require to run completely on host (https://github.com/nektos/act/issues/97)
Here is more context: https://github.com/cli/cli/issues/3585
I also wouldn't like to misrepresent
act, so it's better if @cplee takes a gander here in terms of "actbeing able to run everything", as I'm mostly technical person (and not an author of this tool) and can do only as much.@joedborg commented on GitHub (Jan 6, 2022):
Thank you @catthehacker. I agree that Docker is probably being used to find a pragmatic balance, but I think it'll ultimately restrict
act, which is think is a fantastic tool, too much. It's my belief that things that'll always run well inside a Docker container, e.g.flake8is almost as simple to just run on the host; it's the complex workflows I really want to be able to just runactand see if it passes before pushing.My guess would be to fix this with machine containers (lxc, kvm, multipass etc.) instead of Docker.
@catthehacker commented on GitHub (Jan 6, 2022):
https://github.com/ChristopherHX/runner.server might work made by one of contributors, though I have never used it
@github-actions[bot] commented on GitHub (Feb 6, 2022):
Issue is stale and will be closed in 14 days unless there is new activity