Skip to content

Commit 5092e92

Browse files
committed
adding some helpful make commands to streamline publishing the sandbox image and deploying the spec to the sandbox instance
1 parent 3f9a8eb commit 5092e92

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

sandbox/Makefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,35 @@ list:
88
build:
99
docker compose -f docker-compose.yaml build
1010

11+
tag-service-image:
12+
$(eval IMAGE_ID=$(shell docker images -q sandbox-combined-service:latest))
13+
@if [ -z "$(IMAGE_ID)" ]; then \
14+
echo "ERROR: No image ID found for sandbox-combined-service:latest. Did you build it?"; \
15+
exit 1; \
16+
fi
17+
docker tag $(IMAGE_ID) 958002497996.dkr.ecr.eu-west-2.amazonaws.com/eligibility-signposting-api:latest
18+
@echo "Tagged image $(IMAGE_ID) as 958002497996.dkr.ecr.eu-west-2.amazonaws.com/eligibility-signposting-api:latest"
19+
20+
build-and-tag:
21+
make build
22+
make tag-service-image
23+
24+
proxygen-docker-login: # Login to Proxygen Docker registry
25+
make -C .. setup-proxygen-credentials
26+
proxygen docker get-login | bash
27+
28+
publish-to-docker-repo:
29+
proxygen-docker-login
30+
docker push 958002497996.dkr.ecr.eu-west-2.amazonaws.com/eligibility-signposting-api:latest
31+
32+
build-and-publish-sandbox-image:
33+
make build-and-tag
34+
make publish-to-docker-repo
35+
36+
deploy-sandbox-spec:
37+
make -C .. construct-spec APIM_ENV=sandbox
38+
proxygen instance deploy sandbox eligibility-signposting-api ./build/specification/sandbox/eligibility-signposting-api.yaml
39+
1140
up: build
1241
docker compose -f docker-compose.yaml up -d
1342

0 commit comments

Comments
 (0)