Skip to content

Commit

Permalink
Update makefile with runtask for stage
Browse files Browse the repository at this point in the history
This commit updates the makefile with a new command - "run-stage"
Run-stage is outputted by the terraform used to create the infrastructure and copy/pasted here for connivence.
Calling run-stage will execute the latest version of the container in the stage environment using the MITVPC.
  • Loading branch information
zotoMIT committed Oct 8, 2021
1 parent c2cddef commit dacbcbd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ publish: dist ## Build, tag and push
docker push $(ECR_REGISTRY)/dspacesubmissionservice-stage:latest
docker push $(ECR_REGISTRY)/dspacesubmissionservice-stage:`git describe --always`

run-stage:
aws ecs run-task --cluster dspacesubmissionservice-stage --task-definition dspacesubmissionservice-stage --network-configuration "awsvpcConfiguration={subnets=[subnet-0744a5c9beeb49a20],securityGroups=[sg-06b90b77a06e5870a],assignPublicIp=DISABLED}" --launch-type FARGATE --region us-east-1

lint: bandit black flake8 isort ## Runs all linters

bandit: ## Security oriented static analyser for python code
Expand Down

0 comments on commit dacbcbd

Please sign in to comment.