chore: install git-lfs 3.7.1 version using an install script (#26465)

Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
Co-authored-by: Nitish Kumar <justnitish06@gmail.com>
This commit is contained in:
Papapetrou Patroklos
2026-02-18 18:58:38 +02:00
committed by GitHub
parent 6a902023b2
commit 7acd9305df
7 changed files with 22 additions and 6 deletions

View File

@@ -16,7 +16,6 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
unzip \ unzip \
fcgiwrap \ fcgiwrap \
git \ git \
git-lfs \
make \ make \
wget \ wget \
gcc \ gcc \
@@ -29,7 +28,8 @@ COPY hack/install.sh hack/tool-versions.sh ./
COPY hack/installers installers COPY hack/installers installers
RUN ./install.sh helm && \ RUN ./install.sh helm && \
INSTALL_PATH=/usr/local/bin ./install.sh kustomize INSTALL_PATH=/usr/local/bin ./install.sh kustomize && \
./install.sh git-lfs
#################################################################################################### ####################################################################################################
# Argo CD Base - used as the base for both the release and dev argocd images # Argo CD Base - used as the base for both the release and dev argocd images
@@ -51,7 +51,7 @@ RUN groupadd -g $ARGOCD_USER_ID argocd && \
apt-get update && \ apt-get update && \
apt-get dist-upgrade -y && \ apt-get dist-upgrade -y && \
apt-get install --no-install-recommends -y \ apt-get install --no-install-recommends -y \
git git-lfs tini ca-certificates gpg gpg-agent tzdata connect-proxy openssh-client && \ git tini ca-certificates gpg gpg-agent tzdata connect-proxy openssh-client && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
@@ -61,6 +61,7 @@ COPY hack/gpg-wrapper.sh \
/usr/local/bin/ /usr/local/bin/
COPY --from=builder /usr/local/bin/helm /usr/local/bin/helm COPY --from=builder /usr/local/bin/helm /usr/local/bin/helm
COPY --from=builder /usr/local/bin/kustomize /usr/local/bin/kustomize COPY --from=builder /usr/local/bin/kustomize /usr/local/bin/kustomize
COPY --from=builder /usr/local/bin/git-lfs /usr/local/bin/git-lfs
# keep uid_entrypoint.sh for backward compatibility # keep uid_entrypoint.sh for backward compatibility
RUN ln -s /usr/local/bin/entrypoint.sh /usr/local/bin/uid_entrypoint.sh RUN ln -s /usr/local/bin/entrypoint.sh /usr/local/bin/uid_entrypoint.sh

View File

@@ -11,7 +11,6 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
unzip \ unzip \
fcgiwrap \ fcgiwrap \
git \ git \
git-lfs \
make \ make \
wget \ wget \
gcc \ gcc \
@@ -28,7 +27,8 @@ COPY hack/install.sh hack/tool-versions.sh ./
COPY hack/installers installers COPY hack/installers installers
RUN ./install.sh helm && \ RUN ./install.sh helm && \
INSTALL_PATH=/usr/local/bin ./install.sh kustomize INSTALL_PATH=/usr/local/bin ./install.sh kustomize && \
./install.sh git-lfs
COPY hack/gpg-wrapper.sh \ COPY hack/gpg-wrapper.sh \
hack/git-verify-wrapper.sh \ hack/git-verify-wrapper.sh \

View File

@@ -0,0 +1 @@
1c0b6ee5200ca708c5cebebb18fdeb0e1c98f1af5c1a9cba205a4c0ab5a5ec08 git-lfs-linux-amd64-v3.7.1.tar.gz

View File

@@ -0,0 +1 @@
73a9c90eeb4312133a63c3eaee0c38c019ea7bfa0953d174809d25b18588dd8d git-lfs-linux-arm64-v3.7.1.tar.gz

View File

@@ -0,0 +1,12 @@
#!/bin/bash
set -eux -o pipefail
. "$(dirname "$0")"/../tool-versions.sh
export TARGET_FILE=git-lfs-${INSTALL_OS}-${ARCHITECTURE}-v${git_lfs_version}.tar.gz
[ -e "$DOWNLOADS/${TARGET_FILE}" ] || curl -sLf --retry 3 -o "$DOWNLOADS/${TARGET_FILE}" "https://github.com/git-lfs/git-lfs/releases/download/v${git_lfs_version}/${TARGET_FILE}"
"$(dirname "$0")"/compare-chksum.sh
mkdir -p /tmp/git-lfs && tar -C /tmp/git-lfs --strip-components=1 -xzf "$DOWNLOADS/${TARGET_FILE}"
sudo install -m 0755 "/tmp/git-lfs/git-lfs" "$BIN/git-lfs"
git-lfs version

View File

@@ -15,3 +15,4 @@ helm3_version=3.19.4
kustomize5_version=5.8.1 kustomize5_version=5.8.1
protoc_version=29.3 protoc_version=29.3
oras_version=1.2.0 oras_version=1.2.0
git_lfs_version=3.7.1

View File

@@ -28,7 +28,6 @@ RUN apt-get update && apt-get install --fix-missing --no-install-recommends -y
nginx \ nginx \
fcgiwrap \ fcgiwrap \
git \ git \
git-lfs \
gpg \ gpg \
gpg-agent \ gpg-agent \
jq \ jq \
@@ -71,6 +70,7 @@ RUN ./install.sh helm && \
./install.sh codegen-go-tools && \ ./install.sh codegen-go-tools && \
./install.sh lint-tools && \ ./install.sh lint-tools && \
./install.sh gotestsum && \ ./install.sh gotestsum && \
./install.sh git-lfs && \
go install github.com/mattn/goreman@latest && \ go install github.com/mattn/goreman@latest && \
go install github.com/kisielk/godepgraph@latest && \ go install github.com/kisielk/godepgraph@latest && \
go install github.com/jstemmer/go-junit-report@latest && \ go install github.com/jstemmer/go-junit-report@latest && \