Skip to content

Commit

Permalink
Merge branch 'main' into uutils
Browse files Browse the repository at this point in the history
  • Loading branch information
castrojo authored Feb 12, 2024
2 parents 9c7006b + 7f24280 commit 13a5c51
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/build-wolfi-toolbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ jobs:
labels: |
io.artifacthub.package.readme-url=https://raw.githubusercontent.com/ublue-os/boxkit/main/README.md
# Maximize build space for DX
- name: Maximize build space
uses: ublue-os/remove-unwanted-software@v6
if: matrix.image_name == 'wolfi-dx-toolbox'

# Build image using Buildah action
- name: Build Image
id: build_image
Expand Down
30 changes: 29 additions & 1 deletion toolboxes/wolfi-toolbox/Containerfile.wolfi
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,33 @@ RUN grep -v '^#' /tmp/packages.wolfi | xargs apk add && \
grep -v '^#' /tmp/packages.wolfi-dx | xargs apk add \
; fi

# DX: Include utilities available in the melange SDK
RUN if [[ "${IMAGE_NAME}" =~ "dx" ]]; then \
cd /tmp && \
export PATH="/tmp/go/bin:${PATH}" && \
# go setup
export GOPATH="/tmp/go" && \
mkdir -p "${GOPATH}" && \
# goimports
go install golang.org/x/tools/cmd/goimports@latest && \
mkdir -p "/usr/bin" && \
mv "${GOPATH}/bin/goimports" "/usr/bin" && \
# melange
git clone https://github.com/chainguard-dev/melange.git && \
(cd melange && make melange install) && \
# apko
git clone https://github.com/chainguard-dev/apko.git && \
(cd apko && make apko install) && \
# wolfictl
git clone https://github.com/wolfi-dev/wolfictl.git && \
(cd wolfictl && make wolfictl install) && \
# yam
git clone https://github.com/chainguard-dev/yam.git && \
(cd yam && go build -v -o "/usr/bin/yam") && \
cd / && \
rm -rf /tmp/* \
; fi

# Get Distrobox-host-exec and host-spawn
RUN git clone https://github.com/89luca89/distrobox.git --single-branch /tmp/distrobox && \
cp /tmp/distrobox/distrobox-host-exec /usr/bin/distrobox-host-exec && \
Expand All @@ -47,4 +74,5 @@ RUN [ -e /sbin/su-exec ] && \
chmod u+s /sbin/su-exec && \
[ ! -e /usr/bin/sudo ] && \
printf "%s\n%s" '#!/bin/sh' '/sbin/su-exec root "$@"' > /usr/bin/sudo && \
chmod +x /usr/bin/sudo
chmod +x /usr/bin/sudo && \
rm -rf /tmp/*

0 comments on commit 13a5c51

Please sign in to comment.