OSDN Git Service

fbe66664396986cb1e8f4b315dd0b662bb544e23
[bytom/vapor.git] / docker / vapord / README.md
1 # quick start
2
3 execute deploy.sh at the root of vapor repo
4
5 ## usage
6
7 ```bash
8 bash deploy.sh --help
9 ```
10
11 ## build and run a 2-node vapor nodes
12
13 ```bash
14 bash deploy.sh --scale=2
15 ```
16
17 ## list available node images and public keys
18
19 ```bash
20 bash deploy.sh --list
21 ```
22
23 ## remove all node images
24
25 ```bash
26 bash deploy.sh --rm-all
27 ```
28
29 ## remove 2 images
30
31 ```bash
32 bash deploy.sh --rm=vapord_test-ade32,vapord_test-342de
33 ```
34
35 ## build 2 vapord images (build only)
36
37 ```bash
38 bash deploy.sh --build=2
39 ```
40
41 ## run 2 vapor nodes from existing images
42
43 ```bash
44 bash deploy.sh --run=vapord_test-ade32,vapord_test-342de
45 ```
46
47 ## run vapor node from all existing images
48
49 ```bash
50 bash deploy.sh --run-all
51 ```
52
53 ## bring down running nodes
54
55 ```bash
56 bash deploy.sh --down
57 ```
58
59 ## node naming
60
61 * id: first 5 chars of public key
62 * node_name : vapord-${id}
63 * image name: vapord_test-${id}:latest
64 * wallet port : start from 9889, and increases by 1 every time a new node image is created.
65 * log location: ~/vapord/log/${node_name}
66 * docker-compose.yml location: ~/vapord/docker-compose.yml