forked from 0xPolygonHermez/zkevm-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduced docker compose v2 support through file deploy-dockerv2.sh
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
sudo rm -rf docker/gethData/geth_data | ||
DEV_PERIOD=1 docker compose -f docker/docker-compose.geth.yml up -d geth | ||
sleep 5 | ||
node docker/scripts/fund-accounts.js | ||
cp docker/scripts/deploy_parameters_docker.json deployment/deploy_parameters.json | ||
cp docker/scripts/genesis_docker.json deployment/genesis.json | ||
npx hardhat run deployment/testnet/prepareTestnet.js --network localhost | ||
npx hardhat run deployment/2_deployPolygonZKEVMDeployer.js --network localhost | ||
npx hardhat run deployment/3_deployContracts.js --network localhost | ||
mkdir docker/deploymentOutput | ||
mv deployment/deploy_output.json docker/deploymentOutput | ||
docker compose -f docker/docker-compose.geth.yml down | ||
sudo docker build -t hermeznetwork/geth-zkevm-contracts -f docker/Dockerfile.geth . | ||
# Let it readable for the multiplatform build coming later! | ||
sudo chmod -R go+rxw docker/gethData |
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