Skip to content

Commit 131c397

Browse files
authored
feat: herdr (#261)
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
1 parent bacc1e9 commit 131c397

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

universal/ubi10/Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,32 @@ cd -
588588
rm -rf "${TEMP_DIR}"
589589
EOF
590590

591+
## herdr
592+
# See release page for details https://github.com/ogulcancelik/herdr/releases/tag/v0.7.3
593+
RUN <<'EOF'
594+
set -euf -o pipefail
595+
596+
case "$TARGETARCH" in
597+
amd64)
598+
HERDR_ARCH="x86_64"
599+
;;
600+
arm64)
601+
HERDR_ARCH="aarch64"
602+
;;
603+
*)
604+
echo "Skipping herdr install for unsupported architecture: $TARGETARCH"
605+
exit 0
606+
;;
607+
esac
608+
609+
HERDR_VERSION="0.7.3"
610+
HERDR_BIN="herdr-linux-${HERDR_ARCH}"
611+
HERDR_URL="https://github.com/ogulcancelik/herdr/releases/download/v${HERDR_VERSION}/${HERDR_BIN}"
612+
613+
curl -fsSL "${HERDR_URL}" -o /usr/local/bin/herdr
614+
chmod +x /usr/local/bin/herdr
615+
EOF
616+
591617
RUN <<EOF
592618
oc completion bash > /usr/share/bash-completion/completions/oc
593619
tkn completion bash > /usr/share/bash-completion/completions/tkn

universal/ubi9/Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,32 @@ cd -
555555
rm -rf "${TEMP_DIR}"
556556
EOF
557557

558+
## herdr
559+
# See release page for details https://github.com/ogulcancelik/herdr/releases/tag/v0.7.3
560+
RUN <<'EOF'
561+
set -euf -o pipefail
562+
563+
case "$TARGETARCH" in
564+
amd64)
565+
HERDR_ARCH="x86_64"
566+
;;
567+
arm64)
568+
HERDR_ARCH="aarch64"
569+
;;
570+
*)
571+
echo "Skipping herdr install for unsupported architecture: $TARGETARCH"
572+
exit 0
573+
;;
574+
esac
575+
576+
HERDR_VERSION="0.7.3"
577+
HERDR_BIN="herdr-linux-${HERDR_ARCH}"
578+
HERDR_URL="https://github.com/ogulcancelik/herdr/releases/download/v${HERDR_VERSION}/${HERDR_BIN}"
579+
580+
curl -fsSL "${HERDR_URL}" -o /usr/local/bin/herdr
581+
chmod +x /usr/local/bin/herdr
582+
EOF
583+
558584
RUN <<EOF
559585
oc completion bash > /usr/share/bash-completion/completions/oc
560586
tkn completion bash > /usr/share/bash-completion/completions/tkn

0 commit comments

Comments
 (0)