mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
Merge pull request #719 from alphagov/use-wheels-to-speed-as-deployment
Move wheel dependency installation to docker build
This commit is contained in:
3
Makefile
3
Makefile
@@ -64,11 +64,10 @@ 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
|
||||||
|
|
||||||
.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 install wheel
|
|
||||||
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 *
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,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
|
||||||
|
|||||||
Reference in New Issue
Block a user