-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Bcf 3281 ability to deploy node using docker compose #13721
Bcf 3281 ability to deploy node using docker compose #13721
Conversation
9cd3490
to
abca137
Compare
I see you updated files related to
|
|
||
cld Runs the chainlink node container in dev mode | ||
|
||
acceptance Run the services required to perform an acceptance test |
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.
why did you decide to remove this functionality?
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.
I haven't its just renaming as it was just a docker compose up behind and not running any acceptance test
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.
I see, that was a bad naming then.
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.
Could you please update the README file accordingly then?
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.
Yes I'll be pushing soon the updates on the README, PR is still in draft
@@ -32,8 +30,6 @@ services: | |||
dockerfile: core/chainlink.Dockerfile | |||
entrypoint: /bin/sh -c "chainlink -c /run/secrets/config node start -d -p /run/secrets/node_password -a /run/secrets/apicredentials" | |||
restart: always | |||
environment: |
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.
Sorry, could you confirm that there is no application that runs "docker-compose -f docker-compose.yaml ..." which assumes that CL_DATABASE_URL is propagated somehow from the upstream?
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.
you mean if used without the compose script and hence without docker-compose.postgres.yaml ?
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.
yes
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.
Its not meant to be used without compose script
tools/docker/README.md
Outdated
The `cld` command will bring up the services that a chainlink node needs to connect to (parity/geth, postgres), and then attach the users terminal to a docker container containing the host's chainlink repository bind-mounted inside the container at `/usr/local/src/chainlink`. What this means is that any changes made within the host's repository will be synchronized to the container, and vice versa for changes made within the container at `/usr/local/src/chainlink`. | ||
|
||
This enables a user to make quick changes on either the container or the host, run `cldev` within the attached container, check the new behaviour of the re-built node, and repeat this process until the desired results are achieved. | ||
Will run one node with a postgres database and optionally by default a devnet RPC node that can be either geth or parity. |
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 "optionally" make sense? (I.e., it just runs one node with postgres db and a devnet RPC [parity by default]).
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.
similar for "./compose up"
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 will commit the changes soon 👍
tools/docker/README.md
Outdated
|
||
# Requirements | ||
|
||
- [docker-compose](https://docs.docker.com/compose/install/) | ||
|
||
# Using the compose script | ||
|
||
Inside the `chainlink/tools/docker` directory, there is a helper script that is included which should cover all cases of integration / acceptance / development needs acroos multiple services. To see a list of available commands, perform the following: | ||
Inside the `chainlink/tools/docker` directory, there is a helper script that is included |
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.
is this still a part of the sentence?
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.
I'm updating the sentence to be more clear
|
||
```sh | ||
cd tools/docker | ||
./compose help | ||
``` | ||
|
||
## Examples | ||
## Env vars |
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.
Could you please also explain what ".env" file does in this section?
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
tools/docker/README.md
Outdated
|
||
# Requirements | ||
|
||
- [docker-compose](https://docs.docker.com/compose/install/) | ||
|
||
# Using the compose script | ||
|
||
Inside the `chainlink/tools/docker` directory, there is a helper script that is included which should cover all cases of integration / acceptance / development needs acroos multiple services. To see a list of available commands, perform the following: | ||
You should use the script `compose` located in the `chainlink/tools/docker` directory |
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.
Add a dot to separate two sentences?
|
Ticket : BCF-3281
Requires Dependencies
Resolves Dependencies