Skip to content

Commit 3e23241

Browse files
committed
Merge pull request #327 from ciarand/dev
Update the Docker build's Go source and version
2 parents 5ed5912 + aea2b54 commit 3e23241

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

dockerfiles/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ HOST_PORT="YOUR_HOST_PORT" # The port on host, which will be redirected t
1010
# apt source, you can select 'nchc'(mirror in Taiwan) or 'aliyun'(best for mainlance China users) according to your network, if you could connect to the official unbunt mirror in a fast speed, just leave it to "".
1111
APT_SOURCE=""
1212

13+
# fail immediately if anything goes wrong
14+
set -e
15+
1316
DOCKER_BIN=$(which docker.io || which docker)
1417
if [ -z "$DOCKER_BIN" ] ; then
1518
echo "Please install docker. You can install docker by running \"wget -qO- https://get.docker.io/ | sh\"."

dockerfiles/images/gogits/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ENV GOPATH /go
1313
RUN apt-get update && apt-get install --yes --force-yes curl git mercurial zip wget ca-certificates build-essential
1414
RUN apt-get install -yq vim sudo
1515

16-
RUN curl -s http://docker.u.qiniudn.com/go1.2.1.src.tar.gz | tar -v -C /usr/local -xz
16+
RUN curl -sL https://golang.org/dl/go1.3.linux-amd64.tar.gz | tar -v -C /usr/local -xz
1717
RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1
1818

1919
RUN go get -u -d github.com/gogits/gogs

0 commit comments

Comments
 (0)