Replies: 5 comments 8 replies
-
I'm obviously in favour of ubuntu being default, for the reasons you mention. In addition, our goal with the AWS hosted runners is to have effectively just larger instances that are 1:1 compatible with the github runners. So while ubuntu is useful as-is, it's not quite enough for how we use the runners, switching jobs between Github and our own fairly arbitrarily based on CPU and RAM needs. What we did to address this was build a https://www.packer.io/ template to build an AMI containing a lot of the packages used by Github runners, based on the scripts and configuration provided by https://github.com/actions/virtual-environments/tree/main/images/linux Based on that AMI, the only thing that needs to be installed on runner launch is the github actions runner itself. This is probably outside of the scope of this project, though. |
Beta Was this translation helpful? Give feedback.
-
@npalm I have just switched over to runners built with smartlyio/github-actions-environment#1 (plus a small change to our user-data script to create the runner user, with the below snippet). So far it seems good; the runner starts and accepts jobs. We have had successful builds. To create the user at startup, I added this to the start of my user-data script:
|
Beta Was this translation helpful? Give feedback.
-
we tend to use ubuntu for all our servers. However, I didn't want to spend time switching the runners created by terraform-aws-github-runner unless there were actual issues. I found no issues mainly because we run everything in docker. I'm happy that the module installs docker into amazon linux |
Beta Was this translation helpful? Give feedback.
-
Prompted by @oradwell above, I just want to update: Our packer scripts here do still work to build an ubuntu image that is as close as I could get it to Github's own runners https://github.com/smartlyio/github-actions-environment/ (by directly using the upstream https://github.com/actions/virtual-environments/ packer builder) We use that to follow Github's runner updates so that we can seamlessly move jobs between Github runners and our own. |
Beta Was this translation helpful? Give feedback.
-
@sjagoe I'm trying to get runners working with |
Beta Was this translation helpful? Give feedback.
-
Since we started the module we used amazon linux as base of the runners, only reason for the choice is the good amazon support and we use it for other setups. So re-using bits and peaces is much easier. But it seems that for the runner ubuntu looks a more logical choice. Some actions/setup-* actions only support ubuntu (for example python).
Therefore I have updated the example created by @sjagoe to support logging, docker (rootless docker) and a non privileges user (see #433). Just wondering what preferences you have? Should we stay on amazon linux or move by the time to ubuntu for running actions workflows?
Beta Was this translation helpful? Give feedback.
All reactions