mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-10 02:22:57 +01:00
Install git-core
This commit is contained in:
parent
3e7f7696aa
commit
ba4b0253d4
1 changed files with 6 additions and 5 deletions
|
|
@ -7,10 +7,11 @@ export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
EXIT_CODE=0
|
# We install `git-core` as some tooling expect `/usr/bin/git`
|
||||||
grep "Debian GNU/Linux 9" /etc/issue || EXIT_CODE=$?
|
# other tools that rely on PATH ordering will pick a one in `/usr/local`
|
||||||
|
# if present
|
||||||
|
|
||||||
if [ $EXIT_CODE -eq 0 ]
|
if grep "Debian GNU/Linux 9" /etc/issue
|
||||||
then
|
then
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
curl wget build-essential apt-utils locales openssh-client \
|
curl wget build-essential apt-utils locales openssh-client \
|
||||||
|
|
@ -21,7 +22,7 @@ then
|
||||||
logrotate python-docutils pkg-config cmake nodejs \
|
logrotate python-docutils pkg-config cmake nodejs \
|
||||||
libkrb5-dev postgresql-client mysql-client unzip \
|
libkrb5-dev postgresql-client mysql-client unzip \
|
||||||
libsqlite3-dev libpq-dev libpng-dev libjpeg-dev libzstd-dev \
|
libsqlite3-dev libpq-dev libpng-dev libjpeg-dev libzstd-dev \
|
||||||
libre2-dev gettext rsync
|
libre2-dev gettext rsync git-core
|
||||||
else
|
else
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
curl wget build-essential apt-utils locales openssh-client \
|
curl wget build-essential apt-utils locales openssh-client \
|
||||||
|
|
@ -31,7 +32,7 @@ else
|
||||||
logrotate python-docutils pkg-config cmake \
|
logrotate python-docutils pkg-config cmake \
|
||||||
libkrb5-dev postgresql-client unzip \
|
libkrb5-dev postgresql-client unzip \
|
||||||
libsqlite3-dev libpq-dev libpng-dev libjpeg-dev libzstd-dev \
|
libsqlite3-dev libpq-dev libpng-dev libjpeg-dev libzstd-dev \
|
||||||
libre2-dev gettext rsync
|
libre2-dev gettext rsync git-core
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set UTF-8
|
# Set UTF-8
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue