From 75854d91fc6e54bbbc23a1f4e34eeb31f229e30d Mon Sep 17 00:00:00 2001 From: Imdad Ahad Date: Mon, 7 Nov 2016 17:56:08 +0000 Subject: [PATCH] Use python wheels to speed up deployments --- Makefile | 1 + docker/Dockerfile-build | 3 ++- scripts/aws_install_dependencies.sh | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f0c51c5e4..9c0769e3a 100644 --- a/Makefile +++ b/Makefile @@ -67,6 +67,7 @@ generate-version-file: ## Generates the app version file .PHONY: build build: dependencies generate-version-file ## Build project + ./venv/bin/pip-accel wheel --wheel-dir=wheelhouse -r requirements.txt npm run build .PHONY: build-codedeploy-artifact diff --git a/docker/Dockerfile-build b/docker/Dockerfile-build index 105f1fdca..49a36e251 100644 --- a/docker/Dockerfile-build +++ b/docker/Dockerfile-build @@ -31,6 +31,7 @@ RUN \ echo "Install global pip packages" \ && pip install \ virtualenv \ - awscli + awscli \ + wheel WORKDIR /var/project diff --git a/scripts/aws_install_dependencies.sh b/scripts/aws_install_dependencies.sh index e5988d7b2..c2c658c99 100755 --- a/scripts/aws_install_dependencies.sh +++ b/scripts/aws_install_dependencies.sh @@ -2,4 +2,4 @@ echo "Install dependencies" cd /home/notify-app/notifications-admin; -pip3 install -r /home/notify-app/notifications-admin/requirements.txt \ No newline at end of file +pip3 install --find-links=wheelhouse -r /home/notify-app/notifications-admin/requirements.txt