mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
Gitaly Build Images
Golang 1.5, 1.6, 1.7, 1.8 + Git 2.8.4
This commit is contained in:
parent
aa62d51de6
commit
a32461f5e4
6 changed files with 86 additions and 0 deletions
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
16
Dockerfile.golang-1.5-git-2.8.4
Normal file
16
Dockerfile.golang-1.5-git-2.8.4
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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
|
||||
16
Dockerfile.golang-1.6-git-2.8.4
Normal file
16
Dockerfile.golang-1.6-git-2.8.4
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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
|
||||
16
Dockerfile.golang-1.7-git-2.8.4
Normal file
16
Dockerfile.golang-1.7-git-2.8.4
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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
|
||||
16
Dockerfile.golang-1.8-git-2.8.4
Normal file
16
Dockerfile.golang-1.8-git-2.8.4
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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
|
||||
14
scripts/install-golang
Executable file
14
scripts/install-golang
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue