Tool for interactive command line environments on Linux
Find a file
Debarshi Ray 8ca5611942 Increase the validation coverage for the container & release options
Currently, the container name and release are only validated if they
were specified as command line options.  Neither the value of release
in the configuration file nor the container name generated from an
image are validated.

There's also a lot of repeated code in the command front-ends to
validate the container name and release.  This opens the door for
mistakes.  Any adjustment to the code must be repeated elsewhere, and
there are subtle interactions and overlaps between the validation code
and the code to resolve container and image names.

It's worth noting that the container and image name resolution happens
for both the command line and configuration file options, and generates
the container name from the image when necessary.

Therefore, validating everything while resolving cleans up the command
front-ends and increases the coverage of the validation.

This introduces the use of sentinel error values and custom error
implementations to identify the different errors that can occur while
resolving the container and images, so that they can be appropriately
shown to the user.

https://github.com/containers/toolbox/pull/1101
2022-09-02 13:11:32 +02:00
.github Revert "ci: Build & Publish Fedora Toolbx images with GitHub Packages" 2022-03-20 21:11:32 +02:00
completion build: Silence a WARNING 2022-08-31 19:35:01 +02:00
data README: Flip the graphic's facing direction for better layout 2022-01-13 21:22:23 +01:00
doc cmd/run, root: Exit with exit code of invoked command 2022-03-21 00:05:45 +02:00
images Images: Create F37 toolbox image from F36 2022-03-21 00:26:10 +02:00
playbooks playbooks: Make all Meson warnings fatal 2022-08-31 19:35:05 +02:00
profile.d profile.d: Fix the PS1 on Z shell 2021-11-25 19:04:20 +01:00
src Increase the validation coverage for the container & release options 2022-09-02 13:11:32 +02:00
test/system Increase the validation coverage for the container & release options 2022-09-02 13:11:32 +02:00
.gitignore test/system: Track bats libs as submodules & install them better 2021-07-22 10:23:53 +02:00
.gitmodules test/system: Track bats libs as submodules & install them better 2021-07-22 10:23:53 +02:00
.mailmap .mailmap: Canonicalize my email 2022-08-01 18:37:43 +02:00
.zuul.yaml .zuul, playbooks: Run unit tests on -Dmigration_path_for_coreos_toolbox 2022-08-31 13:42:40 +02:00
CODE-OF-CONDUCT.md Add Code of Conduct 2020-02-12 17:12:23 +01:00
CONTRIBUTING.md CONTRIBUTING: Custom graphic 2022-01-07 09:34:39 +01:00
COPYING Rename LICENSE as COPYING 2018-10-19 18:24:23 +02:00
gen-docs-list gen-docs-list: Add newline at end of file 2021-02-08 16:49:58 +01:00
GOALS.md GOALS.md: Cosmetics 2021-01-25 21:13:07 +01:00
meson.build Revert "build: Drop ShellCheck on Shell Toolbox" 2022-08-29 22:09:07 +02:00
meson_options.txt Generate & install completion scripts in build system 2022-02-21 15:15:30 +02:00
meson_post_install.py build: Add copyright and license notice 2022-01-11 19:55:22 +01:00
NEWS Prepare 0.0.99.3 2021-12-10 03:40:42 +01:00
README.md Generate & install completion scripts in build system 2022-02-21 15:15:30 +02:00
SECURITY.md Add Security Policy 2020-05-13 14:37:08 +02:00
toolbox Link to the installation guide from the shell Toolbox 2022-08-29 22:09:15 +02:00

README

Zuul Daily Pipeline

Arch Linux package Fedora package

Toolbox is a tool for Linux operating systems, which allows the use of containerized command line environments. It is built on top of Podman and other standard container technologies from OCI.

This is particularly useful on OSTree based operating systems like Fedora CoreOS and Silverblue. The intention of these systems is to discourage installation of software on the host, and instead install software as (or in) containers — they mostly don't even have package managers like DNF or YUM. This makes it difficult to set up a development environment or install tools for debugging in the usual way.

Toolbox solves this problem by providing a fully mutable container within which one can install their favourite development and debugging tools, editors and SDKs. For example, it's possible to do yum install ansible without affecting the base operating system.

However, this tool doesn't require using an OSTree based system. It works equally well on Fedora Workstation and Server, and that's a useful way to incrementally adopt containerization.

The toolbox environment is based on an OCI image. On Fedora this is the fedora-toolbox image. This image is used to create a toolbox container that seamlessly integrates with the rest of the operating system by providing access to the user's home directory, the Wayland and X11 sockets, networking (including Avahi), removable devices (like USB sticks), systemd journal, SSH agent, D-Bus, ulimits, /dev and the udev database, etc..

Installation & Use

See our guides on installing & getting started with Toolbox and Linux distro support.