cloning contract repo as part of geth poa

This commit is contained in:
kant 2023-12-11 18:22:54 -08:00
parent 8df9f35976
commit b3e168eafa

View file

@ -1,6 +1,6 @@
version: '3'
services:
bootnode:
geth-bootnode:
build:
context: ..
dockerfile: geth-poa/Dockerfile
@ -118,12 +118,15 @@ services:
contract-deployer:
image: ghcr.io/foundry-rs/foundry
environment:
RPC_URL: "http://bootnode:8545" # Pointing to the Geth bootnode
RPC_URL: "http://geth-bootnode:8545" # Pointing to the Geth bootnode
command: >
sh -c "forge compile &&
sh -c "git clone git@github.com:primevprotocol/contracts.git &&
cd contracts &&
forge compile &&
forge script scripts/DeployScripts.s.sol:DeployScript --rpc-url '$RPC_URL' --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 --broadcast --chain-id 17864 -vvvv || echo 'Script execution failed'"
depends_on:
- bootnode
- geth-bootnode
hyperlane-deployer:
build: