mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-12 08:12:27 -05:00
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:
1
Makefile
1
Makefile
@@ -67,6 +67,7 @@ build: dependencies generate-version-file ## Build project
|
|||||||
|
|
||||||
.PHONY: build-codedeploy-artifact
|
.PHONY: build-codedeploy-artifact
|
||||||
build-codedeploy-artifact: ## Build the deploy artifact for CodeDeploy
|
build-codedeploy-artifact: ## Build the deploy artifact for CodeDeploy
|
||||||
|
pip3 wheel --wheel-dir=wheelhouse -r requirements.txt
|
||||||
mkdir -p target
|
mkdir -p target
|
||||||
zip -r -x@deploy-exclude.lst target/notifications-api.zip *
|
zip -r -x@deploy-exclude.lst target/notifications-api.zip *
|
||||||
|
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ set -eo pipefail
|
|||||||
echo "Install dependencies"
|
echo "Install dependencies"
|
||||||
|
|
||||||
cd /home/notify-app/notifications-api;
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user