From a520ef69ace529bfa2ca93956ed848817934e553 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Mon, 18 May 2020 17:41:33 +0200 Subject: [PATCH] preinstall pip packages --- utils.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils.sh b/utils.sh index ae65f56..426e21c 100755 --- a/utils.sh +++ b/utils.sh @@ -169,6 +169,8 @@ fi" # Pre install dependencies lxc exec "$base_image_to_rebuild-tmp" -- /bin/bash -c "apt-get install --assume-yes $YNH_DEPENDENCIES $BUILD_DEPENDENCIES" + lxc exec "$base_image_to_rebuild-tmp" -- /bin/bash -c "pip install -U pip pytest pytest-sugar pytest-mock requests-mock mock" + rotate_image "$base_image_to_rebuild-tmp" "$base_image_to_rebuild" lxc stop "$base_image_to_rebuild-tmp" @@ -193,6 +195,8 @@ update_image() { lxc exec "$image_to_update-tmp" -- /bin/bash -c "apt-get update" lxc exec "$image_to_update-tmp" -- /bin/bash -c "apt-get upgrade -y" + lxc exec "$base_image_to_rebuild-tmp" -- /bin/bash -c "pip install -U pip pytest pytest-sugar pytest-mock requests-mock mock" + rotate_image "$image_to_update-tmp" "$image_to_update" lxc stop "$image_to_update-tmp"