migrate/podman-to-docker (#92)
podman to docker Co-authored-by: openhands <openhands@all-hands.dev> Reviewed-on: https://codeberg.org/johba/harb/pulls/92
This commit is contained in:
parent
c2720c35a5
commit
5d71753086
13 changed files with 211 additions and 100 deletions
|
|
@ -26,7 +26,7 @@ if [[ -n "$GIT_BRANCH" ]]; then
|
|||
fi
|
||||
fi
|
||||
fi
|
||||
STATE_DIR=$ROOT_DIR/tmp/podman
|
||||
STATE_DIR=$ROOT_DIR/tmp/containers
|
||||
LOG_DIR=$STATE_DIR/logs
|
||||
SETUP_LOG=$LOG_DIR/setup.log
|
||||
CONTRACT_ENV=$STATE_DIR/contracts.env
|
||||
|
|
@ -177,17 +177,14 @@ seed_application_state() {
|
|||
}
|
||||
|
||||
prime_chain() {
|
||||
log "Pre-mining 200 blocks (2x ring buffer warmup)..."
|
||||
# Try batch mine first (0xc8 = 200 blocks = 2x MINIMUM_BLOCKS_FOR_RING_BUFFER, 0x1 = 1 second interval)
|
||||
if cast rpc --rpc-url "$ANVIL_RPC" anvil_mine "0xc8" "0x1" >/dev/null 2>&1; then
|
||||
log "Used batch mining"
|
||||
log "Pre-mining 5 blocks (minimal warmup for fast Ponder sync)..."
|
||||
# Mine just 5 blocks - enough for Ponder to have some history but keeps sync fast
|
||||
if cast rpc --rpc-url "$ANVIL_RPC" anvil_mine "0x5" "0x1" >/dev/null 2>&1; then
|
||||
log "Mined 5 blocks"
|
||||
else
|
||||
log "Batch mining failed, using individual evm_mine calls"
|
||||
for i in {1..200}; do
|
||||
for i in {1..5}; do
|
||||
cast rpc --rpc-url "$ANVIL_RPC" evm_mine >/dev/null 2>&1 || true
|
||||
if ((i % 50 == 0)); then
|
||||
log "Mined $i blocks..."
|
||||
fi
|
||||
done
|
||||
fi
|
||||
log "Pre-mining complete"
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ if [[ -n "$GIT_BRANCH" ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
CONTRACT_ENV=$ROOT_DIR/tmp/podman/contracts.env
|
||||
CONTRACT_ENV=$ROOT_DIR/tmp/containers/contracts.env
|
||||
PONDER_WORKDIR=$ROOT_DIR/services/ponder
|
||||
|
||||
while [[ ! -f "$CONTRACT_ENV" ]]; do
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ if [[ -n "$GIT_BRANCH" ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
TXNBOT_ENV_FILE=$ROOT_DIR/tmp/podman/txnBot.env
|
||||
TXNBOT_ENV_FILE=$ROOT_DIR/tmp/containers/txnBot.env
|
||||
BOT_DIR=$ROOT_DIR/services/txnBot
|
||||
REQUIRED_DIST=$ROOT_DIR/kraiken-lib/dist/index.js
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ if [[ -n "$GIT_BRANCH" ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
CONTRACT_ENV=$ROOT_DIR/tmp/podman/contracts.env
|
||||
CONTRACT_ENV=$ROOT_DIR/tmp/containers/contracts.env
|
||||
APP_DIR=$ROOT_DIR/web-app
|
||||
SWAP_ROUTER=0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue