Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Do Not Merge #6

Draft
wants to merge 48 commits into
base: main
Choose a base branch
from
Draft

Do Not Merge #6

wants to merge 48 commits into from

Conversation

ttarsi
Copy link

@ttarsi ttarsi commented Aug 8, 2023

View Changes

kevinhalliday and others added 25 commits June 6, 2023 15:10
- internal testnet
- public testnet 1

Using omni blockscout image + custom env variables in docker compose
template for ui customization.
The eth bytecode db must talk to the verifier via a gRPC connection. To
enable this, we

- enable gRPC on port 0851 in the verifier template
- increate microserver security group egress and ingress ports to
  include port 8051
- keep verifier HTTP running on port 8050 for our healthcheck
  and debuging
- switch the verifier alb to a network verifier (gRPC is difficult to
  configure on application load balancers)
Signed-off-by: percival7777 <[email protected]>
Signed-off-by: percival7777 <[email protected]>
Signed-off-by: percival7777 <[email protected]>
feat: added xchain indexer deployment
feat: updated testnet to use static image while staging uses latest build
feat: updated staging image to use the actual latest image builds
* add testnet api resource

* fix: testnet config
* add testnet api resource

* fix: testnet config

* refactor: set docker image

* fix: var reference
@ttarsi ttarsi marked this pull request as draft August 16, 2023 15:19
ttarsi and others added 4 commits August 16, 2023 15:06
* Allow different docker images for different envs.

* Allow staging and testnet to be upgraded to new omniops docker image.

- allow different docker images to be used for both staging and testnet
- allow docker shell to be configured per env. this allows staging and
  testnet to operate on different docker images
- update logo imports
- disable dark mode, as xchain ui updates do not handle dark mode
- update BLOCKSCOUT_VERSION

New omniops image is "omniops/blockscout:0.1.0.commit.2404d446"
* Update tf variables.tf ,main.tf files and docker compose template for indexer to use a variable for omni rpc addr

* Rename omni_config_rpc_addr to omni_rpc in aws/main.tf and aws docker compose template

* Remove variable staging_xchain_indexer_omni_config_rpc_addr from variables.tf and introduce locals block with  omni_staging_rpc in main.tf instead

* rename omni-indexer-rpc-address to omni-rpc in xchain docker template
ognjenkurtic and others added 14 commits September 16, 2023 23:01
* Remove staging and testnet docker image variables from xchain and blockscout; Introduce separate images for staging and testnet tags; Pass in xchain_docker_image var instead of hardcoded image to compose xchain template

* Rename xchain_docker_image to xchain_indexer_docker_image in main.tf and compose xchain template

* Extract docker images for xchain indexer and blockscout to locals in main.tf

* Extract omni rpc to local var in main.tf

* Add a comment documenting our usage of docker image vars for xchain indexer and blockscout in main.tf

* Move blockscout omni ws addresses to local vars, both for staging and testnet
- revert blockscout docker image tags to stable relaease
- switch master tags to main tags, to reflect branching changes.
- use xchain:main for staging, xchain:latest for testnet
* add an option to generate xchain indexer json config as a variable in terraform, pass it to the ec2 instance as file and mount it as config in docker compose

* Make sure backwards compatibility preserved by not overriding present configs with the generated one

* Renam var carying the name of the xchain config to better reflect purpose

* Rename json_config variable to config_file_content to better capture the purpose

* Update main.tf with xchain indexer testnet json config

* Remove TODO for xchain_config_file_content
* remove config-file and omni-rpc as flags from docker_compose_xchain tf template

* remove config_file_name and omni_config vars from xchain_settings variable

* rename syncInterval -> sync_interval; Rename omni_config.portal_addr -> omni_confi.omni_predeploy_addr in main.tf locals

* Add config_file_path to TF config for xchain indexer and make sure it is proprely mounted for  xchain indexer and api instances

* Switch to snake case for file name of the temp file used to mount indexer config in init_script template
* fix: api path in examples

* add param for host link

* respond to pr comments
* Bump xindexer staging deployed version

* Fix identation for config mount in docker_compose_xchain.tfpl
* Move some values from main.tf to tfvars

* Move cloudflare_api_token from variables.tf to secrets.tf
* Update docker image tags, to include xchain stats.

- includes env var + template update to include OMNI_XCHAIN_API

* Remove old commented tags, add todo.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants