Skip to content

a set of customized base toolbox containers using a directory structure that makes them simple to modify

License

Notifications You must be signed in to change notification settings

duhdugg/custom-toolboxes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Toolboxes

This repo provides a set of customized base toolbox containers using a directory structure that makes them simple to modify.

Build

# bin/build-toolbox [variant] [optional: containername]
# examples
bin/build-toolbox arch
bin/build-toolbox arch-testing
bin/build-toolbox debian
bin/build-toolbox fedora
bin/build-toolbox ubuntu

# this will build an arch toolbox named dev-toolbox (instead of arch-toolbox)
bin/build-toolbox arch dev-toolbox

Enter

# toolbox enter [containername]
toolbox enter arch-toolbox
toolbox enter arch-testing-toolbox
toolbox enter debian-toolbox
toolbox enter fedora-toolbox
toolbox enter ubuntu-toolbox
toolbox enter dev-toolbox

Variant Directory Structure

  • 📂 variant-name
    • 📄 Containerfile: for building the OCI container
    • 📂 fs: everything under here is added to the root filesystem within the container
      • 📂 build
        • 📄 install.sh: installation script
        • 📄 toolbox-dependencies: minimum additional packages required
        • 📄 extra-packages: everything else you want installed should go in here
      • 📂 etc
        • 📂 sudoers.d
          • 📄 toolbox: should allow users in wheel group to use sudo with no password

Troubleshooting

X11 apps not working

When attempting to run an X11 application from within the toolbox, you may get the following error:

Authorization required, but no authorization protocol specified
Error: Can't open display: :0

To fix this, you can use xorg-xauth (on your host machine) to give your container permission to communicate with X11. Run the following, or add it to your X startup:

xauth add "toolbox/unix$DISPLAY" . "$(xauth list | grep "^$(hostname)/unix$DISPLAY\s*MIT-MAGIC-COOKIE-1\s*" | awk '{print $3}')"

toolbox enter not working

You may be able to debug with:

podman stop -a # stops all containers
# podman start --attach [containername]
podman start --attach arch-toolbox

About

a set of customized base toolbox containers using a directory structure that makes them simple to modify

Topics

Resources

License

Stars

Watchers

Forks