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

Create a generic craft LXD profile #684

Open
dilyn-corner opened this issue Oct 10, 2024 · 0 comments
Open

Create a generic craft LXD profile #684

dilyn-corner opened this issue Oct 10, 2024 · 0 comments
Labels
Enhancement New feature or request

Comments

@dilyn-corner
Copy link

What needs to get done

Craft tools should adopt the default profile created by users when initializing LXD and then seed that profile with good defaults for the build environment to use.

Why it needs to get done

Currently, craft tools like snapcraft use LXD to create and manage a build environment. LXD creates a default profile which users can freely modify (lxc profile edit default). Whenever a craft tool creates a managed container to perform builds in, that container is created using the default profile. This means that any user-specific additions beyond what a managed container requires (root disk, networking) can infect the build environment, potentially impacting build reproducibility or even ability.

Doing this will protect managed containers from adverse (and potentially unintended) interactions, while still preserving the ability of users to impact the environment tools like snapcraft do their work in.

This could also potentially simplify the config invocations tools like snapcraft use to create the container or the behavior of certain flags (such as --bind-ssh), as that information could be kept within the profile.

@dilyn-corner dilyn-corner added the Enhancement New feature or request label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant