Skip to content

Commit

Permalink
Merge pull request #257 from polycube-network/jpi-install
Browse files Browse the repository at this point in the history
add required package to make install script happy
  • Loading branch information
frisso committed Dec 16, 2019
2 parents 1309c1a + f3b58a0 commit 8098053
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/pre-requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,17 @@ PACKAGES+=" libssl-dev" # needed for certificate based security
PACKAGES+=" sudo" # needed for pcn-iptables, when building docker image
PACKAGES+=" kmod" # needed for pcn-iptables, when using lsmod to unload conntrack if not needed
PACKAGES+=" jq bash-completion" # needed for polycubectl bash autocompletion
PACKAGES+=" libpcre3-dev" # needed for libyang

if [ "$MODE" == "pcn-k8s" ]; then
PACKAGES+=" curl" # needed for pcn-k8s to download a binary
PACKAGES+=" iptables" # only for pcn-k8s
PACKAGES+=" iproute2" # provides bridge command that is used to add entries in vxlan device
fi

# use non interactive to avoid blocking the install script
$SUDO bash -c "DEBIAN_FRONTEND=noninteractive apt-get install -yq $PACKAGES"

# licd $WORKDIR
set +e
if [ ! -d libyang ]; then
Expand All @@ -47,9 +51,6 @@ cmake ..
make -j $(getconf _NPROCESSORS_ONLN)
$SUDO make install

# use non interactive to avoid blocking the install script
$SUDO bash -c "DEBIAN_FRONTEND=noninteractive apt-get install -yq $PACKAGES"

echo "Install pistache"
cd $WORKDIR
set +e
Expand Down

0 comments on commit 8098053

Please sign in to comment.