-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/kovan parity #57
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have some documentation about how to use this option as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me. Because adding this change, to deploy in kovan/test net require to unlock the address, can you add some info about how the users should unlock their accounts?
Co-Authored-By: jcortejoso <[email protected]>
README.md
Outdated
then `docker-compose-only-parity.yml` Docker Compose file will be used. It will start only one container (`oceanprotocol/parity-ethereum:master`) that will connect to the Kovan testnet network. The parity client is configure to allow connections with the RPC interface. With this option, you must place in `./parity/kovan/account.json` your account json and in `./parity/kovan/password` a file with the account passsword (default locations). Also you must export the variable `UNLOCK_ADDRESS` with the account address of this account. For example: | ||
|
||
```bash | ||
export UNLOCK_ADDRESS="0x00bd138abd70e2f00903268f3db08f2d25677c9e" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should use an nmemoric for this instead of private key / address / password combination
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, any recommendation?
|
Co-Authored-By: jcortejoso <[email protected]>
@H34D not sure if we should include logic about compatibility of option, but in that case But the message is not correct. Thanks! |
We should never run nodes (to persistent blockchains) with unlocked account. I also don't see the need to have unlocked accounts anyway. There are a few stages:
Prosal:
|
@jcortejoso but why? there is no need for this dependency other than they are in two different compose files. I can start the whole infrastructure without |
@H34D the idea about having unlock (locally) an account was to avoid the way we were deploying currently the contracts. Using keeper-contracts locally to connect directly to the container so we do not need to connect to a remote node with an account unlocked. But if there is a better approach to this we can change it. |
yes but this is only needed for local deployments ( |
@H34D about he compatibility of the compose files, the result of running |
we should declare poa network or kovan to the default and remove the migration part completely from docker. Development stage is an edge case, not the default. |
@H34D good, I change the unlock part. |
can we do something like a plugin system where we keep a base and plug the nodes to it like What i can define so far is:
|
i tried that out and it works, giving me the following diagram. All of the stacks can be started individually: this will give the flexibility to start in whatever combination we want combined to full flexibility of node setup, blockchain node could be ganache or mainnet, doesn't matter as long it is exposing port |
maybe lets describe all components i am starting with all permutations of the blockchain nodes that i can imagine:
| Docker | Location | Type | Net | node.yml |
|=================|==========|==========|======|==========|
| docker-compose- | aws-poa- | parity- | | node.yml |
| docker-compose- | kovan- | parity- | | node.yml |
| docker-compose- | local- | ganache- | | node.yml |
| docker-compose- | local- | parity- | dev- | node.yml |
| docker-compose- | local- | parity- | poa- | node.yml | |
…r-images into feature/kovan_parity
👍 Sounds very good. I will open a new PR for facing that refactor. I have updated this PR removing the possibility to unlock accounts. @H34D does this make sense? |
I didn't know that Docker Compose could take multiple docker-compose files in one command-line command, but it can. See: https://docs.docker.com/compose/reference/overview/#specifying-multiple-compose-files If we kill off ganache completely, then that would simplify things: the only node "Type" would be parity, so it wouldn't have to be specified at all. |
it can an we can build fancy mix and match layer system on top |
but why limiting? i renamed the container to |
I'm okay with keeping ganache as an option. I was just looking for opportunities to simplify. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
parity/ocean-network/account.json | ||
parity/ocean-network/password | ||
parity/kovan/account.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be removed
|
relates to #64 |
…r-images into feature/kovan_parity
@@ -64,8 +64,10 @@ Option | Description | |||
--- | --- | |||
`--latest` | Get the `latest` versions of all components, referring to their `develop` branches. | |||
`--no-pleuston` | Start up Ocean without an instance of `pleuston`. Helpful for development on `pleuston`. | |||
`--local-parity-node` | Runs a local parity POA node and Secret Store instead of ganache-cli. | |||
`--local-secret-store` | 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be something like --reuse-ganache-database
because it triggers a reuse of the blockchain db not the mongodb. This is also a super special case.
`--reuse-database` | Start up Ocean and reuse the Database from ganache. Helpful for development. | ||
`--testnet-parity-node` | Start up a parity client connected to Ocean testnet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this really connect to the testnet in aws? or is ist setting up an own testnet?
`--reuse-database` | Start up Ocean and reuse the Database from ganache. Helpful for development. | ||
`--testnet-parity-node` | Start up a parity client connected to Ocean testnet. | ||
`--kovan-parity-node` | Start up a parity client connected to Kovan testnet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parity can be removed for a user it does not matter if it spins up a parity or geth node to connect to kovan
environment: | ||
LOCAL_CONTRACTS: "true" | ||
DEPLOY_CONTRACTS: ${DEPLOY_CONTRACTS} | ||
DATABASE_PATH: "/ganache-db" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GANACHE_DATABASE_PATH: "/ganache-db"
LOCAL_CONTRACTS: "true" | ||
DEPLOY_CONTRACTS: ${DEPLOY_CONTRACTS} | ||
DATABASE_PATH: "/ganache-db" | ||
REUSE_DATABASE: ${REUSE_DATABASE} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GANCHE_REUSE_DATABASE
DATABASE_PATH: "/ganache-db" | ||
REUSE_DATABASE: ${REUSE_DATABASE} | ||
NETWORK_NAME: ${KEEPER_NETWORK_NAME} | ||
POA_HOST: "parity-node" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BLOCKCHAIN_NODE_HOST: "parity-node"
… feature/kovan_parity
I think we can close in favor of #71 . Will open a new PR when that is merged to work on Ocean testnet compatibility. |
Description
Added support to spin up a parity client which connects to kovan network and Ocean testnet POA.
Is this PR related with an open issue?
Related to Issue #51
Types of changes
Checklist:
Funny gif