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

sapphire-localnet: Add --no-explorer flag to disable Nexus and Explorer #640

Closed
5 tasks
matevz opened this issue Nov 5, 2024 · 0 comments · Fixed by #653
Closed
5 tasks

sapphire-localnet: Add --no-explorer flag to disable Nexus and Explorer #640

matevz opened this issue Nov 5, 2024 · 0 comments · Fixed by #653
Assignees
Labels
docker Docker related issues enhancement New feature or request

Comments

@matevz
Copy link
Member

matevz commented Nov 5, 2024

Spinning up the web server and nexus indexer in the Localnet docker image causes additional delay and consumes CPU/memory/db cycles over longer run. For environments that don't need the indexer and the explorer (e.g. CI), add the --no-explorer flag to disable it.

TODO:

  • implement --no-explorer flag
  • benchmark startup times if they're reduced, see if you can speed it up more by shuffling start order
  • also check, if there are any leftovers from indexer/explorer (are those stripped) so you can also reduce the image size
  • besides updating Localnet docs in this repo, also update it here https://docs.oasis.io/dapp/tools/localnet
  • I suggest we also change the explorer port from the standard 80 to 8548. In practice you will always map the port to sth else, so the Localnet Explorer available at http://localhost:80 message is incorrect. Also this reduces the number of -p docker parameters needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker Docker related issues enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants