Merge pull request #1013 from alphagov/install-reqs-from-wheels

Use python wheels to speed up deployments
This commit is contained in:
imdadahad
2016-11-10 10:49:10 +00:00
committed by GitHub
3 changed files with 4 additions and 2 deletions

View File

@@ -67,6 +67,7 @@ generate-version-file: ## Generates the app version file
.PHONY: build .PHONY: build
build: dependencies generate-version-file ## Build project build: dependencies generate-version-file ## Build project
./venv/bin/pip-accel wheel --wheel-dir=wheelhouse -r requirements.txt
npm run build npm run build
.PHONY: build-codedeploy-artifact .PHONY: build-codedeploy-artifact

View File

@@ -31,6 +31,7 @@ RUN \
echo "Install global pip packages" \ echo "Install global pip packages" \
&& pip install \ && pip install \
virtualenv \ virtualenv \
awscli awscli \
wheel
WORKDIR /var/project WORKDIR /var/project

View File

@@ -2,4 +2,4 @@
echo "Install dependencies" echo "Install dependencies"
cd /home/notify-app/notifications-admin; cd /home/notify-app/notifications-admin;
pip3 install -r /home/notify-app/notifications-admin/requirements.txt pip3 install --find-links=wheelhouse -r /home/notify-app/notifications-admin/requirements.txt