Use python wheels to speed up AS deployment:

* Create wheels from python dependencies on building codedeploy artifact
* Update script to install wheels and default to pypi if not found
This commit is contained in:
Imdad Ahad
2016-10-21 16:16:10 +01:00
parent e5bedbd789
commit 177515de8f
2 changed files with 2 additions and 1 deletions

View File

@@ -67,6 +67,7 @@ build: dependencies generate-version-file ## Build project
.PHONY: build-codedeploy-artifact
build-codedeploy-artifact: ## Build the deploy artifact for CodeDeploy
pip3 wheel --wheel-dir=wheelhouse -r requirements.txt
mkdir -p target
zip -r -x@deploy-exclude.lst target/notifications-api.zip *

View File

@@ -5,4 +5,4 @@ set -eo pipefail
echo "Install dependencies"
cd /home/notify-app/notifications-api;
pip3 install -r /home/notify-app/notifications-api/requirements.txt
pip3 install --find-links=wheelhouse -r /home/notify-app/notifications-api/requirements.txt