-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmakefile
108 lines (88 loc) · 2.1 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
run-local-node:
./target/release/subzero \
--name=level-9000
--rpc-cors=all \
--unsafe-rpc-external \
--chain=./bin/res/subzero-kusama-raw.json \
--sync=fast \
--state-pruning=256 \
--telemetry-url="wss://telemetry.polkadot.io/submit/ 0" \
--base-path=./.tmp/local/para \
-- \
--base-path=./.tmp/local/relay \
--sync=fast \
--state-pruning=256
# alphaville
alphaville-docker:
docker build -t playzero/alphaville:local -f .docker/alphaville.Dockerfile .
alphaville-run:
docker run \
-p 9933:9933 -p 9944:9944 -p 30333:30333 \
playzero/alphaville:local /usr/local/bin/alphaville \
--dev --name alphaville --ws-external \
--rpc-external --rpc-cors all --rpc-methods unsafe
# build subzero-dev docker
docker-build-dev:
docker build -t playzero/subzero-dev:local -f .docker/subzero-dev.Dockerfile .
#
#
reset:
cargo clean
test:
cargo +nightly test -p gamedao-signal -p gamedao-control -p gamedao-flow -p gamedao-sense -p gamedao-battlepass
test-mod:
cargo +nightly test -p $(mod)
# release
build:
cargo 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 -f .docker/subzero.Dockerfile .
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-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
testnet:
docker-compose -f .docker/local-test-network/docker-compose.yml up