-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
55 lines (40 loc) · 1.66 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
45
46
47
48
49
50
51
52
53
54
55
SHELL := /bin/bash -euo pipefail
.PHONY: test
## ----------------------------------------------------------------------
## Makefile to run terragrunt commands to setup nodes for polkadot
## ----------------------------------------------------------------------
help: ## Show this help.
@sed -ne '/@sed/!s/## //p' $(MAKEFILE_LIST)
install-deps-ubuntu: ## Install basics to run node on mac - developers should do it manually
./scripts/install-deps-ubuntu.sh
install-deps-mac: ## Install basics to run node on ubuntu - developers should do it manually
./scripts/install-deps-brew.sh
configs-prompt: ## Prompt user to enter values into configs
cookiecutter .
configs: ## No input generation of config files from config.yaml
cookiecutter . --config-file=config.yaml --no-input
clear-cache: ## Clear the cache of files left by terragrunt
find . -type d -name ".terragrunt-cache" -prune -exec rm -rf {} \; && \
find . -type d -name ".terraform" -prune -exec rm -rf {} \;
#####################
# terragrunt commands
#####################
tg_cmd = terragrunt $(1) --terragrunt-source-update --auto-approve --terragrunt-non-interactive --terragrunt-working-dir $(2)
apply-all-aws:
$(call tg_cmd,apply-all,polkadot/aws)
destroy-all-aws:
$(call tg_cmd,destroy-all,polkadot/aws)
test-aws:
go test ./polkadot/aws/test -v -timeout 15m
apply-packet:
$(call tg_cmd,apply-all,polkadot/packet)
destroy-packet:
$(call tg_cmd,destroy-all,polkadot/packet)
test-packet:
go test ./polkadot/packet/test -v -timeout 15m
##################
# meta git actions
##################
clone-all: ## Clones all the sub repos
meta git clone .; \
python scripts/subdir_cmd.py clone_all