Skip to content
Snippets Groups Projects
Commit 6993033a authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Merge branch 'gitaly-build-images' into 'master'

golang-1.5-git-2.8.4

See merge request !28
parents aa62d51d a32461f5
No related branches found
No related tags found
1 merge request!28golang-1.5-git-2.8.4
Loading
Loading
@@ -35,6 +35,10 @@ www-gitlab-com test: *test_build
doc-gitlab-com test: *test_build
terraform-0.1 test: *test_build
gitlab-qa test: *test_build
golang-1.5-git-2.8.4 test: *test_build
golang-1.6-git-2.8.4 test: *test_build
golang-1.7-git-2.8.4 test: *test_build
golang-1.8-git-2.8.4 test: *test_build
 
ruby-2.1-git-2.7-phantomjs-2.1: *build_and_deploy
ruby-2.3-git-2.7-phantomjs-2.1: *build_and_deploy
Loading
Loading
@@ -44,3 +48,7 @@ www-gitlab-com: *build_and_deploy
doc-gitlab-com: *build_and_deploy
terraform-0.1: *build_and_deploy
gitlab-qa: *build_and_deploy
golang-1.5-git-2.8.4: *build_and_deploy
golang-1.6-git-2.8.4: *build_and_deploy
golang-1.7-git-2.8.4: *build_and_deploy
golang-1.8-git-2.8.4: *build_and_deploy
FROM golang:1.5
ENV GIT_VERSION 2.8.4
ENV GIT_DOWNLOAD_URL https://www.kernel.org/pub/software/scm/git/git-$GIT_VERSION.tar.gz
ENV GIT_DOWNLOAD_SHA256 626e319f8a24fc0866167ea5f6bf3e2f38f69d6cb2e59e150f13709ca3ebf301
# Install Build-deps
RUN apt-get update && apt-get install -y \
dh-autoreconf libcurl4-gnutls-dev libexpat1-dev \
gettext libz-dev libssl-dev
ADD . $PWD
RUN scripts/install-golang
ENV PATH /usr/local/bin:$PATH
FROM golang:1.6
ENV GIT_VERSION 2.8.4
ENV GIT_DOWNLOAD_URL https://www.kernel.org/pub/software/scm/git/git-$GIT_VERSION.tar.gz
ENV GIT_DOWNLOAD_SHA256 626e319f8a24fc0866167ea5f6bf3e2f38f69d6cb2e59e150f13709ca3ebf301
# Install Build-deps
RUN apt-get update && apt-get install -y \
dh-autoreconf libcurl4-gnutls-dev libexpat1-dev \
gettext libz-dev libssl-dev
ADD . $PWD
RUN scripts/install-golang
ENV PATH /usr/local/bin:$PATH
FROM golang:1.7
ENV GIT_VERSION 2.8.4
ENV GIT_DOWNLOAD_URL https://www.kernel.org/pub/software/scm/git/git-$GIT_VERSION.tar.gz
ENV GIT_DOWNLOAD_SHA256 626e319f8a24fc0866167ea5f6bf3e2f38f69d6cb2e59e150f13709ca3ebf301
# Install Build-deps
RUN apt-get update && apt-get install -y \
dh-autoreconf libcurl4-gnutls-dev libexpat1-dev \
gettext libz-dev libssl-dev
ADD . $PWD
RUN scripts/install-golang
ENV PATH /usr/local/bin:$PATH
FROM golang:1.8
ENV GIT_VERSION 2.8.4
ENV GIT_DOWNLOAD_URL https://www.kernel.org/pub/software/scm/git/git-$GIT_VERSION.tar.gz
ENV GIT_DOWNLOAD_SHA256 626e319f8a24fc0866167ea5f6bf3e2f38f69d6cb2e59e150f13709ca3ebf301
# Install Build-deps
RUN apt-get update && apt-get install -y \
dh-autoreconf libcurl4-gnutls-dev libexpat1-dev \
gettext libz-dev libssl-dev
ADD . $PWD
RUN scripts/install-golang
ENV PATH /usr/local/bin:$PATH
#!/bin/sh
mkdir build \
&& curl -fsSL "$GIT_DOWNLOAD_URL" -o git.tar.gz \
&& echo "$GIT_DOWNLOAD_SHA256 git.tar.gz" | sha256sum -c - \
&& tar -C build -xzf git.tar.gz \
&& cd build/git-$GIT_VERSION \
&& chmod +x configure \
&& ./configure \
&& make all \
&& make install PREFIX=/usr/local \
&& cd ../.. \
&& rm -rf build \
&& rm git.tar.gz
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment