From 0c9b01e7875c82d85836b87948db0dbbf734afb2 Mon Sep 17 00:00:00 2001 From: ichizok Date: Fri, 16 Oct 2015 21:51:42 +0900 Subject: [PATCH] dockerfile: added `GITLAB_GIT_HTTP_SERVER_VERSION` environment variable --- Dockerfile | 1 + assets/setup/install.sh | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 532a0494..2d630ee7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ MAINTAINER sameer@damagehead.com ENV GITLAB_VERSION=8.0.5 \ GITLAB_SHELL_VERSION=2.6.5 \ + GITLAB_GIT_HTTP_SERVER_VERSION=0.2.14 \ GITLAB_USER="git" \ GITLAB_HOME="/home/git" \ GITLAB_LOG_DIR="/var/log/gitlab" \ diff --git a/assets/setup/install.sh b/assets/setup/install.sh index f2342565..60ef3695 100755 --- a/assets/setup/install.sh +++ b/assets/setup/install.sh @@ -51,8 +51,9 @@ cd ${GITLAB_SHELL_INSTALL_DIR} sudo -u git -H cp -a config.yml.example config.yml sudo -u git -H ./bin/install -echo "Cloning gitlab-git-http-server..." -sudo -u git -H git clone -q https://gitlab.com/gitlab-org/gitlab-git-http-server.git --depth 1 ${GITLAB_GIT_HTTP_SERVER_INSTALL_DIR} +echo "Cloning gitlab-git-http-server v.${GITLAB_GIT_HTTP_SERVER_VERSION}..." +sudo -u git -H git clone -q -b ${GITLAB_GIT_HTTP_SERVER_VERSION} --depth 1 \ + https://gitlab.com/gitlab-org/gitlab-git-http-server.git ${GITLAB_GIT_HTTP_SERVER_INSTALL_DIR} cd ${GITLAB_GIT_HTTP_SERVER_INSTALL_DIR} sudo -u git -H make