forked from egovernments/DIVOC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (29 loc) · 1.17 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
IMAGES:=dockerhub/nginx dockerhub/portal_api dockerhub/registration_api dockerhub/vaccination_api dockerhub/certificate_processor dockerhub/analytics_feed dockerhub/notification-service dockerhub/digilocker_support_api dockerhub/certificate_signer dockerhub/test_certificate_signer dockerhub/registry-es dockerhub/keycloak dockerhub/certificate_api
ifeq ($(RELEASE_VERSION), )
RELEASE_VERSION := 1.23.3-generic
endif
$(info RELEASE VERSION $(RELEASE_VERSION))
docker:
@CERTIFICATE_NAMESPACE="https://cowin.gov.in/credentials/vaccination/v1" \
CERTIFICATE_CONTROLLER_ID="https://cowin.gov.in/" \
CERTIFICATE_PUBKEY_ID="https://example.com/i/india" \
CERTIFICATE_DID="did:india" \
docker build -t dockerhub/nginx .
$(MAKE) -C backend
$(MAKE) -C registry
test:
echo "Starting services in e2e testing mode"
docker-compose -f docker-compose.yml -f docker-compose.e2e.yml up -d
docker logs -f e2e_test
bash ./e2e/e2e_test_spy.sh
docker rm e2e_test
run:
docker-compose 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