Skip to content

Commit

Permalink
Merge pull request #2 from iot-block/kobit
Browse files Browse the repository at this point in the history
v1.0.0
  • Loading branch information
leasontou authored Jul 19, 2019
2 parents 6488810 + c7d940d commit cfc6667
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
29 changes: 23 additions & 6 deletions docs/src/main/tut/guides/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $ bin/build.sh
```

in `app/jvm/target/universal/stage/bin`, we get 4 program
```
```bash
app-main: node
cli-main: a commod line connect to node
network-builder-main: build testnet config in ~/.jbok, follow config doc to build configs.
Expand Down Expand Up @@ -79,14 +79,23 @@ modify `~/.jbok/node-$#/config.yaml` to change node config.
- Docker
- Docker-Compose

And before deploying, you need a keystore file.
#### Install Docker & Docker-Compose
```bash
$ yum install docker -y
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ service docker start
$ chkconfig docker on
```

Before deploying, we need a keystore file.

- Keystore file.

You can create your account using our [Wallet App](https://iotchain.io/wallet), export the keystore from app.


There are 2 ways to deploy MainNet Node:
We have 2 ways to deploy mainnet Node:

- deploy with docker
- deploy with docker-compose.
Expand Down Expand Up @@ -132,12 +141,20 @@ Docker-Compose will running prometheus for node metrics, and you can monitor thi
3. upload file `config.yaml` to `/iotchain/etc/iotchain/config.yaml`
4. upload `etc/grafana`, `etc/mysql`, `etc/prometheus` to `/iotchain/etc/grafana`, `/iotchain/etc/mysql`, `/iotchain/etc/prometheus`.
5. run docker-compose.
```bash
$ docker-compose up -d
```
Open `http://yourip:3000`, monitoring node state.
6. stop docker-compose
6. monitor
```
open http://<yourIp>:3000,
login with admin/admin,
monitoring node state in grafana.
```
7. stop docker-compose
```bash
$ docker-compose stop
```
2 changes: 1 addition & 1 deletion project/DockerSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import sbt.Keys._
object DockerSettings {
val settings = Seq(
packageName in Docker := "iotchain/"+Settings.projectName,
version in Docker := "0.0.2beta",
version in Docker := "v1.0.0",
dockerCommands := Seq(
Cmd("FROM", "openjdk:8-jre"),
Cmd("RUN", "groupadd -r iotchain && useradd -r -g iotchain iotchain"),
Expand Down

0 comments on commit cfc6667

Please sign in to comment.