minor arch-toolbox updates for distrobox
All checks were successful
Reese's Arch Toolbox / build-and-push-arch-toolbox (push) Successful in 39m6s

This commit is contained in:
2025-02-14 10:37:29 -05:00
parent 97560b833c
commit d51b972e96
6 changed files with 90 additions and 26 deletions

View File

@@ -1,10 +1,12 @@
# Toolbox
- [Toolbox](#toolbox)
- [Reese's Arch Toolbox](#reeses-arch-toolbox)
- [Reese's Arch Toolbox/Distrobox](#reeses-arch-toolboxdistrobox)
- [Using Reese's Arch Toolbox](#using-reeses-arch-toolbox)
- [CPU Image](#cpu-image)
- [AMD GPU Image](#amd-gpu-image)
- [CPU Image with Toolbox](#cpu-image-with-toolbox)
- [CPU Image with Distrobox](#cpu-image-with-distrobox)
- [AMD GPU Image with Toolbox](#amd-gpu-image-with-toolbox)
- [AMD GPU Image with Distrobox](#amd-gpu-image-with-distrobox)
- [Updating Reese's Arch Toolbox](#updating-reeses-arch-toolbox)
- [Building Reese's Arch Toolbox](#building-reeses-arch-toolbox)
@@ -21,7 +23,7 @@ I'd recommend adding this alias to your `.bashrc` to make things easier
alias tbox='SHELL=zsh toolbox enter arch-toolbox-latest'
```
## Reese's Arch Toolbox
## Reese's Arch Toolbox/Distrobox
I have a custom arch image based on the default arch-toolbox image. It offers:
@@ -59,9 +61,7 @@ Run `rtbox` to delete the toolbox.
Run `utbox` to update the toolbox image. You'll need to run `rtbox && ntbox` after to spin up the toolbox with the new image.
### CPU Image
Add the following to your `.bashrc`
### CPU Image with Toolbox
```bash
# Reese's Toolbox Commands
@@ -79,7 +79,27 @@ alias rtbox="podman container stop $TBOX_NAME && podman container rm $TBOX_NAME"
alias utbox="podman pull $TBOX_REPO/$TBOX_IMAGE:$TBOX_TAG"
```
### AMD GPU Image
### CPU Image with Distrobox
Add the following to your `.bashrc`
```bash
# Reese's Toolbox Commands
export TBOX_REPO='gitea.reeseapps.com/services'
export TBOX_IMAGE='arch-toolbox'
export TBOX_TAG='latest'
export TBOX_NAME="$TBOX_IMAGE-$TBOX_TAG"
# Creates a new toolbox
alias ntbox="distrobox create --name $TBOX_NAME --image $TBOX_REPO/$TBOX_IMAGE:$TBOX_TAG"
# Enters the toolbox when you want to use it, you'll be running this all the time
alias tbox="distrobox enter $TBOX_NAME"
# Removes the toolbox
alias rtbox="distrobox stop $TBOX_NAME --yes"
# Updates the toolbox
alias utbox="rtbox && ntbox"
```
### AMD GPU Image with Toolbox
Add the following to your `.bashrc`
@@ -99,6 +119,26 @@ alias rtbox="podman container stop $TBOX_NAME && podman container rm $TBOX_NAME"
alias utbox="podman pull $TBOX_REPO/$TBOX_IMAGE:$TBOX_TAG"
```
### AMD GPU Image with Distrobox
Add the following to your `.bashrc`
```bash
# Reese's Toolbox Commands
export TBOX_REPO='gitea.reeseapps.com/services'
export TBOX_IMAGE='arch-toolbox-amdgpu'
export TBOX_TAG='latest'
export TBOX_NAME="$TBOX_IMAGE-$TBOX_TAG"
# Creates a new toolbox
alias ntbox="distrobox create --name $TBOX_NAME --image $TBOX_REPO/$TBOX_IMAGE:$TBOX_TAG"
# Enters the toolbox when you want to use it, you'll be running this all the time
alias tbox="distrobox enter $TBOX_NAME"
# Removes the toolbox
alias rtbox="distrobox stop $TBOX_NAME --yes"
# Updates the toolbox
alias utbox="rtbox && ntbox"
```
## Updating Reese's Arch Toolbox
```bash