-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
30 lines (24 loc) · 1.27 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
.PHONY: clean
log_level ?= "info"
# Build ethereum-testnet-bootstrapper image
build-bootstrapper:
docker build -t ethereum-testnet-bootstrapper -f bootstrapper.Dockerfile .
rebuild-bootstrapper:
docker build --no-cache -t ethereum-testnet-bootstrapper -f bootstrapper.Dockerfile .
# Build the etb-all-clients images:
build-client-images:
cd deps/dockers && ./build-dockers.sh
# a rebuild uses --no-cache in the docker build step.
rebuild-client-images:
cd deps/dockers && REBUILD_IMAGES=1 ./build-dockers.sh
build-all-images: build-bootstrapper build-client-images
rebuild-all-images: rebuild-bootstrapper rebuild-client-images
# init the testnet dirs and all files needed to later bootstrap the testnet.
init-testnet:
docker run -it -v $(shell pwd)/:/source/ -v $(shell pwd)/data/:/data ethereum-testnet-bootstrapper --config $(config) --init-testnet --log-level $(log_level)
# after an init this runs the bootstrapper and start up the testnet.
run-bootstrapper:
docker run -it -v $(shell pwd)/:/source/ -v $(shell pwd)/data/:/data ethereum-testnet-bootstrapper --config $(config) --bootstrap-testnet --log-level $(log_level)
# remove last run.
clean:
docker run -t -v $(shell pwd)/:/source/ -v $(shell pwd)/data/:/data ethereum-testnet-bootstrapper --clean --log-level $(log_level)