Skip to content

Commit

Permalink
Add git-lfs package
Browse files Browse the repository at this point in the history
Add git-lfs package to each docker image base 16.04 and newer. An
Ubuntu package isn't available for 16.04, so it is installed from
packagecloud.io.

Change-Id: I28da4341d4d435b5dace908d83a3fbe81ac84aec
  • Loading branch information
rossstutterheim-garmin authored and JoshuaWatt committed Apr 17, 2023
1 parent 8c380c8 commit 963132b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,16 @@ RUN set -x && export DEBIAN_FRONTEND=noninteractive && \
python3 \
sudo \
curl \
apt-transport-https \
&& \
# Add packagecloud apt source and gpg key and install git-lfs
# (Depends on curl and apt-transport-https installed above)
install -d -m 0755 -o root -g root /etc/apt/sources.list.d && \
curl -sSf 'https://packagecloud.io/install/repositories/github/git-lfs/config_file.list?os=Ubuntu&dist=xenial&source=script' > /etc/apt/sources.list.d/github_git-lfs.list && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL 'https://packagecloud.io/github/git-lfs/gpgkey' | gpg --dearmor > /etc/apt/keyrings/github_git-lfs-archive-keyring.gpg && \
apt-get -y update && \
apt-get -y install git-lfs && \
# Clean up apt-cache
rm -rf /var/lib/apt/lists/* &&\
# generate utf8 locale
Expand Down Expand Up @@ -483,6 +492,7 @@ RUN set -x && export DEBIAN_FRONTEND=noninteractive && \
gawk \
wget \
git-core \
git-lfs \
diffstat \
unzip \
texinfo \
Expand Down Expand Up @@ -553,6 +563,7 @@ RUN set -x && export DEBIAN_FRONTEND=noninteractive && \
gawk \
wget \
git \
git-lfs \
diffstat \
unzip \
texinfo \
Expand Down Expand Up @@ -629,6 +640,7 @@ RUN set -x && export DEBIAN_FRONTEND=noninteractive && \
gawk \
wget \
git \
git-lfs \
diffstat \
unzip \
texinfo \
Expand Down

0 comments on commit 963132b

Please sign in to comment.