Gitaly Build Images

Golang 1.5, 1.6, 1.7, 1.8 + Git 2.8.4
This commit is contained in:
Kim Carlbäcker 2017-03-04 19:40:17 +00:00 committed by Kim "BKC" Carlbäcker
parent aa62d51de6
commit a32461f5e4
6 changed files with 86 additions and 0 deletions

14
scripts/install-golang Executable file
View 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