Skip to content

Commit

Permalink
feat: Add additional packages to Wolfi container for Distrobox (ublue…
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo authored Sep 23, 2023
1 parent 39c6883 commit 1a24144
Showing 1 changed file with 44 additions and 2 deletions.
46 changes: 44 additions & 2 deletions toolboxes/Containerfile.wolfi
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,51 @@ LABEL com.github.containers.toolbox="true" \

COPY ./toolboxes/packages.wolfi /toolbox-packages

# Update image & add dependencies
RUN apk update && \
apk upgrade && \
grep -v '^#' /toolbox-packages | xargs apk add
apk upgrade

# Add Distrobox specific packages
# Remove procps due to conflict with coreutils
RUN apk del procps && \
apk add sudo-rs \
coreutils \
bash \
bzip2 \
curl \
diffutils \
findmnt \
findutils \
git \
gpg \
iproute2 \
iputils \
keyutils \
libcap \
ncurses \
ncurses-terminfo \
net-tools \
openssh-client \
posix-libc-utils \
rsync \
tcpdump \
tree \
umount \
util-linux \
util-linux-misc \
wget \
xz \
zip

# Set up dependencies
RUN git clone https://github.com/89luca89/distrobox.git --single-branch /tmp/distrobox && \
cp /tmp/distrobox/distrobox-host-exec /usr/bin/distrobox-host-exec && \
wget https://github.com/1player/host-spawn/releases/download/$(cat /tmp/distrobox/distrobox-host-exec | grep host_spawn_version= | cut -d "\"" -f 2)/host-spawn-$(uname -m) -O /usr/bin/host-spawn && \
chmod +x /usr/bin/host-spawn && \
rm -drf /tmp/distrobox && \

# Add optional packages
RUN grep -v '^#' /toolbox-packages | xargs apk add

RUN rm /toolbox-packages

Expand Down

0 comments on commit 1a24144

Please sign in to comment.