Skip to content

Commit

Permalink
add cosign pubkey, rebase image on wolfi
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolopjr committed Jan 25, 2025
1 parent 20b5aa5 commit 60214ed
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 77 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build-boxkit
name: build-devboxes
on:
workflow_dispatch: # allow manually triggering builds
pull_request:
Expand Down Expand Up @@ -28,8 +28,7 @@ jobs:
fail-fast: false
matrix:
containerfile:
- boxkit
#- fedora-example # Included as an example to demonstrate multi-image builds, uncomment to build the fedora-example container too
- devbox
steps:
# Clone code to runner
- name: Checkout
Expand Down
12 changes: 6 additions & 6 deletions ContainerFiles/boxkit → ContainerFiles/devbox
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM quay.io/toolbx-images/alpine-toolbox:edge
FROM cgr.dev/chainguard/wolfi-base:latest

LABEL com.github.containers.toolbox="true" \
usage="This image is meant to be used with the toolbox or distrobox command" \
summary="A cloud-native terminal experience" \
maintainer="jorge.castro@gmail.com"
maintainer="mario@techmunchies.net"

# Copy the setup scripts and package list
COPY ../scripts/boxkit.sh /
COPY ../scripts/devbox.sh /
COPY ../scripts/distrobox-shims.sh /
COPY ../packages/boxkit.packages /
COPY ../packages/devbox.packages /

# Run the setup scripts
RUN chmod +x boxkit.sh distrobox-shims.sh && /boxkit.sh
RUN rm /boxkit.sh /distrobox-shims.sh /boxkit.packages
RUN /devbox.sh
RUN rm /devbox.sh /distrobox-shims.sh /devbox.packages
15 changes: 0 additions & 15 deletions ContainerFiles/fedora-example

This file was deleted.

4 changes: 2 additions & 2 deletions cosign.pub
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEHLRpBfPRYiMl9wb7s6fx47PzzNWu
3zyJgXhWEvxoOgwv9CpwjbvUwR9qHxNMWkJhuGE6cjDA2hpy1I6NbA+24Q==
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEwAggsjy/jfdyNQTC85QdUo8hGASB
KggXxA0FbRLr3YVSwClnSIaEFe9Ac32upOIRIPwoPt1DXcGkAiSfyF0HBw==
-----END PUBLIC KEY-----
30 changes: 0 additions & 30 deletions packages/boxkit.packages

This file was deleted.

16 changes: 16 additions & 0 deletions packages/devbox.packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
age
atuin
bat
chezmoi
cosign
curl
direnv
fzf
git
just
make
ncurses
neovim
ripgrep
wl-clipboard
zstd
1 change: 0 additions & 1 deletion packages/fedora-example.packages

This file was deleted.

8 changes: 0 additions & 8 deletions scripts/boxkit.sh

This file was deleted.

19 changes: 19 additions & 0 deletions scripts/devbox.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

# Update the container and install packages
apk update && apk upgrade
grep -v '^#' ./devbox.packages | xargs apk add

# Get Distrobox-host-exec and host-spawn
# TODO: fix shellcheck warnings
git clone https://github.com/89luca89/distrobox.git --single-branch /tmp/distrobox &&
cp /tmp/distrobox/distrobox-host-exec /usr/bin/distrobox-host-exec &&
cp /tmp/distrobox/distrobox-export /usr/bin/distrobox-export &&
cp /tmp/distrobox/distrobox-init /usr/bin/entrypoint &&
curl 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 -rf /tmp/distrobox &&
ln -fs /bin/sh /usr/bin/sh

# Symlink distrobox shims
./distrobox-shims.sh
5 changes: 1 addition & 4 deletions scripts/distrobox-shims.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/sh

ln -fs /bin/sh /usr/bin/sh
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker
mkdir -p /usr/local/bin
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/flatpak
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/podman
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/rpm-ostree
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/transactional-update
8 changes: 0 additions & 8 deletions scripts/fedora-example.sh

This file was deleted.

0 comments on commit 60214ed

Please sign in to comment.