Skip to content

Commit

Permalink
feat: add execution scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
vbhattaccmu committed Oct 31, 2023
1 parent 2975f9f commit 55bf2c1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
7 changes: 7 additions & 0 deletions cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

cd geth
sudo docker compose down

cd ../client
cargo clean
6 changes: 3 additions & 3 deletions geth/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.7'
version: "3.7"

services:
geth-bootnode:
Expand Down Expand Up @@ -27,7 +27,7 @@ services:
- .env
image: geth-client
depends_on:
- geth-bootnode
- geth-bootnode
command:
--bootnodes="enode://af22c29c316ad069cf48a09a4ad5cf04a251b411e45098888d114c6dd7f489a13786620d5953738762afa13711d4ffb3b19aa5de772d8af72f851f7e9c5b164a@geth-bootnode:30303"
--allow-insecure-unlock
Expand Down Expand Up @@ -63,4 +63,4 @@ networks:
driver: bridge
ipam:
config:
- subnet: 172.16.254.0/28
- subnet: 172.16.254.0/28
2 changes: 1 addition & 1 deletion geth/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"difficulty": "1",
"gasLimit": "12000000",
"alloc": {}
}
}
7 changes: 7 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

cd geth
sudo docker compose up -d

cd ../client
cargo test

0 comments on commit 55bf2c1

Please sign in to comment.