-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmakefile
84 lines (72 loc) · 1.33 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
reset:
cargo clean
test:
cargo +nightly test
test-mod:
cargo +nightly test -p $(mod)
# release
build:
cargo +nightly build --release
run:
./target/release/subzero --tmp --name local-node
purge:
./target/release/subzero purge-chain -y
# dev
dev-build:
cargo +nightly build
dev-run:
./target/release/subzero --tmp --dev --name local-dev-node
dev-purge:
./target/release/subzero purge-chain -y --dev
# docker
docker-build:
docker build -t playzero/subzero:local .
docker-run:
docker run \
-p 9933:9933 \
-p 9944:9944 \
-p 30333:30333 \
playzero/subzero:local \
/usr/local/bin/subzero \
--dev --name hello-joy \
--ws-external \
--rpc-external \
--rpc-cors all \
--rpc-methods unsafe
docker-release:
# TODO:
# 1 bump versions of
# cli
# runtime
# node
# 2 build local
# 3 build docker
# 4 tag docker
# 5 push docker tag + latest
docker-run-local:
docker run \
-p 9933:9933 \
-p 9944:9944 \
-p 30333:30333 \
playzero/subzero:local \
/usr/local/bin/subzero \
--dev \
--tmp \
--name hello-joy \
--ws-external \
--rpc-external \
--rpc-cors all \
--rpc-methods unsafe
docker-run-latest:
docker run \
-p 9933:9933 \
-p 9944:9944 \
-p 30333:30333 \
playzero/subzero:latest \
/usr/local/bin/subzero \
--dev \
--name hello-joy \
--ws-external \
--rpc-external \
--rpc-cors all \
--rpc-methods unsafe