Repository navigation
Install GitHub runner on startup in a tmpfs - #10318
Merged
Merged
Conversation
GMNGeoffrey
marked this pull request as ready for review
September 7, 2022 18:02
pzread
approved these changes
Sep 7, 2022
| chmod +x ~runner/config/deregister.sh | ||
| echo "Creating tmpfs for runner" | ||
| mkdir /runner-root | ||
| mount -t tmpfs -o size=50g tmpfs /runner-root |
Contributor
There was a problem hiding this comment.
Tested on my local machine, looks like by default it gives 0777 file permission. Do we want to restrict the access a little?
Member
Author
There was a problem hiding this comment.
I don't think it really matters? The runner has passwordless sudo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The installation is just extracting an archive, so is not costly. This
makes the runner more decoupled from its boot disk. It allows us to
upgrade the runner version (which we'll need to do frequently) without
creating a whole new VM image (which is a pain and requires full VM
replacement to update). The tmpfs also gives us better IO performance,
which should speed a few things along (though we already give Docker a
tmpfs, so the difference won't be huge). It should allow us to switch
to a much simpler base image that just has a few dependencies
installed, rather than the current image, which I accidentally made 1TB
and is the product of much messing around.
Tested: #10298 targets the testing
runners which are using this config.
skip-ci
This is the last bit of #10133
Closes #10133