-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finalize part 1 - getting started and most use cases
- Loading branch information
Showing
4 changed files
with
66 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Chainlink Node Set Environment Test | ||
|
||
Let's use some external capability binaries in our tests and extend the [previous one](nodeset_environment.md). | ||
|
||
Download an example capability binary | ||
``` | ||
export export GOPRIVATE=github.com/smartcontractkit/capabilities | ||
go get github.com/smartcontractkit/capabilities/kvstore && go install github.com/smartcontractkit/capabilities/kvstore | ||
``` | ||
|
||
Create a configuration file `smoke.toml` | ||
```toml | ||
[blockchain_a] | ||
chain_id = "31337" | ||
image = "ghcr.io/gakonst/foundry:latest" | ||
port = "8545" | ||
type = "anvil" | ||
|
||
[contracts] | ||
|
||
[data_provider] | ||
port = 9111 | ||
|
||
[nodeset] | ||
nodes = 5 | ||
override_mode = "all" | ||
|
||
[[nodeset.node_specs]] | ||
|
||
[nodeset.node_specs.db] | ||
image = "postgres:15.6" | ||
pull_image = true | ||
|
||
[nodeset.node_specs.node] | ||
# path to your capability binaries | ||
capabilities = ["./kvstore"] | ||
# default capabilities directory | ||
# capabilities_container_dir = "/home/capabilities" | ||
image = "public.ecr.aws/chainlink/chainlink:v2.17.0" | ||
pull_image = true | ||
|
||
``` | ||
|
||
Run it | ||
```bash | ||
go test -v -run TestNodeSet | ||
``` | ||
|
||
Now you can configure your capability using `clclient.CreateJobRaw($raw_toml)`. | ||
|
||
Capabilities are uploaded to `/home/capabilities` by default. | ||
|
||
Summary: | ||
- We deployed a node set with some capabilities | ||
|
||
|
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