Skip to content

Commit

Permalink
feat: Add docker and incus assemble scripts
Browse files Browse the repository at this point in the history
chore: Replace default distrobox lists
  • Loading branch information
KyleGospo committed Jan 1, 2025
1 parent d2bf7a2 commit f64197b
Show file tree
Hide file tree
Showing 5 changed files with 132 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,8 @@ RUN rm -f /etc/profile.d/toolbox.sh && \
curl -Lo /usr/bin/waydroid-choose-gpu https://raw.githubusercontent.com/KyleGospo/waydroid-scripts/main/waydroid-choose-gpu.sh && \
chmod +x /usr/bin/waydroid-choose-gpu && \
curl -Lo /usr/lib/sysctl.d/99-bore-scheduler.conf https://github.com/CachyOS/CachyOS-Settings/raw/master/usr/lib/sysctl.d/99-bore-scheduler.conf && \
curl -Lo /etc/distrobox/docker.ini https://github.com/ublue-os/toolboxes/raw/refs/heads/main/apps/docker/distrobox.ini && \
curl -Lo /etc/distrobox/incus.ini https://github.com/ublue-os/toolboxes/raw/refs/heads/main/apps/docker/incus.ini && \
/usr/libexec/containerbuild/image-info && \
/usr/libexec/containerbuild/build-initramfs && \
/usr/libexec/containerbuild/cleanup.sh && \
Expand Down
14 changes: 14 additions & 0 deletions system_files/desktop/shared/etc/distrobox/apps.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Add more distros and then use:
# distrobox assemble create --replace --file /etc/distrobox/apps.ini --name containername
# This will replace your distroboxes in place
# Tip: Use additional_packages as declarative config!
# See https://distrobox.privatedns.org/usage/distrobox-assemble/
[mlbox]
image=nvcr.io/nvidia/pytorch:23.08-py3
additional_packages="nano git htop"
init_hooks="pip3 install huggingface_hub tokenizers transformers accelerate datasets wandb peft bitsandbytes fastcore fastprogress watermark torchmetrics deepspeed"
pre-init-hooks="/init_script.sh"
nvidia=true
pull=true
root=false
replace=false
48 changes: 48 additions & 0 deletions system_files/desktop/shared/etc/distrobox/distrobox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Add more distros and then use:
# distrobox assemble create --replace --file /etc/distrobox/distrobox.ini --name containername
# This will replace your distroboxes in place
# Tip: Use additional_packages as declarative config!
# See https://distrobox.privatedns.org/usage/distrobox-assemble/
[arch]
image=ghcr.io/ublue-os/arch-distrobox:latest
pull=true

[arch-amdgpupro]
image=ghcr.io/ublue-os/arch-distrobox-amdgpupro:latest
pull=true

[bluefin-cli]
image=ghcr.io/ublue-os/bluefin-cli
pull=true

[debian]
image=quay.io/toolbx-images/debian-toolbox:unstable
pull=true

[fedora]
image=ghcr.io/ublue-os/fedora-toolbox:latest
pull=true

[opensuse]
image=quay.io/toolbx-images/opensuse-toolbox:tumbleweed
pull=true

[ubuntu]
image=ghcr.io/ublue-os/ubuntu-toolbox:latest
pull=true

[alma]
image=quay.io/toolbx-images/almalinux-toolbox:latest
pull=true

[centos]
image=quay.io/toolbx-images/centos-toolbox:latest
pull=true

[wolfi]
image=ghcr.io/ublue-os/wolfi-toolbox
pull=true

[wolfi-dx]
image=ghcr.io/ublue-os/wolfi-dx-toolbox
pull=true
14 changes: 14 additions & 0 deletions system_files/nvidia/shared/etc/distrobox/apps.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Add more distros and then use:
# distrobox assemble create --replace --file /etc/distrobox/apps.ini --name containername
# This will replace your distroboxes in place
# Tip: Use additional_packages as declarative config!
# See https://distrobox.privatedns.org/usage/distrobox-assemble/
[mlbox]
image=nvcr.io/nvidia/pytorch:23.08-py3
additional_packages="nano git htop"
init_hooks="pip3 install huggingface_hub tokenizers transformers accelerate datasets wandb peft bitsandbytes fastcore fastprogress watermark torchmetrics deepspeed"
pre-init-hooks="/init_script.sh"
nvidia=true
pull=true
root=false
replace=false
54 changes: 54 additions & 0 deletions system_files/nvidia/shared/etc/distrobox/distrobox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Add more distros and then use:
# distrobox assemble create --replace --file /etc/distrobox/distrobox.ini --name containername
# This will replace your distroboxes in place
# Tip: Use additional_packages as declarative config!
# See https://distrobox.privatedns.org/usage/distrobox-assemble/
[arch]
image=ghcr.io/ublue-os/arch-distrobox:latest
nvidia=true
pull=true

[bluefin-cli]
image=ghcr.io/ublue-os/bluefin-cli
nvidia=true
pull=true

[debian]
image=quay.io/toolbx-images/debian-toolbox:unstable
nvidia=true
pull=true

[fedora]
image=ghcr.io/ublue-os/fedora-toolbox:latest
nvidia=true
pull=true

[opensuse]
image=quay.io/toolbx-images/opensuse-toolbox:tumbleweed
nvidia=true
pull=true

[ubuntu]
image=ghcr.io/ublue-os/ubuntu-toolbox:latest
nvidia=true
pull=true

[alma]
image=quay.io/toolbx-images/almalinux-toolbox:latest
nvidia=true
pull=true

[centos]
image=quay.io/toolbx-images/centos-toolbox:latest
nvidia=true
pull=true

[wolfi]
image=ghcr.io/ublue-os/wolfi-toolbox
nvidia=true
pull=true

[wolfi-dx]
image=ghcr.io/ublue-os/wolfi-dx-toolbox
nvidia=true
pull=true

0 comments on commit f64197b

Please sign in to comment.