Tool for interactive command line environments on Linux
Find a file
Debarshi Ray 978bb524e4 test/system: Silence warning with Bats >= 1.7.0
Bats 1.7.0 emits a warning if a command passed to 'run' returns with an
exit code of 127 [1]:
  BW01: `run`'s command `/opt/bin/toolbox run non-existent-command`
    exited with code 127, indicating 'Command not found'. Use run's
    return code checks, e.g. `run -127`, to fix this message.
        (from function `run' in file
          /usr/lib/bats-core/test_functions.bash, line 299,
         in test file test/system/104-run.bats, line 148)

This requires Bats >= 1.5.0, which is present in Fedora >=35, and
supports specifying the exit code as an argument to Bats' 'run'
command [2].

However, bats_require_minimum_version can't be used, because it's
only available from Bats 1.7.0, which is new enough that it's absent
from Fedora 35.

[1] Bats commit c6dc2f88361a4f5b
    https://github.com/bats-core/bats-core/issues/547
    https://bats-core.readthedocs.io/en/stable/warnings/BW01.html

[2] https://github.com/bats-core/bats-core/pull/367
    https://github.com/bats-core/bats-core/pull/507
    https://bats-core.readthedocs.io/en/stable/writing-tests.html

[3] Bats commit 71d6b71cebc3d32b
    https://github.com/bats-core/bats-core/issues/556
    https://bats-core.readthedocs.io/en/stable/warnings/BW02.html

https://github.com/containers/toolbox/pull/1081
2022-08-01 10:47:13 +02:00
.github Revert "ci: Build & Publish Fedora Toolbx images with GitHub Packages" 2022-03-20 21:11:32 +02:00
completion cmd/completion: Add prefix to command to hide it better 2022-05-13 16:33:32 +03: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 cmd/create: Add option --authfile 2022-03-20 18:08:42 +02:00
profile.d profile.d: Fix the PS1 on Z shell 2021-11-25 19:04:20 +01:00
src cmd/completion: Add prefix to command to hide it better 2022-05-13 16:33:32 +03:00
test/system test/system: Silence warning with Bats >= 1.7.0 2022-08-01 10:47:13 +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 Canonicalize Ondra's name 2022-01-26 01:44:31 +01:00
.zuul.yaml .zuul: Drop testing on Fedora 34 2022-08-01 10:47:03 +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 Generate & install completion scripts in build system 2022-02-21 15:15:30 +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 Add deprecation notices to the POSIX shell Toolbox 2021-02-19 15:40:52 +01: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.