Compare commits
3 Commits
f0af09d779
...
694be4b410
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
694be4b410 | ||
|
|
fcd2779c85 | ||
|
|
29397cc965 |
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user