preinstall pip packages

This commit is contained in:
Kay0u 2020-05-18 17:41:33 +02:00
parent a51a90a149
commit a520ef69ac
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -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"