containers: export all images in one file
[infra/stack/kubernetes.git] / setup-stack.sh
index 3fde7ee7630deb44e75ee1307ae9a5c63743f0d7..d927afb1aeb7a98580c7ae2e97fba3ed33065640 100755 (executable)
@@ -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: