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

fix: fix up telemetry docker example #2200

Merged
merged 4 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading