-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from agoric-labs/rs-segregate-docker-files
chore: segregate files and fix ci flakiness
- Loading branch information
Showing
6 changed files
with
223 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: '3.8' | ||
|
||
services: | ||
relayer: | ||
image: informalsystems/hermes:v1.7.3 | ||
container_name: relayer | ||
depends_on: | ||
- agoric-local | ||
volumes: | ||
- .:/workspace | ||
- state:/state | ||
entrypoint: | | ||
/bin/sh -c " | ||
/workspace/relayer/scripts/run-relayer.sh agoric-emerynet-8 agoric-local /workspace/relayer/keys/whale-emerynet.key /workspace/relayer/keys/alice.key /workspace/relayer/config-emerynet-local.toml | ||
" | ||
agoric-local: | ||
image: a3p:local | ||
platform: linux/amd64 | ||
build: . | ||
container_name: agoric-local | ||
environment: | ||
CHAIN_ID: agoric-local | ||
volumes: | ||
- .:/workspace | ||
- state:/state | ||
ports: | ||
- 26656:26656 | ||
- 26657:26657 | ||
- 1317:1317 | ||
entrypoint: /workspace/chain/scripts/run-chain.sh | ||
|
||
volumes: | ||
state: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
# The global section has parameters that apply globally to the relayer operation. | ||
[global] | ||
|
||
log_level = 'info' | ||
|
||
|
||
# Specify the mode to be used by the relayer. [Required] | ||
[mode] | ||
|
||
# Specify the client mode. | ||
[mode.clients] | ||
|
||
# Whether or not to enable the client workers. [Required] | ||
enabled = true | ||
|
||
# Whether or not to enable periodic refresh of clients. [Default: true] | ||
# This feature only applies to clients that underlie an open channel. | ||
# For Tendermint clients, the frequency at which Hermes refreshes them is 2/3 of their | ||
# trusting period (e.g., refresh every ~9 days if the trusting period is 14 days). | ||
# Note: Even if this is disabled, clients will be refreshed automatically if | ||
# there is activity on a connection or channel they are involved with. | ||
refresh = true | ||
|
||
# Whether or not to enable misbehaviour detection for clients. [Default: false] | ||
misbehaviour = false | ||
|
||
# Specify the connections mode. | ||
[mode.connections] | ||
|
||
# Whether or not to enable the connection workers for handshake completion. [Required] | ||
enabled = false | ||
|
||
# Specify the channels mode. | ||
[mode.channels] | ||
|
||
# Whether or not to enable the channel workers for handshake completion. [Required] | ||
enabled = false | ||
|
||
# Specify the packets mode. | ||
[mode.packets] | ||
|
||
# Whether or not to enable the packet workers. [Required] | ||
enabled = true | ||
|
||
# Parametrize the periodic packet clearing feature. | ||
# Interval (in number of blocks) at which pending packets | ||
# should be periodically cleared. A value of '0' will disable | ||
# periodic packet clearing. [Default: 100] | ||
clear_interval = 100 | ||
|
||
# Whether or not to clear packets on start. [Default: false] | ||
clear_on_start = true | ||
|
||
# Toggle the transaction confirmation mechanism. | ||
# The tx confirmation mechanism periodically queries the `/tx_search` RPC | ||
# endpoint to check that previously-submitted transactions | ||
# (to any chain in this config file) have been successfully delivered. | ||
# If they have not been, and `clear_interval = 0`, then those packets are | ||
# queued up for re-submission. | ||
# If set to `false`, the following telemetry metrics will be disabled: | ||
# `acknowledgment_packets_confirmed`, `receive_packets_confirmed` and `timeout_packets_confirmed`. | ||
# [Default: false] | ||
tx_confirmation = false | ||
|
||
# The REST section defines parameters for Hermes' built-in RESTful API. | ||
# https://hermes.informal.systems/rest.html | ||
[rest] | ||
|
||
# Whether or not to enable the REST service. Default: false | ||
enabled = true | ||
|
||
# Specify the IPv4/6 host over which the built-in HTTP server will serve the RESTful | ||
# API requests. Default: 127.0.0.1 | ||
host = '127.0.0.1' | ||
|
||
# Specify the port over which the built-in HTTP server will serve the restful API | ||
# requests. Default: 3000 | ||
port = 3000 | ||
|
||
|
||
# The telemetry section defines parameters for Hermes' built-in telemetry capabilities. | ||
# https://hermes.informal.systems/telemetry.html | ||
[telemetry] | ||
|
||
# Whether or not to enable the telemetry service. Default: false | ||
enabled = false | ||
|
||
# Specify the IPv4/6 host over which the built-in HTTP server will serve the metrics | ||
# gathered by the telemetry service. Default: 127.0.0.1 | ||
host = '127.0.0.1' | ||
|
||
# Specify the port over which the built-in HTTP server will serve the metrics gathered | ||
# by the telemetry service. Default: 3001 | ||
port = 3001 | ||
|
||
|
||
# A chains section includes parameters related to a chain and the full node to which | ||
# the relayer can send transactions and queries. | ||
|
||
[[chains]] | ||
id = 'agoric-emerynet-8' | ||
rpc_addr = 'https://emerynet.rpc.agoric.net' | ||
grpc_addr = 'https://emerynet.grpc.agoric.net' | ||
event_source = { mode = 'push', url = 'wss://emerynet.rpc.agoric.net/websocket', batch_delay = '500ms' } | ||
rpc_timeout = '15s' | ||
account_prefix = 'agoric' | ||
key_name = 'whale-emerynet' | ||
address_type = { derivation = 'cosmos' } | ||
store_prefix = 'ibc' | ||
default_gas = 2000000 | ||
max_gas = 10000000 | ||
gas_price = { price = 0.00, denom = 'ubld' } | ||
gas_multiplier = 1.1 | ||
max_msg_num = 25 | ||
max_tx_size = 180000 | ||
clock_drift = '15s' | ||
#max_block_time = '15s' | ||
trusting_period = '14days' | ||
trust_threshold = { numerator = '1', denominator = '3' } | ||
memo_prefix = 'agoric-emerynet-relay' | ||
|
||
[[chains]] | ||
id = 'agoric-local' | ||
rpc_addr = 'http://agoric-local:26657' | ||
grpc_addr = 'http://agoric-local:9090' | ||
event_source = { mode = 'push', url = 'ws://agoric-local:26657/websocket', batch_delay = '500ms' } | ||
rpc_timeout = '15s' | ||
account_prefix = 'agoric' | ||
key_name = 'alice' | ||
address_type = { derivation = 'cosmos' } | ||
store_prefix = 'ibc' | ||
default_gas = 2000000 | ||
max_gas = 10000000 | ||
gas_price = { price = 0.00, denom = 'ubld' } | ||
gas_multiplier = 1.1 | ||
max_msg_num = 25 | ||
max_tx_size = 180000 | ||
clock_drift = '15s' | ||
#max_block_time = '15s' | ||
trusting_period = '400s' | ||
trust_threshold = { numerator = '1', denominator = '3' } | ||
memo_prefix = 'agoric-local-relay' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters