-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As new lib imported, there's problem by rebuilding images. In this patchset, we add new image-clean scripts and re-org the scripts and docs, to make the setup much easier to follow. Change-Id: I4a9ba38546b0965902019f899974fd5f2772d09b Signed-off-by: Baohua Yang <yangbaohua@gmail.com>
- Loading branch information
Showing
31 changed files
with
452 additions
and
343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
## Master Node Setup | ||
The Master Node includes several services: | ||
|
||
* dashboard: Provide Web UI for operators. | ||
* restserver: Provide RESTful APIs for chain consumers. | ||
* watchdog: Watch for health checking. | ||
|
||
*More details can be found at the [architecture doc](docs/arch.md).* | ||
|
||
It can be deployed by in 2 steps. | ||
|
||
* Clone code | ||
* Run setup script | ||
|
||
### System Requirement | ||
* Hardware: 8c16g100g | ||
* Docker engine: 1.10.0~1.13.0 (Docker 17.0+ support is experimental) | ||
* docker-compose: 1.8.0~1.12.0 | ||
|
||
### Clone Code | ||
|
||
You may check `git` and `make` are installed to clone the code. | ||
|
||
```sh | ||
$ sudo aptitude install git make -y | ||
$ git clone http://gerrit.hyperledger.org/r/cello && cd cello | ||
``` | ||
|
||
### Run Setup | ||
|
||
For the first time running, please setup the master node with the [setup.sh](https://github.com/hyperledger/cello/blob/master/scripts/setup.sh). | ||
|
||
```sh | ||
$ make setup-master | ||
``` | ||
|
||
Make sure there is no error during the setup. Otherwise, please check the log msgs. | ||
|
||
### Usage | ||
|
||
#### Start/Stop/Restart | ||
To start the whole services, please run | ||
|
||
```sh | ||
$ make start | ||
``` | ||
|
||
To stop or restart the whole services, run `make stop` or `make restart`. | ||
|
||
#### Redploy a service | ||
To redeploy one specific service, e.g., dashboard, please run | ||
|
||
```sh | ||
$ make redeploy service=dashboard | ||
``` | ||
|
||
#### Check Logs | ||
To check the logs for all the services, please run | ||
|
||
```sh | ||
$ make logs | ||
``` | ||
|
||
To check the logs for one specific service, please run | ||
```sh | ||
$ make log service=watchdog | ||
``` | ||
|
||
Now you can access the `MASTER_NODE_IP:8080` to open the Web-based [operational dashboard](docs/dashboard.md). | ||
|
||
|
||
### Configuration | ||
The application configuration can be imported from file named `CELLO_CONFIG_FILE`. | ||
|
||
By default, it also loads the `config.py` file as the configurations. | ||
|
||
### Data Storage | ||
The mongo container will use local `/opt/cello/mongo` directory for persistent storage. | ||
|
||
Please keep it safe by backups or using more high-available solutions. |
Oops, something went wrong.