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

feat(just): add option to use toolbox instead of distrobox #218

Merged
merged 10 commits into from
Feb 23, 2024

Conversation

HikariKnight
Copy link
Member

Since toolbox and distrobox are nowhere near feature parity (and not always compatible with each other), it made more sense to provide the toolbox option as a separate recipe.

Recipes

This PR implements the recipes toolbox-new and a very limited version of distrobox-assemble in the form of toolbox-assemble for ujust.
There are no plans to expand upon this, the assemble feature is provided as a nice to have for defining multiple toolbox containers and assembling them with 1 command.

Internals

For internal ujust functions this implements Toolbox, ToolboxAssemble and ToolboxAssembleList that will work similar to the internal ujust functions for distrobox.

Why make toolbox internal functions?

The easiest maintainable way to generate a list of images is through a similar ini manifest file like we do for distrobox, we already had the logic for it, so why not re-use it and avoid having to update the script functions/just file whenever the images supplied gets too old.

image
NOTE: Dev container does not have gum or fzf installed, the bash fallback is perfect for demonstration images like this

This should suffice as an implementation for #186

@HikariKnight HikariKnight marked this pull request as ready for review February 4, 2024 01:02
…and toolbox

the ubi images are identical to the images from registry.redhat.io
@HikariKnight
Copy link
Member Author

This is now ready for review

@HikariKnight HikariKnight added this pull request to the merge queue Feb 23, 2024
Merged via the queue into main with commit 6c3df8c Feb 23, 2024
2 checks passed
@HikariKnight HikariKnight deleted the libtoolbox-sh branch February 23, 2024 10:07
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.

3 participants