X-Git-Url: https://gerrit.nordix.org/gitweb?p=infra%2Fstack%2Fkubernetes.git;a=blobdiff_plain;f=setup-stack.sh;h=d927afb1aeb7a98580c7ae2e97fba3ed33065640;hp=3fde7ee7630deb44e75ee1307ae9a5c63743f0d7;hb=663609bac440e568ae47e40fb3d295510c0c2c47;hpb=59b8d3db83f0dbeb41ebac7a1ad076797cc6d100 diff --git a/setup-stack.sh b/setup-stack.sh index 3fde7ee..d927afb 100755 --- a/setup-stack.sh +++ b/setup-stack.sh @@ -33,4 +33,21 @@ export STACK_ROOT_DIR export DEPLOY_SCENARIO="${DEPLOY_SCENARIO:=k8-multus-plugins}" 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: