-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for proper networking so containers can communicate (#32)
- Loading branch information
Showing
4 changed files
with
53 additions
and
32 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 |
---|---|---|
@@ -1,14 +1,28 @@ | ||
#!/bin/sh | ||
|
||
# Configuration file | ||
CONFIG_PATH="$RELAYER_DIR"/"$CONFIG" | ||
echo Config: "$CONFIG_PATH" | ||
|
||
echo "Setting up relayer for chains:" | ||
echo Chain: "$CHAIN_A" | ||
echo Chain: "$CHAIN_B" | ||
|
||
# Check gaia version | ||
echo "-------------------------------------------------------------------------------------------------------------------" | ||
echo "Relayer version" | ||
echo " Show relayer version" | ||
echo "-------------------------------------------------------------------------------------------------------------------" | ||
rrly | ||
rrly version | ||
|
||
ls -allh /data | ||
echo "-------------------------------------------------------------------------------------------------------------------" | ||
echo " Add light client configuration for chains" | ||
echo "-------------------------------------------------------------------------------------------------------------------" | ||
rrly -c "$CONFIG_PATH" light add tcp://$CHAIN_A:26657 -c $CHAIN_A -s /data/$CHAIN_A -p | ||
rrly -c "$CONFIG_PATH" light add tcp://$CHAIN_A:26657 -c $CHAIN_A -s /data/$CHAIN_A | ||
rrly -c "$CONFIG_PATH" light add tcp://$CHAIN_B:26557 -c $CHAIN_B -s /data/$CHAIN_B -p | ||
rrly -c "$CONFIG_PATH" light add tcp://$CHAIN_B:26557 -c $CHAIN_B -s /data/$CHAIN_B | ||
|
||
echo "-------------------------------------------------------------------------------------------------------------------" | ||
echo " Add keys for chains" | ||
echo "-------------------------------------------------------------------------------------------------------------------" | ||
rrly -c "$CONFIG_PATH" keys add "$CHAIN_A" /data/"$CHAIN_A"/key_seed.json | ||
rrly -c "$CONFIG_PATH" keys add "$CHAIN_B" /data/"$CHAIN_B"/key_seed.json |
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