Skip to content

Commit 21b4592

Browse files
committed
refs #2549: Install git from gitaly
1 parent 4b9af52 commit 21b4592

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ RUN set -ex && \
4545
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
4646
sudo supervisor logrotate locales curl \
4747
nginx openssh-server postgresql-client-12 postgresql-contrib-12 redis-tools \
48-
git-core python3 python3-docutils nodejs yarn gettext-base graphicsmagick \
48+
python3 python3-docutils nodejs yarn gettext-base graphicsmagick \
4949
libpq5 zlib1g libyaml-0-2 libssl1.1 \
5050
libgdbm6 libreadline8 libncurses5 libffi7 \
5151
libxml2 libxslt1.1 libcurl4 libicu66 libre2-dev tzdata unzip libimage-exiftool-perl \
52+
libcurl4-openssl-dev libexpat1-dev gettext libz-dev libssl-dev libpcre2-dev build-essential git-core \
5253
libmagic1 \
5354
&& update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX \
5455
&& locale-gen en_US.UTF-8 \

assets/build/install.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ GITLAB_PAGES_VERSION=${GITLAB_PAGES_VERSION:-$(cat ${GITLAB_INSTALL_DIR}/GITLAB_
9292

9393
# install bundler: use version specified in Gemfile.lock
9494
BUNDLER_VERSION="$(grep "BUNDLED WITH" ${GITLAB_INSTALL_DIR}/Gemfile.lock -A 1 | grep -v "BUNDLED WITH" | tr -d "[:space:]")"
95-
gem install bundler:"${BUNDLER_VERSION}"
95+
gem install bundler:"${BUNDLER_VERSION}"
9696

9797
# download golang
9898
echo "Downloading Go ${GOLANG_VERSION}..."
@@ -148,6 +148,10 @@ cp -a ${GITLAB_GITALY_BUILD_DIR}/config.toml.example ${GITLAB_GITALY_INSTALL_DIR
148148
rm -rf ${GITLAB_GITALY_INSTALL_DIR}/ruby/vendor/bundle/ruby/**/cache
149149
chown -R ${GITLAB_USER}: ${GITLAB_GITALY_INSTALL_DIR}
150150

151+
# install git bundled with gitaly.
152+
make -C ${GITLAB_GITALY_BUILD_DIR} git GIT_PREFIX=/usr/local
153+
apt remove -y git-core
154+
151155
# clean up
152156
rm -rf ${GITLAB_GITALY_BUILD_DIR}
153157

@@ -456,4 +460,4 @@ rm -rf /var/lib/apt/lists/*
456460
# clean up caches
457461
rm -rf ${GITLAB_HOME}/.cache ${GITLAB_HOME}/.bundle ${GITLAB_HOME}/go
458462
rm -rf /root/.cache /root/.bundle ${GITLAB_HOME}/gitlab/node_modules
459-
rm -r /tmp/*
463+
rm -r /tmp/*

0 commit comments

Comments
 (0)