-
Notifications
You must be signed in to change notification settings - Fork 27
/
makefile
36 lines (32 loc) · 1.23 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
TAG := 2.9.7
TOOLS_IMAGE := ministryofjustice/cloud-platform-tools
TEST_IMAGE := ministryofjustice/cloud-platform-infrastructure
tools-shell:
docker pull --platform=linux/amd64 $(TOOLS_IMAGE):$(TAG)
docker run --platform=linux/amd64 --rm -it \
-e AWS_PROFILE=$${AWS_PROFILE} \
-e AUTH0_DOMAIN=$${AUTH0_DOMAIN} \
-e AUTH0_CLIENT_ID=$${AUTH0_CLIENT_ID} \
-e AUTH0_CLIENT_SECRET=$${AUTH0_CLIENT_SECRET} \
-e KOPS_STATE_STORE=$${KOPS_STATE_STORE} \
-v $$(pwd):/app \
-v $${HOME}/.aws:/root/.aws \
-v $${HOME}/.gnupg:/root/.gnupg \
-v $${HOME}/.docker:/root/.docker \
-w /app \
$(TOOLS_IMAGE):$(TAG) bash
# For CP team-members. List all the clusters which currently exist
list-clusters:
@echo
aws eks list-clusters --region=eu-west-2
run-tests:
docker pull --platform=linux/amd64 $(TEST_IMAGE):$(TAG)
docker run --platform=linux/amd64 --rm -it \
-e AWS_PROFILE=$${AWS_PROFILE} \
-v $$(pwd):/app \
-v $${HOME}/.aws:/root/.aws \
-v $${HOME}/.kube:/root/.kube \
-v $${HOME}/.gnupg:/root/.gnupg \
-v $${HOME}/.docker:/root/.docker \
-w /app \
$(TEST_IMAGE):$(TAG) bash -c "cd test && ginkgo -v . -args -ginkgo.randomizeAllSpecs -ginkgo.progress -ginkgo.noisySkippings -test.v -ginkgo.slowSpecThreshold=120"