-
Notifications
You must be signed in to change notification settings - Fork 42
Refactor to use individual docker compose files #71
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
Conversation
… feature/refactor
… feature/refactor
ttmc
left a comment
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.
This refactoring makes a lot of sense. I took a quick look and commented on a couple of things. I will try out these compose files in the coming week.
compose-files/pleuston.yml
Outdated
| - keeper-contracts | ||
| environment: | ||
| KEEPER_HOST: keeper-contracts | ||
| OCEAN_HOST: aquarius |
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.
There is no KEEPER_HOST and OCEAN_HOST anymore, variables need to target localhost since browser is not in docker network. If variables are not set then they default to localhost anyway so these lines are not needed actually
NODE_HOST: localhost
AQUARIUS_HOST: localhost
BRIZO_HOST: localhost
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.
Ok I understand. So the browser connect directly to the components.
start_ocean.sh
Outdated
| COMPOSE_FILES=${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/pleuston.yml/} | ||
| printf $COLOR_Y'Starting without Pleuston...\n\n'$COLOR_RESET | ||
| ;; | ||
| --local-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.
what is this starting? a new network or a node that connects to the 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.
It depends the variable KEEPER_NETWORK_NAME. With this refactor the start_ocean.sh should work exactly the same as before the refactor (there is not any functionality change).
That line in particular remove the pleuston.yml docker-compose in the running sequence.
|
Because --latest)
export OCEAN_VERSION=latest
printf $COLOR_Y'Switched to latest components...\n\n'$COLOR_RESET
;; |
|
Don't remove the --latest. If we make one stable release and start again with development process with development unstable builds we will need it again. Docker-images are the best way if you want to start all the services so we should offer them as stable and as a development version. |
|
please see: #74 |
Feature/blockain nodes
|
let me write some documentation today, also signing in secret store does not work as expected |
|
I tested brizo_1 | [2018-12-06 09:18:17 +0000] [10] [INFO] Starting gunicorn 19.9.0
brizo_1 | [2018-12-06 09:18:17 +0000] [10] [INFO] Listening at: http://0.0.0.0:8030 (10)
brizo_1 | [2018-12-06 09:18:17 +0000] [10] [INFO] Using worker: sync
brizo_1 | [2018-12-06 09:18:17 +0000] [12] [INFO] Booting worker with pid: 12
ocean_secret-store-cors-proxy_1 exited with code 1
brizo_1 | 2018-12-06 09:18:17 612e26a0194b root[12] INFO Logging configuration loaded from file: logging.yaml
brizo_1 | [2018-12-06 09:18:17 +0000] [12] [ERROR] Exception in worker process
brizo_1 | Traceback (most recent call last):
brizo_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
brizo_1 | worker.init_process()
brizo_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 129, in init_process
...
brizo_1 | contract_name,
brizo_1 | File "/usr/local/lib/python3.6/site-packages/squid_py/keeper/utils.py", line 37, in get_contract_by_name
brizo_1 | raise FileNotFoundError('Keeper contract {} file not found: {}'.format(contract_name, path))
brizo_1 | FileNotFoundError: Keeper contract OceanMarket file not found: /usr/local/artifacts/OceanMarket.ocean_poa_net_local.json
brizo_1 | [2018-12-06 09:18:17 +0000] [12] [INFO] Worker exiting (pid: 12)
keeper-node_1 | 2018-12-06 09:18:18 UTC Public node URL: enode://20b27cf57493cd641b2fe5df6e39c0d52a96bd0e4f3416fcd35d6fcab6e8c76748e9b18fa579a2306e587c79e6bcd5b646c2021dea413b3b7ad98366594c5347@172.15.0.12:30303
brizo_1 | [2018-12-06 09:18:18 +0000] [10] [INFO] Shutting down: Master
brizo_1 | [2018-12-06 09:18:18 +0000] [10] [INFO] Reason: Worker failed to boot. |
|
yep there are three bugs right now:
i am working on that |
…ages into feature/refactor
…ages into feature/refactor
ssallam
left a comment
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
Description
Refactor to use individual compose files for each component.
Is this PR related with an open issue?
Related to Issue #49, #25
Types of changes
Checklist:
Funny gif