diff --git a/universal/ubi10/Dockerfile b/universal/ubi10/Dockerfile index f2a8751b..112e0c4c 100644 --- a/universal/ubi10/Dockerfile +++ b/universal/ubi10/Dockerfile @@ -588,6 +588,32 @@ cd - rm -rf "${TEMP_DIR}" EOF +## herdr +# See release page for details https://github.com/ogulcancelik/herdr/releases/tag/v0.7.3 +RUN <<'EOF' +set -euf -o pipefail + +case "$TARGETARCH" in + amd64) + HERDR_ARCH="x86_64" + ;; + arm64) + HERDR_ARCH="aarch64" + ;; + *) + echo "Skipping herdr install for unsupported architecture: $TARGETARCH" + exit 0 + ;; +esac + +HERDR_VERSION="0.7.3" +HERDR_BIN="herdr-linux-${HERDR_ARCH}" +HERDR_URL="https://github.com/ogulcancelik/herdr/releases/download/v${HERDR_VERSION}/${HERDR_BIN}" + +curl -fsSL "${HERDR_URL}" -o /usr/local/bin/herdr +chmod +x /usr/local/bin/herdr +EOF + RUN < /usr/share/bash-completion/completions/oc tkn completion bash > /usr/share/bash-completion/completions/tkn diff --git a/universal/ubi9/Dockerfile b/universal/ubi9/Dockerfile index d818db07..543ed9c0 100644 --- a/universal/ubi9/Dockerfile +++ b/universal/ubi9/Dockerfile @@ -555,6 +555,32 @@ cd - rm -rf "${TEMP_DIR}" EOF +## herdr +# See release page for details https://github.com/ogulcancelik/herdr/releases/tag/v0.7.3 +RUN <<'EOF' +set -euf -o pipefail + +case "$TARGETARCH" in + amd64) + HERDR_ARCH="x86_64" + ;; + arm64) + HERDR_ARCH="aarch64" + ;; + *) + echo "Skipping herdr install for unsupported architecture: $TARGETARCH" + exit 0 + ;; +esac + +HERDR_VERSION="0.7.3" +HERDR_BIN="herdr-linux-${HERDR_ARCH}" +HERDR_URL="https://github.com/ogulcancelik/herdr/releases/download/v${HERDR_VERSION}/${HERDR_BIN}" + +curl -fsSL "${HERDR_URL}" -o /usr/local/bin/herdr +chmod +x /usr/local/bin/herdr +EOF + RUN < /usr/share/bash-completion/completions/oc tkn completion bash > /usr/share/bash-completion/completions/tkn