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

Consider adding user-space package manager, such as mise #55

Open
lorengordon opened this issue Jul 23, 2024 · 4 comments
Open

Consider adding user-space package manager, such as mise #55

lorengordon opened this issue Jul 23, 2024 · 4 comments

Comments

@lorengordon
Copy link

I would like to avoid having to manage an image pipeline for the spacelift runner, and just rely on the image published by spacelift. However, sometimes we do find we need to download/install a couple packages, to support different pipeline workflows. It can be tricky to install package on Alpine Linux in a container, without root and without sudo.

To support this use case, I would like to propose adding a "user space" package manager, such as mise. The idea is that a stack could run mise and any additional packages required by the pipeline would be installed at runtime. This approach using a "user space" package manager keeps the image quite small, and there is no need for root or sudo access.

@lorengordon lorengordon changed the title Consider adding user-space package manage, such as mise Consider adding user-space package manager, such as mise Jul 23, 2024
lorengordon added a commit to lorengordon/runner-terraform that referenced this issue Jul 23, 2024
@eliecharra
Copy link
Member

Closing this #56 (comment)
We can reconsider if the community sends us multiples strong signal for it 🙏🏻

@lorengordon
Copy link
Author

@eliecharra Can you please change the completed label, since it's not actually completed?

@peterdeme peterdeme reopened this Jul 24, 2024
@eliecharra eliecharra closed this as not planned Won't fix, can't repro, duplicate, stale Jul 24, 2024
@peterdeme peterdeme reopened this Jul 24, 2024
@peterdeme
Copy link
Contributor

We'll keep this open for a bit to see if it gets any traction. 🙂

@lorengordon
Copy link
Author

Absent installing something like mise/asdf directly in the image, we've found it easy enough to install with a before hook (if a bit less "secure"):

  before_init:
    - curl https://mise.run/ | sh
    - eval "$(~/.local/bin/mise activate bash --shims)"

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 a pull request may close this issue.

3 participants