Skip to content

Commit

Permalink
Merge pull request #170 from polycube-network/pr/use_golang_from_repo
Browse files Browse the repository at this point in the history
use golang from repo
  • Loading branch information
frisso committed Jul 9, 2019
2 parents fad1477 + b5a15fc commit 1bb6758
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ "$MODE" = "pcn-k8s" ] ; then \
GOOS=linux go build -o /pcn_k8s . ; \
fi && \
apt-get purge --auto-remove -y git bison cmake flex \
libllvm5.0 llvm-5.0-dev libclang-5.0-dev uuid-dev autoconf \
libllvm5.0 llvm-5.0-dev libclang-5.0-dev uuid-dev autoconf software-properties-common golang-go \
libtool curl && \
apt-get clean && \
rm -fr /root /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/local/go/*
Expand Down
15 changes: 11 additions & 4 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,17 @@ $SUDO apt install -y wget gnupg2

echo "Install golang v1.12"
# TODO: v1.12 still not available in repos
wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz
$SUDO tar -xvf go1.12.6.linux-amd64.tar.gz
$SUDO mv go /usr/local
$SUDO ln -s /usr/local/go/bin/go /usr/bin
#wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz
#$SUDO tar -xvf go1.12.6.linux-amd64.tar.gz
#$SUDO mv go /usr/local
#$SUDO ln -s /usr/local/go/bin/go /usr/bin

$SUDO apt-get install -y software-properties-common
$SUDO add-apt-repository ppa:longsleep/golang-backports
$SUDO apt-get update
$SUDO apt install -y golang-go
#$SUDO ln -s /usr/bin


$SUDO sh -c "echo 'deb http://download.opensuse.org/repositories/home:/liberouter/xUbuntu_18.04/ /' > /etc/apt/sources.list.d/home:liberouter.list"
wget -nv https://download.opensuse.org/repositories/home:liberouter/xUbuntu_18.04/Release.key -O Release.key
Expand Down

0 comments on commit 1bb6758

Please sign in to comment.