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

feature request: *craft preset #27

Open
lucabello opened this issue Jan 10, 2025 · 1 comment
Open

feature request: *craft preset #27

lucabello opened this issue Jan 10, 2025 · 1 comment

Comments

@lucabello
Copy link

Problem

Currently, when we pack charms in CI, we setup the environment with:

- name: Setup LXD
  uses: canonical/setup-lxd@main
- name: Install charmcraft
  run: sudo snap install charmcraft --classic

I'd love to have a concierge preset for packing charms, that:

  1. sets up lxd without bootstrapping it;
  2. installs charmcraft.

Currently, I could use the microk8s preset, but installing microk8s is unnecessary and slows things down by approximately 5 minutes every time.

Solutions

I have two ideas:

  • have a charmcraft preset that does what I wrote above;
  • have a craft preset that also installs the snapcraft and rockcraft snaps, following what's already done in the microk8s preset, but without juju and microk8s.

I can open a PR for this after I hear your thoughts; what do you think?

@jnsgruk
Copy link
Owner

jnsgruk commented Jan 10, 2025

Hmm, interesting. I think you could get most of what you're suggesting with a config file like so:

providers:
  lxd:
    enable: true
    bootstrap: false

host:
  snaps:
    charmcraft:
      channel: latest/stable

The only overhead here (I think) is that the Juju snap would be installed?

I'm not against having a charmcraft preset if the above doesn't work, and I'm happy to review PRs.

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

2 participants