Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianElvis committed Dec 11, 2024
1 parent c6a409e commit 2e6b74f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/integration-e2e.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
name: integration-e2e

on:
push:
branches:
- '**'

permissions:
contents: read

defaults:
run:
shell: bash

jobs:
test:
runs-on: ubuntu-22.04
Expand Down
2 changes: 1 addition & 1 deletion contrib/images/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ start-bcd-consumer-integration: stop-bcd-consumer-integration

stop-bcd-consumer-integration:
docker compose -f ibcsim-bcd/docker-compose.yml down
sudo rm -rf ibcsim-bcd/.testnets
rm -rf ibcsim-bcd/.testnets

.PHONY: ibcsim-bcd ibcsim-bcd-rmi start-bcd-consumer-integration stop-bcd-consumer-integration babylond babylond-rmi
4 changes: 2 additions & 2 deletions contrib/images/ibcsim-bcd/pre-deployment.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

# Create new directory that will hold node and services' configuration
mkdir -p ibcsim-bcd/.testnets && sudo chmod -R 777 ibcsim-bcd/.testnets
mkdir -p ibcsim-bcd/.testnets && chmod -R 777 ibcsim-bcd/.testnets
echo "Creating and configuring testnet directory..."
docker run --rm -v $(pwd)/ibcsim-bcd/.testnets:/data babylonlabs-io/babylond \
babylond testnet init-files --v 2 -o /data \
Expand All @@ -18,5 +18,5 @@ docker run --rm -v $(pwd)/ibcsim-bcd/.testnets:/data babylonlabs-io/babylond \
--covenant-pks "bb50e2d89a4ed70663d080659fe0ad4b9bc3e06c17a227433966cb59ceee020d" # should be updated if `covenant-keyring` dir is changed`

# Create separate subpaths for each component and copy relevant configuration
sudo chmod -R 777 ibcsim-bcd/.testnets
chmod -R 777 ibcsim-bcd/.testnets
echo "Testnet directory created and configured successfully."
3 changes: 0 additions & 3 deletions contrib/images/ibcsim-bcd/setup-bcd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ sed -i 's/"babylon_contract_address": ""/"babylon_contract_address": "'"$babylon
sed -i 's/"btc_staking_contract_address": ""/"btc_staking_contract_address": "'"$btcStakingContractAddr"'"/g' $CHAINDIR/$CHAINID/config/genesis.json
sed -i 's/"btc_finality_contract_address": ""/"btc_finality_contract_address": "'"$btcFinalityContractAddr"'"/g' $CHAINDIR/$CHAINID/config/genesis.json

# change permission so that e2e program can use the keys there
sudo chmod -R 777 $CHAINDIR/$CHAINID

# Start
echo "Starting $BINARY..."
$BINARY --home $CHAINDIR/$CHAINID start --pruning=nothing --grpc-web.enable=false --grpc.address="0.0.0.0:$GRPCPORT" --log_level trace --trace --log_format 'plain' 2>&1 | tee $CHAINDIR/$CHAINID.log &
Expand Down

0 comments on commit 2e6b74f

Please sign in to comment.