-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 loc) · 1.02 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
PWD = $(shell pwd)
NS = bitcoin-node-local
.PHONY: check-env
check-env:
source .env && env | grep NETWORK
# source .env && ./scripts/env.sh
.PHONY: build-images
build-images:
@echo "Building images..."
cd docker && docker compose build
install-local-ingress:
helm upgrade --install ingress-nginx ingress-nginx \
--repo https://kubernetes.github.io/ingress-nginx \
--namespace ingress-nginx --create-namespace
deploy-local-regtest:
helm -n $(NS) upgrade regtest ./charts/bitcoin-node \
--install \
--values ./charts/local-regtest-values.yaml \
--create-namespace
delete-local-regtest:
helm -n $(NS) uninstall regtest
deploy-local-testnet3:
helm -n $(NS) upgrade testnet3 ./charts/bitcoin-node \
--install \
--values ./charts/local-testnet3-values.yaml \
--create-namespace
template-local-regtest:
helm -n $(NS) template regtest ./charts/bitcoin-node --values ./charts/local-regtest-values.yaml > template.yaml
debug-local-regtest:
kubectl run -n $(NS) -i --tty --rm debug --image=curlimages/curl --restart=Never -- sh