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

Allow installing additional packages in lxd container #103

Merged
merged 1 commit into from
Jun 11, 2023

Conversation

HippocampusGirl
Copy link
Contributor

Dear maintainers,

This proposed change extends the UserDataOptions introduced in #87 and #95 so that the user can configure additional packages to be installed into the runner of each pool.

This can be very useful when GitHub Actions workflows require Docker to be installed in the runner. This can be configured via

garm-cli pool update \
    --extra-specs='{"extra_packages": ["docker.io"]}' \
        <pool id>

@gabriel-samfira
Copy link
Member

This is great! Thanks!

@gabriel-samfira gabriel-samfira merged commit a42ad39 into cloudbase:main Jun 11, 2023
4 checks passed
@gabriel-samfira
Copy link
Member

Apropos, if you need to install packages that are not in the default repositories, you can always have a workflow step that prepares the runner before running anything else:

Here's an example: https://github.com/flatcar/scripts/blob/2f12dfb04bdea32f7627a348c2b24c5f0ec793ed/.github/workflows/ci.yaml#L51-L64

Alternatively, you can customize an image and use that (saves time installing packages). Or, using the extra specs option you just added. Either way will work 😄.

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

Successfully merging this pull request may close these issues.

None yet

2 participants