X-Git-Url: https://gerrit.nordix.org/gitweb?p=infra%2Fstack%2Fkubernetes.git;a=blobdiff_plain;f=setup-stack.sh;h=732c0706551a5371b71bbaa5cfe037868b3705c4;hp=35d5789ce73dbc60513109b2e3857cf44da9ccbb;hb=4cfdd1e691faaf201031114c391155b8c3ba3cf1;hpb=f897a3cc780c4ac647023ba31307d4fddf55df30 diff --git a/setup-stack.sh b/setup-stack.sh index 35d5789..732c070 100755 --- a/setup-stack.sh +++ b/setup-stack.sh @@ -33,4 +33,21 @@ export STACK_ROOT_DIR export DEPLOY_SCENARIO="${DEPLOY_SCENARIO:=k8-calico-nofeature}" echo "Info : Deploy scenario is $DEPLOY_SCENARIO" +# NOTE (fdegir): we need to install stack specific operating system requirements +# and python packages before proceeding further +echo "Info : Install stack operating system requirements listed in stack bindep.txt using $PKG_MGR" +cd "$STACK_ROOT_DIR" +# bindep -b exits with non-zero if it identifies a missing package so we disable pipefail +set +o pipefail +# shellcheck disable=SC2046 disable=SC2086 +bindep -b &> /dev/null || redirect_cmd ${INSTALLER_CMD} $(bindep -b) +set -o pipefail + +# TODO (fdegir): installation of pip packages fail due to not being able to find setuptools +# as build dependency so we do --no-use-pep517 as workaround. +# This needs to be revisited later on. +echo "Info : Install stack python packages listed in stack requirements.txt using pip" +echo " Please note that this may take some time" +redirect_cmd pip install --no-use-pep517 --force-reinstall -r requirements.txt + # vim: set ts=2 sw=2 expandtab: