-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(CI): Docker compose for all components (#1044)
Co-authored-by: Mariano Nicolini <[email protected]> Co-authored-by: samoht9277 <[email protected]>
- Loading branch information
Showing
18 changed files
with
830 additions
and
21 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,14 @@ | ||
docker/* | ||
**/.DS_Store | ||
**/.idea | ||
out | ||
cache | ||
**/build | ||
**/target | ||
**/aligned_verification_data | ||
**/broadcast | ||
volume | ||
nonce_*.bin | ||
docker-compose.yaml | ||
.github/** | ||
**.md |
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,56 @@ | ||
name: "[CI] Send proofs to network" | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
paths-ignore: | ||
- '**.md' | ||
|
||
concurrency: | ||
group: pull_request-${{ github.event.pull_request.number }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
network-test-docker-compose: | ||
name: "Test network with Docker Compose" | ||
runs-on: aligned-runner-ci | ||
permissions: | ||
contents: read | ||
packages: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Log in to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Build containers | ||
run: make docker_build | ||
|
||
- name: Start containers and initialize network | ||
run: make docker_up && sleep 15 | ||
|
||
- name: Send proofs batches | ||
run: make docker_batcher_send_all_proofs_burst | ||
|
||
- name: Verify all sent proofs | ||
run: make docker_verify_proof_submission_success | ||
|
||
- name: Stop containers | ||
continue-on-error: true | ||
if: always() | ||
run: make docker_down | ||
|
||
- name: Ensure admin permissions in _work | ||
if: always() | ||
run: sudo chown admin:admin -R /home/admin/actions-runner/_work/ |
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
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
AWS_SECRET_ACCESS_KEY=test | ||
AWS_REGION=us-east-2 | ||
AWS_ACCESS_KEY_ID=test | ||
AWS_BUCKET_NAME=aligned.storage | ||
UPLOAD_ENDPOINT=http://localstack:4566 | ||
DOWNLOAD_ENDPOINT=http://localstack:4566/aligned.storage | ||
RUST_LOG=info | ||
RUST_BACKTRACE=1 |
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
# Common variables for all the services | ||
# 'production' only prints info and above. 'development' also prints debug | ||
environment: "production" | ||
aligned_layer_deployment_config_file_path: "./contracts/script/output/devnet/alignedlayer_deployment_output.json" | ||
eigen_layer_deployment_config_file_path: "./contracts/script/output/devnet/eigenlayer_deployment_output.json" | ||
eth_rpc_url: "http://anvil:8545" | ||
eth_rpc_url_fallback: "http://anvil:8545" | ||
eth_ws_url: "ws://anvil:8545" | ||
eth_ws_url_fallback: "ws://anvil:8545" | ||
eigen_metrics_ip_port_address: "localhost:9090" | ||
|
||
## ECDSA Configurations | ||
ecdsa: | ||
private_key_store_path: "config-files/anvil.aggregator.ecdsa.key.json" | ||
private_key_store_password: "" | ||
|
||
## BLS Configurations | ||
bls: | ||
private_key_store_path: "config-files/anvil.aggregator.bls.key.json" | ||
private_key_store_password: "" | ||
|
||
## Aggregator Configurations | ||
aggregator: | ||
server_ip_port_address: 0.0.0.0:8090 | ||
bls_public_key_compendium_address: 0x322813Fd9A801c5507c9de605d63CEA4f2CE6c44 | ||
avs_service_manager_address: 0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690 | ||
enable_metrics: true | ||
metrics_ip_port_address: 0.0.0.0:9091 | ||
telemetry_ip_port_address: localhost:4001 | ||
garbage_collector_period: 2m #The period of the GC process. Suggested value for Prod: '168h' (7 days) | ||
garbage_collector_tasks_age: 20 #The age of tasks that will be removed by the GC, in blocks. Suggested value for prod: '216000' (30 days) | ||
garbage_collector_tasks_interval: 10 #The interval of queried blocks to get an old batch. Suggested value for prod: '900' (3 hours) |
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,28 @@ | ||
# Common variables for all the services | ||
# 'production' only prints info and above. 'development' also prints debug | ||
environment: "production" | ||
aligned_layer_deployment_config_file_path: "./contracts/script/output/devnet/alignedlayer_deployment_output.json" | ||
eigen_layer_deployment_config_file_path: "./contracts/script/output/devnet/eigenlayer_deployment_output.json" | ||
eth_rpc_url: "http://anvil:8545" | ||
eth_rpc_url_fallback: "http://anvil:8545" | ||
eth_ws_url: "ws://anvil:8545" | ||
eth_ws_url_fallback: "ws://anvil:8545" | ||
eigen_metrics_ip_port_address: "localhost:9090" | ||
|
||
## ECDSA Configurations | ||
ecdsa: | ||
private_key_store_path: "config-files/anvil.batcher.ecdsa.key.json" | ||
private_key_store_password: "" | ||
|
||
## Batcher configurations | ||
batcher: | ||
block_interval: 3 | ||
batch_size_interval: 10 | ||
max_proof_size: 67108864 # 64 MiB | ||
max_batch_size: 268435456 # 256 MiB | ||
eth_ws_reconnects: 99999999999999 | ||
pre_verification_is_enabled: true | ||
metrics_port: 9093 | ||
non_paying: | ||
address: 0xa0Ee7A142d267C1f36714E4a8F75612F20a79720 # Anvil address 9 | ||
replacement_private_key: ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 # Anvil address 1 |
Oops, something went wrong.