Skip to content

Commit dfaa6ae

Browse files
authored
Merge pull request #176 from polycube-network/pr/clean_up_install
cleanup install
2 parents 6e4dbcc + d6097da commit dfaa6ae

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

scripts/install.sh

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,12 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
6161
mkdir -p $WORKDIR
6262

6363
$SUDO apt update
64-
$SUDO apt install -y wget gnupg2
65-
66-
echo "Install golang v1.12"
67-
# TODO: v1.12 still not available in repos
68-
#wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz
69-
#$SUDO tar -xvf go1.12.6.linux-amd64.tar.gz
70-
#$SUDO mv go /usr/local
71-
#$SUDO ln -s /usr/local/go/bin/go /usr/bin
72-
73-
$SUDO apt-get install -y software-properties-common
74-
$SUDO add-apt-repository ppa:longsleep/golang-backports
75-
$SUDO apt-get update
76-
$SUDO apt install -y golang-go
77-
#$SUDO ln -s /usr/bin
64+
$SUDO apt install -y wget gnupg2 software-properties-common
7865

66+
# golang v1.12 still not available in repos
67+
$SUDO add-apt-repository ppa:longsleep/golang-backports -y
7968

69+
# repo for libyang-dev
8070
$SUDO sh -c "echo 'deb http://download.opensuse.org/repositories/home:/liberouter/xUbuntu_18.04/ /' > /etc/apt/sources.list.d/home:liberouter.list"
8171
wget -nv https://download.opensuse.org/repositories/home:liberouter/xUbuntu_18.04/Release.key -O Release.key
8272
$SUDO apt-key add - < Release.key
@@ -89,8 +79,7 @@ PACKAGES+=" bison flex libelf-dev" # bcc dependencies
8979
PACKAGES+=" libllvm5.0 llvm-5.0-dev libclang-5.0-dev" # bpf tools compilation tool chain
9080
PACKAGES+=" libnl-route-3-dev libnl-genl-3-dev" # netlink library
9181
PACKAGES+=" uuid-dev"
92-
#PACKAGES+=" golang-go" # needed for polycubectl and pcn-k8s
93-
#PACKAGES+=" golang-1.12-go" # needed for polycubectl and pcn-k8s
82+
PACKAGES+=" golang-go" # needed for polycubectl and pcn-k8s
9483
PACKAGES+=" pkg-config"
9584
PACKAGES+=" libyang-dev"
9685
PACKAGES+=" autoconf libtool m4 automake"
@@ -105,7 +94,8 @@ if [ "$MODE" == "pcn-k8s" ]; then
10594
PACKAGES+=" iproute2" # provides bridge command that is used to add entries in vxlan device
10695
fi
10796

108-
$SUDO apt install -y $PACKAGES
97+
# use non inreractive to avoid blocking the install script
98+
$SUDO bash -c "DEBIAN_FRONTEND=noninteractive apt-get install -yq $PACKAGES"
10999

110100
echo "Install pistache"
111101
cd $WORKDIR

0 commit comments

Comments
 (0)