mirror of
https://github.com/golang/go
synced 2024-11-18 15:44:41 -07:00
dashboard/env: update linux builder Dockerfile to use git, update builder
Uses a builder that can build both hg & git. (Should fix the git subrepos on the main dashboard currently) Change-Id: I3af96e35d40f6397625730b812a288f36622cb8a Reviewed-on: https://go-review.googlesource.com/1203 Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
parent
98c15d46be
commit
d7df296309
2
dashboard/env/linux-x86-base/Dockerfile
vendored
2
dashboard/env/linux-x86-base/Dockerfile
vendored
@ -13,4 +13,4 @@ ADD /scripts/install-apt-deps.sh /scripts/
|
||||
RUN /scripts/install-apt-deps.sh
|
||||
|
||||
ADD /scripts/build-go-builder.sh /scripts/
|
||||
RUN GO_REV=8c27884843c3 BUILDER_REV=ced78bfefcb3 /scripts/build-go-builder.sh && test -f /usr/local/bin/builder
|
||||
RUN GO_REV=8c27884843c3 BUILDER_REV=98c15d46be /scripts/build-go-builder.sh && test -f /usr/local/bin/builder
|
||||
|
@ -12,9 +12,9 @@ curl -s https://storage.googleapis.com/gobuilder/go-snap.tar.gz | tar x --no-sam
|
||||
|
||||
GO_TOOLS=$GOPATH/src/golang.org/x/tools
|
||||
mkdir -p $GO_TOOLS
|
||||
curl -s https://storage.googleapis.com/gobuilder/go.tools-snap.tar.gz | tar x --no-same-owner -zv -C $GO_TOOLS
|
||||
git clone https://go.googlesource.com/tools $GO_TOOLS
|
||||
|
||||
mkdir -p $PREFIX/bin
|
||||
(cd $GO_TOOLS && hg pull -r $BUILDER_REV -u && GOBIN=$PREFIX/bin /goroot/bin/go install golang.org/x/tools/dashboard/builder)
|
||||
(cd $GO_TOOLS && git reset --hard $BUILDER_REV && GOBIN=$PREFIX/bin /goroot/bin/go install golang.org/x/tools/dashboard/builder)
|
||||
|
||||
rm -fR $GOROOT/bin $GOROOT/pkg $GOPATH
|
||||
|
Loading…
Reference in New Issue
Block a user