Skip to content

Commit

Permalink
fix: fix up telemetry docker example (gnolang#2200)
Browse files Browse the repository at this point in the history
## Description

This PR fixes the telemetry Docker example devs can use to run the
telemetry suite locally, following recent CI / releaser merges.

Related gnolang#2101 

<details><summary>Contributors' checklist...</summary>

- [x] Added new tests, or not needed, or not feasible
- [x] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [x] Updated the official documentation or not needed
- [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [x] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
- [ ] Added new benchmarks to [generated
graphs](https://gnoland.github.io/benchmarks), if any. More info
[here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
</details>
  • Loading branch information
zivkovicmilos authored and omarsy committed Jun 3, 2024
1 parent d7d32d3 commit bdc0383
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
6 changes: 4 additions & 2 deletions misc/telemetry/gnoland/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use the existing gno image as the base image
FROM ghcr.io/gnolang/gno:latest AS base
FROM ghcr.io/gnolang/gno/gnoland:master AS base

# Copy the setup script into the container
COPY ./setup.sh .
Expand All @@ -8,4 +8,6 @@ COPY ./setup.sh .
RUN chmod +x ./setup.sh

# Run the setup
CMD ["./setup.sh"]
ENTRYPOINT ["sh"]

CMD ["./setup.sh"]
16 changes: 8 additions & 8 deletions misc/telemetry/gnoland/setup.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#!/bin/bash

# Initialize the node data directories
gnoland start --skip-start
# Initialize the node config
gnoland config init --config-path /gnoroot/gnoland-data/config/config.toml

# Set the block time to 1s
gnoland config set --config-path /opt/gno/src/gnoland-data/config/config.toml consensus.timeout_commit 1s
gnoland config set --config-path /gnoroot/gnoland-data/config/config.toml consensus.timeout_commit 1s

# Set the listen address
gnoland config set --config-path /opt/gno/src/gnoland-data/config/config.toml rpc.laddr tcp://0.0.0.0:26657
gnoland config set --config-path /gnoroot/gnoland-data/config/config.toml rpc.laddr tcp://0.0.0.0:26657

# Enable the metrics
gnoland config set --config-path /opt/gno/src/gnoland-data/config/config.toml telemetry.enabled true
gnoland config set --config-path /gnoroot/gnoland-data/config/config.toml telemetry.enabled true

# Set the metrics exporter endpoint
gnoland config set --config-path /opt/gno/src/gnoland-data/config/config.toml telemetry.exporter_endpoint collector:4317
gnoland config set --config-path /gnoroot/gnoland-data/config/config.toml telemetry.exporter_endpoint collector:4317

# Start the Gnoland node
gnoland start
# Start the Gnoland node (lazy will init the genesis.json and secrets)
gnoland start --lazy

0 comments on commit bdc0383

Please sign in to comment.