Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provider assumes apt for linux os #22

Closed
gustaff-weldon opened this issue Jun 17, 2024 · 3 comments
Closed

Provider assumes apt for linux os #22

gustaff-weldon opened this issue Jun 17, 2024 · 3 comments

Comments

@gustaff-weldon
Copy link

Currently, the provider assumes that runner image for linux contains apt

"sudo useradd -m " + defaults.DefaultUser + " || true",
// Create the runner home directory if it doesn't exist
"sudo mkdir -p /home/" + defaults.DefaultUser,
// Add user to sudoers
"sudo usermod -aG sudo " + defaults.DefaultUser,
// Check curl and tar are installed
"sudo apt-get update && sudo apt-get install -y curl tar",
// Install the runner
"echo " + asBase64 + " | base64 -d > /install_runner.sh",
"chmod +x /install_runner.sh",
"echo 'runner ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/garm",
"su -l -c /install_runner.sh " + defaults.DefaultUser,

This makes it difficult to use custom runner images based eg. on Alpine

@gabriel-samfira
Copy link
Member

Alpine might not work. Not sure if the gh runner supoorts it.

@fabi200123
Copy link
Contributor

Hello there!
The PR #25 will update the way the GCP provider works for linux. Now it will allows just linux images that have cloud-init on them so the provider will not assume anymore that apt is installed on the instances.

@gabriel-samfira
Copy link
Member

Closed via #25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants