From e71bd7124aea67df693d58dd8f534bf1ef8cb86c Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Thu, 26 Oct 2017 18:53:53 +0200 Subject: ci/deploy.sh: Add PDF parsing dependencies The following packages are required for PDF parsing: - python - python-ipaddress - python-jinja2 Note that `python-ipaddress` is not available on older Ubuntu distributions (e.g. Trusty), in which case `pip` should be used to install it. An alternative would be to use python3 packages. Update the installation instructions to specify minimum expected requirements on the jump server. JIRA: FUEL-292 Change-Id: I19fdcc163dcfdee45ac6fa3f5e09a28638d6035c Signed-off-by: Alexandru Avadanii (cherry picked from commit f10bc960eead6c1423ada006a383515279056886) --- ci/deploy.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ci') diff --git a/ci/deploy.sh b/ci/deploy.sh index 97c4de0e3..787f7dee5 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -269,6 +269,14 @@ pushd "${DEPLOY_DIR}" > /dev/null [ -n "$(command -v yum)" ] && sudo yum install -y --skip-broken \ git make rsync genisoimage curl virt-install qemu-kvm util-linux +# For baremetal, python is indirectly required for PDF parsing +if [ "${DEPLOY_TYPE}" = 'baremetal' ]; then + [ -n "$(command -v apt-get)" ] && sudo apt-get install -y \ + python python-ipaddress python-jinja2 + [ -n "$(command -v yum)" ] && sudo yum install -y --skip-broken \ + python python-ipaddress python-jinja2 +fi + # Clone git submodules and apply our patches make -C "${REPO_ROOT_PATH}/mcp/patches" deepclean patches-import -- cgit 1.2.3-korg