File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -554,6 +554,40 @@ RUN dnf -y install bash-completion \
554554 && dnf clean all \
555555 && rm -rf /var/cache/yum
556556
557+ # # tmux - using pre-built binaries (not available in UBI repos)
558+ RUN <<'EOF'
559+ set -euf -o pipefail
560+
561+ TEMP_DIR="$(mktemp -d)"
562+ cd "${TEMP_DIR}"
563+
564+ TMUX_VERSION="3.6a"
565+
566+ case "$TARGETARCH" in
567+ amd64)
568+ TMUX_ARCH="x86_64"
569+ ;;
570+ arm64)
571+ TMUX_ARCH="arm64"
572+ ;;
573+ *)
574+ echo "Skipping tmux install for unsupported architecture: $TARGETARCH"
575+ exit 0
576+ ;;
577+ esac
578+
579+ TMUX_TGZ="tmux-${TMUX_VERSION}-linux-${TMUX_ARCH}.tar.gz"
580+ TMUX_TGZ_URL="https://github.com/tmux/tmux-builds/releases/download/v${TMUX_VERSION}/${TMUX_TGZ}"
581+
582+ curl -sSLO "${TMUX_TGZ_URL}"
583+ tar -xz --no-same-owner -f "${TMUX_TGZ}"
584+ mv tmux /usr/local/bin/tmux
585+ chmod +x /usr/local/bin/tmux
586+
587+ cd -
588+ rm -rf "${TEMP_DIR}"
589+ EOF
590+
557591RUN <<EOF
558592oc completion bash > /usr/share/bash-completion/completions/oc
559593tkn completion bash > /usr/share/bash-completion/completions/tkn
Original file line number Diff line number Diff line change @@ -518,6 +518,40 @@ RUN dnf -y install bash-completion \
518518 && dnf clean all \
519519 && rm -rf /var/cache/yum
520520
521+ # # tmux - using pre-built binaries (not available in UBI repos)
522+ RUN <<'EOF'
523+ set -euf -o pipefail
524+
525+ TEMP_DIR="$(mktemp -d)"
526+ cd "${TEMP_DIR}"
527+
528+ TMUX_VERSION="3.6a"
529+
530+ case "$TARGETARCH" in
531+ amd64)
532+ TMUX_ARCH="x86_64"
533+ ;;
534+ arm64)
535+ TMUX_ARCH="arm64"
536+ ;;
537+ *)
538+ echo "Skipping tmux install for unsupported architecture: $TARGETARCH"
539+ exit 0
540+ ;;
541+ esac
542+
543+ TMUX_TGZ="tmux-${TMUX_VERSION}-linux-${TMUX_ARCH}.tar.gz"
544+ TMUX_TGZ_URL="https://github.com/tmux/tmux-builds/releases/download/v${TMUX_VERSION}/${TMUX_TGZ}"
545+
546+ curl -sSLO "${TMUX_TGZ_URL}"
547+ tar -xz --no-same-owner -f "${TMUX_TGZ}"
548+ mv tmux /usr/local/bin/tmux
549+ chmod +x /usr/local/bin/tmux
550+
551+ cd -
552+ rm -rf "${TEMP_DIR}"
553+ EOF
554+
521555RUN <<EOF
522556oc completion bash > /usr/share/bash-completion/completions/oc
523557tkn completion bash > /usr/share/bash-completion/completions/tkn
You can’t perform that action at this time.
0 commit comments