mirror of
https://github.com/oceanprotocol/barge.git
synced 2024-12-02 05:57:21 +01:00
Merge branch 'develop' of https://github.com/oceanprotocol/docker-images into secret-store-api-cors-proxy
This commit is contained in:
commit
973654a648
63
README.md
63
README.md
@ -53,13 +53,11 @@ To get the `latest` versions of all components, referring to their `develop` bra
|
|||||||
|
|
||||||
After getting everything running, you can open the **Pleuston Frontend** application in your browser:
|
After getting everything running, you can open the **Pleuston Frontend** application in your browser:
|
||||||
|
|
||||||
```
|
[http://localhost:3000](http://localhost:3000)
|
||||||
http://localhost:3000
|
|
||||||
```
|
|
||||||
|
|
||||||
### Script Options
|
### Script Options
|
||||||
|
|
||||||
The script provides the following options:
|
The `start_ocean.sh` script provides the following options:
|
||||||
|
|
||||||
Option | Description
|
Option | Description
|
||||||
--- | ---
|
--- | ---
|
||||||
@ -68,20 +66,50 @@ Option | Description
|
|||||||
`--local-parity-node` | Runs a local parity POA node and Secret Store instead of ganache-cli.
|
`--local-parity-node` | Runs a local parity POA node and Secret Store instead of ganache-cli.
|
||||||
`--reuse-database` | Start up Ocean and reuse the Database from ganache. Helpful for development.
|
`--reuse-database` | Start up Ocean and reuse the Database from ganache. Helpful for development.
|
||||||
|
|
||||||
For example, the following command would run the latest version of the stack, without Pleuston and with the Parity + Secret Store nodes:
|
For example, if you do:
|
||||||
|
|
||||||
`./start_ocean.sh --latest --no-pleuston --local-parity-node`
|
```bash
|
||||||
|
./start_ocean.sh --latest
|
||||||
|
```
|
||||||
|
|
||||||
## Ocean Protocol components
|
then the main/default [docker-compose.yml](docker-compose.yml) will be used, so the following Docker images will all be started:
|
||||||
|
|
||||||
The Ocean Docker compose starts the following components:
|
- mongo:3.6
|
||||||
|
- oceanprotocol/keeper-contracts:latest
|
||||||
|
- oceanprotocol/aquarius:latest
|
||||||
|
- oceanprotocol/brizo:latest
|
||||||
|
- oceanprotocol/pleuston:latest
|
||||||
|
|
||||||
* [🦄 pleuston](https://github.com/oceanprotocol/pleuston). Frontend listening on port `3000`.
|
To see what ports each of those listens on, read [docker-compose.yml](docker-compose.yml). Note that `keeper-contracts` runs a local Ganache node (not a local Parity Ethereum POA node).
|
||||||
* [🐋 aquarius](https://github.com/oceanprotocol/aquarius). Backend listening on port `5000`.
|
|
||||||
* [💧 keeper-contracts](https://github.com/oceanprotocol/keeper-contracts). RPC client listening on port `8545`.
|
|
||||||
* [💧 secret-store](https://github.com/oceanprotocol/parity-ethereum). HTTP client listening on port `12001`.
|
|
||||||
|
|
||||||

|
If you do:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./start_ocean.sh --no-pleuston
|
||||||
|
```
|
||||||
|
|
||||||
|
then [docker-compose-no-pleuston.yml](docker-compose-no-pleuston.yml) will be used, so these images will be started:
|
||||||
|
|
||||||
|
- mongo:3.6
|
||||||
|
- oceanprotocol/keeper-contracts:stable
|
||||||
|
- oceanprotocol/aquarius:stable
|
||||||
|
- oceanprotocol/brizo:stable
|
||||||
|
|
||||||
|
If you do:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./start_ocean.sh --latest --local-parity-node
|
||||||
|
```
|
||||||
|
|
||||||
|
then [docker-compose-local-parity-node.yml](docker-compose-local-parity-node.yml) will be used. Read it to see what images it starts. Note that it _doesn't_ start Pleuston, and it _does_ start a Parity Secret Store.
|
||||||
|
|
||||||
|
If you do:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./start_ocean.sh --latest --no-pleuston --local-parity-node
|
||||||
|
```
|
||||||
|
|
||||||
|
then the last-selected Docker Compose file will be used, i.e. the one selected by `--local-parity-node`: [docker-compose-local-parity-node.yml](docker-compose-local-parity-node.yml).
|
||||||
|
|
||||||
### Parity Client Accounts
|
### Parity Client Accounts
|
||||||
|
|
||||||
@ -109,13 +137,6 @@ Variable | Description
|
|||||||
`KEEPER_NETWORK_NAME` | set to one of `"ganache"` (default), `"kovan"`, or `"ocean_poa_net_local"`
|
`KEEPER_NETWORK_NAME` | set to one of `"ganache"` (default), `"kovan"`, or `"ocean_poa_net_local"`
|
||||||
`ARTIFACTS_FOLDER` | this is where the deployed smart contracts abi files will be available. This can be pointed at any path you like.
|
`ARTIFACTS_FOLDER` | this is where the deployed smart contracts abi files will be available. This can be pointed at any path you like.
|
||||||
|
|
||||||
A subset of the components can be run by modifying the docker-compose file directly or by using one of the other pre-built compose files:
|
|
||||||
|
|
||||||
Compose file | Description
|
|
||||||
--- | ---
|
|
||||||
`docker-compose-no-pleuston.yml` | runs all components without the pleuston. This is useful for developing/debugging the front-end app. So first the docker compose container can be started then pleuston can be started separately from source. You can also use `./start_ocean.sh --no-pleuston` to do this
|
|
||||||
`docker-compose-local-parity-node.yml` | similar to the above with no pleuston, but runs a local parity POA node instead of ganache-cli. You can also use `./start_ocean.sh --local-parity-node` instead
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
We use GitHub as a means for maintaining and tracking issues and source code development.
|
We use GitHub as a means for maintaining and tracking issues and source code development.
|
||||||
@ -126,7 +147,7 @@ Ocean Protocol uses [C4 Standard process](https://github.com/unprotocols/rfc/blo
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
```
|
```text
|
||||||
Copyright 2018 Ocean Protocol Foundation
|
Copyright 2018 Ocean Protocol Foundation
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
@ -54,7 +54,7 @@ services:
|
|||||||
KEEPER_URL: http://keeper-contracts:8545
|
KEEPER_URL: http://keeper-contracts:8545
|
||||||
LOCAL_CONTRACTS: "true"
|
LOCAL_CONTRACTS: "true"
|
||||||
volumes:
|
volumes:
|
||||||
- ${ARTIFACTS_FOLDER}:/usr/local/keeper-contracs/:ro
|
- ${ARTIFACTS_FOLDER}:/usr/local/keeper-contracts/:ro
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
backend:
|
backend:
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
"params": {
|
"params": {
|
||||||
"maximumExtraDataSize": "0x20",
|
"maximumExtraDataSize": "0x20",
|
||||||
"minGasLimit": "0x1388",
|
"minGasLimit": "0x1388",
|
||||||
"networkID": "0x2323",
|
"networkID": "0x2324",
|
||||||
"gasLimitBoundDivisor": "0x400",
|
"gasLimitBoundDivisor": "0x400",
|
||||||
"eip140Transition": 0,
|
"eip140Transition": 0,
|
||||||
"eip211Transition": 0,
|
"eip211Transition": 0,
|
||||||
@ -88,19 +88,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"0x6B0c56d1Ad5144b4d37fa6e27DC9afd5C2435c3B": {
|
"0x6B0c56d1Ad5144b4d37fa6e27DC9afd5C2435c3B": {
|
||||||
"balance": "1000"
|
"balance": "0x200000000000000000000000000000000000000000000000"
|
||||||
},
|
},
|
||||||
"0x0011598De1016A350ad719D23586273804076774": {
|
"0x0011598De1016A350ad719D23586273804076774": {
|
||||||
"balance": "100500"
|
"balance": "0x200000000000000000000000000000000000000000000000"
|
||||||
},
|
},
|
||||||
"0x068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0": {
|
"0x068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0": {
|
||||||
"balance": "100000000"
|
"balance": "0x200000000000000000000000000000000000000000000000"
|
||||||
},
|
},
|
||||||
"0xa99d43d86a0758d5632313b8fa3972b6088a21bb": {
|
"0xa99d43d86a0758d5632313b8fa3972b6088a21bb": {
|
||||||
"balance": "100000000"
|
"balance": "0x200000000000000000000000000000000000000000000000"
|
||||||
},
|
},
|
||||||
"0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e": {
|
"0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e": {
|
||||||
"balance": "10000000111000111000111000"
|
"balance": "0x200000000000000000000000000000000000000000000000"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -20,7 +20,7 @@
|
|||||||
"params": {
|
"params": {
|
||||||
"maximumExtraDataSize": "0x20",
|
"maximumExtraDataSize": "0x20",
|
||||||
"minGasLimit": "0x1388",
|
"minGasLimit": "0x1388",
|
||||||
"networkID": "0x2323",
|
"networkID": "0x2324",
|
||||||
"gasLimitBoundDivisor": "0x400",
|
"gasLimitBoundDivisor": "0x400",
|
||||||
"eip140Transition": 0,
|
"eip140Transition": 0,
|
||||||
"eip211Transition": 0,
|
"eip211Transition": 0,
|
||||||
@ -88,19 +88,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"0x6B0c56d1Ad5144b4d37fa6e27DC9afd5C2435c3B": {
|
"0x6B0c56d1Ad5144b4d37fa6e27DC9afd5C2435c3B": {
|
||||||
"balance": "1000"
|
"balance": "0x200000000000000000000000000000000000000000000000"
|
||||||
},
|
},
|
||||||
"0x0011598De1016A350ad719D23586273804076774": {
|
"0x0011598De1016A350ad719D23586273804076774": {
|
||||||
"balance": "100500"
|
"balance": "0x200000000000000000000000000000000000000000000000"
|
||||||
},
|
},
|
||||||
"0x068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0": {
|
"0x068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0": {
|
||||||
"balance": "100000000"
|
"balance": "0x200000000000000000000000000000000000000000000000"
|
||||||
},
|
},
|
||||||
"0xa99d43d86a0758d5632313b8fa3972b6088a21bb": {
|
"0xa99d43d86a0758d5632313b8fa3972b6088a21bb": {
|
||||||
"balance": "100000000"
|
"balance": "0x200000000000000000000000000000000000000000000000"
|
||||||
},
|
},
|
||||||
"0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e": {
|
"0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e": {
|
||||||
"balance": "10000000111000111000111000"
|
"balance": "0x200000000000000000000000000000000000000000000000"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user