Skip to content

Commit

Permalink
fix: remove unused flags from distrobox exec line.
Browse files Browse the repository at this point in the history
This will make is so we don't cause the distrobox containers to need internet to start.
This also means we can remove the patch we did to bluefin-cli distrobox-init
  • Loading branch information
m2Giles committed Apr 8, 2024
1 parent ca4ebe4 commit eaca92c
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion quadlets/bluefin-cli/bluefin-cli.container
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ContainerName=bluefin
Environment=SHELL=%s
Environment=HOME=%h
Environment=container=podman
Exec=--verbose --name %u --user %U --group %G --home %h --init "0" --nvidia "1" --pre-init-hooks " " --additional-packages " " -- " "
Exec=--verbose --name %u --user %U --group %G --home %h --init "0" --nvidia "1" -- " "
Image=ghcr.io/ublue-os/bluefin-cli:latest
HostName=bluefin.%l
Label=manager=distrobox
Expand Down
2 changes: 1 addition & 1 deletion quadlets/bluefin-cli/bluefin-dx-cli.container
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ContainerName=bluefin
Environment=SHELL=%s
Environment=HOME=%h
Environment=container=podman
Exec=--verbose --name %u --user %U --group %G --home %h --init "0" --nvidia "1" --pre-init-hooks " " --additional-packages " " -- " "
Exec=--verbose --name %u --user %U --group %G --home %h --init "0" --nvidia "1" -- " "
Image=ghcr.io/ublue-os/bluefin-dx-cli:latest
HostName=bluefin-dx.%l
Label=manager=distrobox
Expand Down
2 changes: 1 addition & 1 deletion quadlets/fedora-toolbox/fedora-distrobox-quadlet.container
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ContainerName=fedora-distrobox-quadlet
Environment=SHELL=%s
Environment=HOME=%h
Environment=container=podman
Exec=--verbose --name %u --user %U --group %G --home %h --init "0" --nvidia "1" --pre-init-hooks " " --additional-packages " " -- " "
Exec=--verbose --name %u --user %U --group %G --home %h --init "0" --nvidia "1" -- " "
Image=ghcr.io/ublue-os/fedora-toolbox:latest
HostName=fedora-toolbox.%l
Label=manager=distrobox
Expand Down
2 changes: 1 addition & 1 deletion quadlets/ubuntu-toolbox/ubuntu-distrobox-quadlet.container
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ContainerName=ubuntu-distrobox-quadlet
Environment=SHELL=%s
Environment=HOME=%h
Environment=container=podman
Exec=--verbose --name %u --user %U --group %G --home %h --init "0" --nvidia "1" --pre-init-hooks " " --additional-packages " " -- " "
Exec=--verbose --name %u --user %U --group %G --home %h --init "0" --nvidia "1" -- " "
Image=ghcr.io/ublue-os/ubuntu-toolbox:latest
HostName=ubuntu-toolbox.%l
Label=manager=distrobox
Expand Down
2 changes: 1 addition & 1 deletion quadlets/wolfi-toolbox/wolfi-distrobox-quadlet.container
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ContainerName=wolfi-quadlet
Environment=SHELL=%s
Environment=HOME=%h
Environment=container=podman
Exec=--verbose --name %u --user %U --group %G --home %h --init "0" --nvidia "1" --pre-init-hooks " " --additional-packages " " -- " "
Exec=--verbose --name %u --user %U --group %G --home %h --init "0" --nvidia "1" -- " "
Image=ghcr.io/ublue-os/wolfi-toolbox:latest
HostName=wolfi-quadlet.%l
Label=manager=distrobox
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ContainerName=wolfi-quadlet
Environment=SHELL=%s
Environment=HOME=%h
Environment=container=podman
Exec=--verbose --name %u --user %U --group %G --home %h --init "0" --nvidia "1" --pre-init-hooks " " --additional-packages " " -- " "
Exec=--verbose --name %u --user %U --group %G --home %h --init "0" --nvidia "1" -- " "
Image=ghcr.io/ublue-os/wolfi-dx-toolbox:latest
HostName=wolfi-quadlet.%l
Label=manager=distrobox
Expand Down
4 changes: 0 additions & 4 deletions toolboxes/bluefin-cli/Containerfile.bluefin-cli
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ RUN apk update && \
mv /home/linuxbrew /home/homebrew && \
rm /toolbox-packages

# Patch /usr/bin/entrypoint
RUN sed -i '/missing_packages=0/,/# Set SHELL to the install path inside the container/ s/^/#/' /usr/bin/entrypoint && \
sed -i '/# Set SHELL to the install path inside the container/a touch /.containersetupdone' /usr/bin/entrypoint

# Use and configure bash, retrieve bash-prexec
RUN curl https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh -o /tmp/bash-prexec && \
mkdir -p /usr/share/ && \
Expand Down
2 changes: 1 addition & 1 deletion toolboxes/wolfi-toolbox/Containerfile.wolfi
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ARG IMAGE_NAME="${IMAGE_NAME:-wolfi-toolbox}"

COPY ./toolboxes/wolfi-toolbox/packages.wolfi \
./toolboxes/wolfi-toolbox/packages.wolfi-dx \
/tmp
/tmp/

# Update image
RUN apk update && \
Expand Down

0 comments on commit eaca92c

Please sign in to comment.