-
Notifications
You must be signed in to change notification settings - Fork 204
/
Makefile
44 lines (43 loc) · 1.71 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
36
37
38
39
40
41
42
43
44
IMAGES:=divoc/gateway divoc/portal_api divoc/registration_api divoc/vaccination_api divoc/certificate_processor divoc/analytics_feed divoc/notification-service divoc/digilocker_support_api divoc/certificate_signer divoc/test_certificate_signer divoc/registry-es divoc/keycloak divoc/certificate_api
VC_IMAGES:=divoc/vc-management-service divoc/vc-certification-service divoc/vc-certify-consumer divoc/vc-verification-webapp
ifeq ($(RELEASE_VERSION), )
RELEASE_VERSION := 3.1.0-generic
endif
$(info RELEASE VERSION $(RELEASE_VERSION))
docker:
@CERTIFICATE_NAMESPACE="https://cowin.gov.in/credentials/vaccination/v1" \
CERTIFICATE_NAMESPACE_V2="https://cowin.gov.in/credentials/vaccination/v2" \
CERTIFICATE_CONTROLLER_ID="https://cowin.gov.in/" \
CERTIFICATE_PUBKEY_ID="https://example.com/i/india" \
CERTIFICATE_DID="did:india" \
docker build -t divoc/gateway .
$(MAKE) -C keycloak-mobile-number-login-spi
$(MAKE) -C keycloak
$(MAKE) -C backend
$(MAKE) -C registry
$(MAKE) -C verification-app
$(MAKE) -C tenant-portal
test:
echo "Starting services in e2e testing mode"
docker-compose -f docker-compose.yml -f docker-compose.e2e.yml --env-file .env.example up -d
docker logs -f e2e_test
bash ./e2e/e2e_test_spy.sh
docker rm e2e_test
run:
docker-compose --env-file .env.example up -d
publish:
for fl in $(IMAGES); do echo $$fl; docker push $$fl; done
release:
for fl in $(IMAGES); do\
echo $$fl;\
docker tag $$fl:latest $$fl:$(RELEASE_VERSION);\
docker push $$fl:$(RELEASE_VERSION);\
done
vc-publish:
for fl in $(VC_IMAGES); do echo $$fl; docker push $$fl; done
vc-release:
for fl in $(VC_IMAGES); do\
echo $$fl;\
docker tag $$fl:latest $$fl:$(RELEASE_VERSION);\
docker push $$fl:$(RELEASE_VERSION);\
done