@@ -14,6 +14,9 @@ docs-build: docs-install
1414docs-run : docs-build
1515 cd docs; npm run dev
1616
17+ local-grafana :
18+ docker run -d -p 3000:3000 mirror.gcr.io/grafana/grafana:latest
19+
1720# Test Commands
1821unittest :
1922 pipenv run pytest -m ' not integration' tests/src tests/publisher
3336# Infrastructure Commands
3437build-python :
3538 pipenv requirements | tee requirements.txt
36- rsync -avu $(shell pwd) /src $(shell pwd) /infrastructure/all_files
37- pip install -r requirements.txt --target=$(shell pwd) /infrastructure/all_files
38- pip install boto3 --target=$(shell pwd) /infrastructure/api_key_rotation
39+ rsync -avu $(shell pwd) /src $(shell pwd) /infrastructure/aws/all_files
40+ pip install -r requirements.txt --target=$(shell pwd) /infrastructure/aws/all_files
41+ pip install boto3 --target=$(shell pwd) /infrastructure/aws/api_key_rotation
42+ cd infrastructure/aws; cdktf provider add grafana/grafana
43+ cd infrastructure/gcp; cdktf provider add grafana/grafana
3944
4045clean :
41- cd infrastructure; rm -rf cdktf.out
46+ cd infrastructure/aws; rm -rf cdktf.out
47+ cd infrastructure/gcp; rm -rf cdktf.out
4248
43- synth-core :
44- cd infrastructure; cdktf synth infra_tf_cdk
49+ synth-aws :
50+ cd infrastructure/aws ; cdktf synth aws_infra_cdktf
4551
4652synth-grafana :
47- cd infrastructure; cdktf synth grafana
53+ cd infrastructure/aws; cdktf synth grafana
54+
55+ synth-gcp :
56+ cd infrastructure/gcp; cdktf provider add grafana/grafana
57+ cd infrastructure/gcp; cdktf synth base_gcp_infra
58+ cd infrastructure/gcp; cdktf synth main_gcp_infra
4859
49- synth : synth-core synth-grafana
60+ synth : synth-aws synth-grafana synth-gcp
5061
5162build : build-python synth
5263
53- plan-core :
54- cd infrastructure; cdktf plan infra_tf_cdk
64+ plan-aws :
65+ cd infrastructure/aws ; cdktf plan aws_infra_cdktf
5566
5667plan-grafana :
57- cd infrastructure; cdktf plan grafana
68+ cd infrastructure/aws; cdktf plan grafana
69+
70+ plan-gcp :
71+ cd infrastructure/gcp; cdktf plan base_gcp_infra main_gcp_infra
72+
73+ plan-gcp-grafana :
74+ cd infrastructure/gcp; cdktf plan grafana
75+
76+ plan : build-python plan-aws plan-grafana plan-gcp
5877
59- plan : build-python plan-core plan-grafana
78+ plan-gcpstack : plan-gcp plan-grafana
6079
61- deploy : build-python
62- cd infrastructure; cdktf deploy infra_tf_cdk grafana --auto-approve
80+ deploy :
81+ cd infrastructure/aws ; cdktf deploy aws_infra_cdktf grafana --auto-approve
6382
64- destroy-core :
65- cd infrastructure; cdktf destroy infra_tf_cdk
83+ destroy-aws :
84+ cd infrastructure/aws ; cdktf destroy aws_infra_cdktf
6685
6786destroy-grafana :
68- cd infrastructure; cdktf destroy grafana
87+ cd infrastructure/aws ; cdktf destroy grafana
6988
7089destroy : destroy-core destroy-grafana
90+
91+ deploy-base-gcp :
92+ cd infrastructure/gcp; cdktf deploy base_gcp_infra --auto-approve
93+
94+ deploy-main-gcp :
95+ cd infrastructure/gcp; cdktf deploy base_gcp_infra main_gcp_infra --auto-approve
96+
97+ build-image :
98+ gcloud auth configure-docker australia-southeast1-docker.pkg.dev
99+ pipenv requirements | tee requirements.txt
100+ docker buildx build --platform=linux/amd64 --push . -t australia-southeast1-docker.pkg.dev/contino-squad0-fc/flight-contoller-event-receiver/event_receiver:latest
0 commit comments