-
Notifications
You must be signed in to change notification settings - Fork 16
feat(infra): introduce ENSRainbow Searchlight service #1579
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
Changes from all commits
018dac8
049408c
9374d9d
d7a21d3
8b18073
21a38f0
63bf703
b3af2bc
7d172eb
d26ca11
d656ec8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@docs/ensnode": patch | ||
| --- | ||
|
|
||
| Included ENSRainbow Searchlight instance on _Hosted ENSRainbow Instances_ page. |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -27,10 +27,10 @@ jobs: | |||
| # AWS_REGION should be the same as Terraform S3 bucket state region. | ||||
| AWS_REGION: us-east-1 | ||||
| TF_VAR_ensnode_version: ${{ inputs.tag || 'latest' }} | ||||
| TF_VAR_ensindexer_label_set_id: ${{ vars.LABEL_SET_ID }} | ||||
| TF_VAR_ensindexer_label_set_version: ${{ vars.LABEL_SET_VERSION }} | ||||
| TF_VAR_ensrainbow_label_set_id: ${{ vars.LABEL_SET_ID }} | ||||
| TF_VAR_ensrainbow_label_set_version: ${{ vars.LABEL_SET_VERSION }} | ||||
| # ENSRainbow Searchlight instance allows setting label set version only, | ||||
| # while the label set ID is fixed to "searchlight". | ||||
| # ENSRainbow Subgraph has both label set ID and label set version fixed. | ||||
| TF_VAR_ensrainbow_searchlight_label_set_version: ${{ vars.ENSRAINBOW_SEARCHLIGHT_LABEL_SET_VERSION }} | ||||
| TF_VAR_db_schema_version: ${{ vars.DB_SCHEMA_VERSION }} | ||||
|
||||
| TF_VAR_db_schema_version: ${{ vars.DB_SCHEMA_VERSION }} |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -34,12 +34,9 @@ Copy `.env.sample` to `.env.local` and fill in your configuration values: | |||||
|
|
||||||
| ```bash | ||||||
| # ENSNode configuration | ||||||
| ensnode_version = "latest" # or specific version | ||||||
| ensindexer_label_set_id = "ensindexer_label_set_id" | ||||||
| ensindexer_label_set_version = "ensindexer_label_set_version" | ||||||
| ensrainbow_label_set_id = "ensrainbow_label_set_id" | ||||||
| ensrainbow_label_set_version = "ensrainbow_label_set_version" | ||||||
| anthropic_api_key = "your_anthropic_api_key" | ||||||
| ensnode_version = "0.0.0" # pin to the specific version you want to use as found at https://github.com/namehash/ensnode/releases | ||||||
| ensrainbow_searchlight_label_set_version = "0" # pint to the specific version, see https://ensnode.io/ensrainbow/concepts/glossary/#label_set_version | ||||||
|
||||||
| ensrainbow_searchlight_label_set_version = "0" # pint to the specific version, see https://ensnode.io/ensrainbow/concepts/glossary/#label_set_version | |
| ensrainbow_searchlight_label_set_version = "0" # pin to the specific version, see https://ensnode.io/ensrainbow/concepts/glossary/#label_set_version |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -18,52 +18,84 @@ locals { | |||||
| hosted_zone_name = "ensnode.io" | ||||||
| # See https://render.com/docs/blueprint-spec#region | ||||||
| render_region = "ohio" | ||||||
|
|
||||||
|
|
||||||
| # ENSRainbow instances with their specific configurations. | ||||||
| ensrainbow_instances = { | ||||||
| # The Subgraph instance uses fixed label set ID "subgraph" and | ||||||
| # fixed label set version "0". | ||||||
| subgraph = { | ||||||
| ensrainbow_label_set_id = "subgraph" | ||||||
| ensrainbow_label_set_version = "0" | ||||||
| } | ||||||
|
|
||||||
| # The Searchlight instance uses fixed label set ID "searchlight" and | ||||||
| # configurable label set version. | ||||||
| searchlight = { | ||||||
| ensrainbow_label_set_id = "searchlight" | ||||||
| ensrainbow_label_set_version = var.ensrainbow_searchlight_label_set_version | ||||||
| } | ||||||
| } | ||||||
|
|
||||||
| # ENSIndexer instances with their specific configurations. | ||||||
| # Subgraph instances use the ENSRainbow Subgraph instance. | ||||||
|
||||||
| # Subgraph instances use the ENSRainbow Subgraph instance. | |
| # Subgraph instances use the ENSRainbow Subgraph instance, |
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.
The workflow sets TF_VAR_db_schema_version, but there is no corresponding db_schema_version variable defined in terraform/variables.tf. This will cause Terraform to fail with an "undeclared variable" error. Either add the variable to terraform/variables.tf and pass it to the ensrainbow module, or remove this line if the default value of "3" in terraform/modules/ensrainbow/variables.tf is always appropriate.