Skip to content
This repository was archived by the owner on Jun 16, 2024. It is now read-only.

Commit fbbd4ad

Browse files
committed
Install Git LFS in prepare.sh
1 parent 2366a4b commit fbbd4ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

prepare.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ install_dependencies() {
7878
podman exec "$CONTAINER_ID" /bin/bash -c 'if ! type git >/dev/null 2>&1 && type apk >/dev/null 2>&1 ; then echo "APK based distro without git"; apk add git; fi'
7979
# Install git in systems with YUM (e.g., RHEL<=7)
8080
podman exec "$CONTAINER_ID" /bin/bash -c 'if ! type git >/dev/null 2>&1 && type yum >/dev/null 2>&1 ; then echo "YUM based distro without git"; yum install --assumeyes git; fi'
81+
82+
# Install git-lfs in systems with APT (e.g., Debian)
83+
podman exec "$CONTAINER_ID" /bin/bash -c 'if ! type git-lfs >/dev/null 2>&1 && type apt-get >/dev/null 2>&1 ; then echo "APT based distro without git-lfs"; apt-get update && apt-get install --no-install-recommends -y ca-certificates git-lfs; fi'
84+
# Install git-lfs in systems with DNF (e.g., Fedora)
85+
podman exec "$CONTAINER_ID" /bin/bash -c 'if ! type git-lfs >/dev/null 2>&1 && type dnf >/dev/null 2>&1 ; then echo "DNF based distro without git-lfs"; dnf install --setopt=install_weak_deps=False --assumeyes git-lfs; fi'
86+
# Install git-lfs in systems with APK (e.g., Alpine)
87+
podman exec "$CONTAINER_ID" /bin/bash -c 'if ! type git-lfs >/dev/null 2>&1 && type apk >/dev/null 2>&1 ; then echo "APK based distro without git-lfs"; apk add git-lfs; fi'
8188
}
8289

8390
echo "Running in $CONTAINER_ID"

0 commit comments

Comments
 (0)