vbem / multi-runners Goto Github PK
View Code? Open in Web Editor NEWMulti self-hosted runners on single host!
License: Apache License 2.0
Multi self-hosted runners on single host!
License: Apache License 2.0
Hey, awesome tool! Love it so far!
I was wondering if there is a guideline on how to cleanup leftover files of the runners? Can I delete the _work directories? They are by far the heaviest ones.
Thanks!
I'm trying to use this wrapper script but the issue I'm having is that containers in github actions run as root so if you try to use this in combination with a workflow that requires containers then you'll get a permission error. I wanted to run this wrapper as root but there's a hardcoded useradd
which obviously conflicts with the existing root user.
Hi,
Thanks for creating the package, after my last issue I was able to create the runners so thanks for the update. But now I'm facing another issue. Some of my docker images are in a private registry, so I ensured that my server can access the registry. I verified that by using the default GitHub runner which can successfully pull images from there.
But all the runners that I've added using this tool can't access this repository although they are added on the same server. Did I miss anything in the readme that I need to do to ensure these runners can also access the registry?
On RHEL9 SELinux fail because of binary location
Runnig chcon -t bin_t /home/runner-0/runner/runsvc.sh
resolve the problem
chcon
to add
comand@@ -253,7 +253,7 @@
cd .. && tar -xzf "$tarpath"
echo "$dotenv" >> .env
./config.sh --unattended --replace --url '$url' --token '$token' --name '$name' --labels '$labels' --runnergroup '$group'
- sudo ./svc.sh install '$user' && sudo ./svc.sh start
+ sudo ./svc.sh install '$user' && chcon -t bin_t ./runsvc.sh && sudo ./svc.sh start
__
}
Error Log
May 07 18:39:26 github-runner-ci systemd[1644]: [email protected]: Failed at step EXEC spawning /home/runner-0/runner/runsvc.sh: Permission denied
May 07 18:39:26 github-runner-ci systemd[1]: [email protected]: Main process exited, code=exited, status=203/EXE
Running ./mr.bash download
Produces such error:
jq: error (at <stdin>:1): Cannot iterate over null (null)
./mr.bash pat2token
is working correctlym although
Not sure what steps to reproduce to put or any other info about my system.
This tool is super useful; thank you!!
I set up a handful of runners on an EC2 instance, and their names on https://github.com/MY_ORG/MY_REPO/actions/runners?tab=self-hosted
are all something like [email protected]
.
Is there a way to override the name? If not, please consider this a feature request. :)
Hello. The problem is this:
From the looks of it, only one managed to download the repo it was supposed
to build on, the rest failed and continue to fail.
It seems the repo gets deleted for some reason from the /_work/
folder
What may cause this and what is the fix?
Thank you
[2023-10-17T19:24:10+00:00 DEBUG mr::addRunner] Adding runner into local user 'runner-1' for https://github.com/contra
--------------------------------------------------------------------------------
| ____ _ _ _ _ _ _ _ _ |
| / ___(_) |_| | | |_ _| |__ / \ ___| |_(_) ___ _ __ ___ |
| | | _| | __| |_| | | | | '_ \ / _ \ / __| __| |/ _ \| '_ \/ __| |
| | |_| | | |_| _ | |_| | |_) | / ___ \ (__| |_| | (_) | | | \__ \ |
| \____|_|\__|_| |_|\__,_|_.__/ /_/ \_\___|\__|_|\___/|_| |_|___/ |
| |
| Self-hosted runner registration |
| |
--------------------------------------------------------------------------------
# Authentication
Http response code: NotFound from 'POST https://api.github.com/actions/runner-registration' (Request Id: E214:40DE:17767A6:2F94543:652EDF5E)
{"message":"Not Found","documentation_url":"https://docs.github.com/rest"}
Response status code does not indicate success: 404 (Not Found).
[2023-10-17T19:24:14+00:00 WARN mr::addRunner] Return 1 from command: sudo su --login runner-1 -- -eo pipefail
Not clear why this is failing
Thank you for doing the work and providing a solution to use multiple runners on a single host. However I'm running into an issue when trying to run the pat2token
/ add
commands to setup my runners. Based on the error I'm pretty certain that the issue is on my side but I can't figure it out.
I created a PAT in my profile (classic) with the following permission and added it to the .env
file. I also tried the recommend approach for creating a fine grained token but could not find the mentioned 'organization_self_hosted_runners' permission. Any guidance would be appreciated.
Good to mention is that I'm the owner of the organisation and when trying it for a specific repository it appears to work like expected
Hi there,
Thanks to this, i conveniently configured github actions. ๐๐ป
I have a question regarding the runner directory. Is it possible to specify a custom directory for the runners instead of using the default /home directory?
Any information or guidance on this matter would be greatly appreciated.
TY
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.