Update go version to 1.11.2 for gobgp and telemetry (#2230)
Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
This commit is contained in:
parent
447ae7b61a
commit
47518e75d6
@ -250,7 +250,7 @@ RUN apt-get update && apt-get install -y \
|
||||
RUN apt-get -y build-dep linux
|
||||
|
||||
# For gobgp build
|
||||
RUN export VERSION=1.8.3 \
|
||||
RUN export VERSION=1.11.2 \
|
||||
&& wget https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz \
|
||||
&& tar -C /usr/local -xzf go$VERSION.linux-amd64.tar.gz \
|
||||
&& echo 'export GOROOT=/usr/local/go' >> /etc/bash.bashrc \
|
||||
|
@ -5,10 +5,10 @@ INSTALL := /usr/bin/install
|
||||
all: gobgp gobgpd
|
||||
|
||||
gobgpd:
|
||||
go get -v github.com/osrg/gobgp/gobgpd
|
||||
/usr/local/go/bin/go get -v github.com/osrg/gobgp/cmd/gobgpd
|
||||
|
||||
gobgp:
|
||||
go get -v github.com/osrg/gobgp/gobgp
|
||||
/usr/local/go/bin/go get -v github.com/osrg/gobgp/cmd/gobgp
|
||||
|
||||
install:
|
||||
$(INSTALL) -D ${GOPATH}/bin/gobgp $(DESTDIR)/usr/bin/gobgp
|
||||
|
Reference in New Issue
Block a user