Compare commits

...

3 Commits

Author SHA1 Message Date
Ethan Paul
694be4b410 Force overwrite symlink for remote podman binary 2026-04-13 15:43:20 -04:00
Ethan Paul
fcd2779c85 Add install of yq CLI utility 2026-04-13 14:07:52 -04:00
Ethan Paul
29397cc965 Add dangerzone to toolbox image 2026-04-13 13:09:39 -04:00
2 changed files with 11 additions and 3 deletions

View File

@@ -12,9 +12,11 @@ ADD static-repos/kubernetes.repo /etc/yum.repos.d/kubernetes.repo
ADD https://rpm.releases.hashicorp.com/fedora/hashicorp.repo /etc/yum.repos.d/hashicorp.repo
ADD https://cli.github.com/packages/rpm/gh-cli.repo /etc/yum.repos.d/github-cli.repo
ADD https://download.docker.com/linux/fedora/docker-ce.repo /etc/yum.repos.d/docker-ce.repo
ADD https://packages.freedom.press/yum-tools-prod/dangerzone/dangerzone.repo /etc/yum.repos.d/dangerzone.repo
RUN dnf install --assumeyes \
bind-utils \
dangerzone \
direnv \
docker-ce-cli \
docker-buildx-plugin \
@@ -67,4 +69,4 @@ RUN bash /tmp/github-install.bash && \
ADD profile.d/*.sh /etc/profile.d/
RUN ln -s /usr/bin/podman-remote /usr/bin/podman
RUN ln -fs /usr/bin/podman-remote /usr/bin/podman

View File

@@ -14,6 +14,9 @@ function do_install() {
local url
url="${2}"
local origin
origin="${3:-$name}"
local working
working=$(mktemp -d)
@@ -37,9 +40,9 @@ function do_install() {
fi
if [[ "${url}" == *.rpm ]]; then
dnf install --assumeyes "${working}/${name}.rpm"
dnf install --assumeyes "${working}/${origin}.rpm"
else
mv "${working}/${name}" "/usr/local/bin/${name}"
mv "${working}/${origin}" "/usr/local/bin/${name}"
chmod +x "/usr/local/bin/${name}"
fi
@@ -73,3 +76,6 @@ do_install cosign "https://github.com/sigstore/cosign/releases/download/${cosign
codium=$(get_latest VSCodium/vscodium)
do_install codium "https://github.com/VSCodium/vscodium/releases/download/${codium}/codium-${codium}-el8.x86_64.rpm"
yq=$(get_latest mikefarah/yq)
do_install yq "https://github.com/mikefarah/yq/releases/download/${yq}/yq_linux_amd64.tar.gz" yq_linux_amd64