Skip to content
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

refactor: adapt sonda setup for deployment #3151

Merged
merged 1 commit into from
Oct 25, 2024
Merged

Conversation

markoburcul
Copy link
Contributor

Referenced issue: https://github.com/status-im/infra-hq/issues/135

Description

Adapted Sonda script and docker setup to work both for local use and for deployment.

Changes

  • added CLI flag to Sonda script to specify metrics port and node rest address
  • refactored a bit the docker-compose and dockerfile
  • added new variables to env vars example file

How to test

  1. Run the sonda setup locally

Issue

https://github.com/status-im/infra-hq/issues/135

Copy link

github-actions bot commented Oct 25, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:3151

Built from e486b5e

Copy link
Collaborator

@Ivansete-status Ivansete-status left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for it! 💯
I just added a couple of comments that I hope you find useful

@@ -179,21 +181,20 @@ def main():
log_with_utc(f'Store nodes to query: {store_nodes}')

# Start Prometheus HTTP server at port 8004
start_http_server(8004)
start_http_server(args.metrics_port)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe adapt the previous comment too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure what you mean by this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh you mean to adapt the comment in the script, sure

@@ -25,6 +26,7 @@ x-sonda-env: &sonda_env
services:
nwaku:
image: ${NWAKU_IMAGE:-harbor.status.im/wakuorg/nwaku:v0.30.1}
container_name: nwaku
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

( comment related to the previous line )
I think we can use a generic tag in the previous line so that the nwaku node version is updated automatically. For example, we could use: harbor.status.im/wakuorg/nwaku:deploy-status-prod

@markoburcul markoburcul force-pushed the modify-sonda-setup branch 2 times, most recently from 5b03da1 to 96731d6 Compare October 25, 2024 13:08
Referenced issue: status-im/infra-hq#135

Signed-off-by: markoburcul <[email protected]>
Copy link
Contributor

@gabrielmer gabrielmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks so much!

@markoburcul markoburcul changed the title sonda: adapt setup for deployment refactor: adapt sonda setup for deployment Oct 25, 2024
@markoburcul markoburcul merged commit 02c8f35 into master Oct 25, 2024
11 of 13 checks passed
@markoburcul markoburcul deleted the modify-sonda-setup branch October 25, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants