Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cerberus docker #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions cerberus/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## Introduction

This docker stack allow you to run and manage https://github.com/Layr-Labs/cerberus remote signer. Please check the repo for motivation behind the remote signer.

## Setup

1. Change your shell current working directory to this folder.

2. Bring up docker compose

```
docker compose pull
docker compose up -d
```

3. Connect cerberus into your operator network

```
# on mainnet
docker network connect ava_ethereum cerberus

# on testnet
docker network connect ava cerberus
```

## Operator update

Now you will have cerberus running and reachable from your operator. You can edit your operator.yaml config file and add this in


```
bls_remote_signer:
grpc_url: "cerberus:50051"
public_key: "<pub-key-from-cerberus>"
password: "<password-from-cerberus>"
```

You can delete the bls_private_key_store_path in the config file and delete the bls password from your env.
24 changes: 24 additions & 0 deletions cerberus/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: cerberus
services:
cerberus:
container_name: cerberus
command:
- "--keystore-dir=/data/keystore"
ports:
- ${CERBERUS_GRPC_PORT:-9190}:
volumes:
- keystore:/data/keystore:rw
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
# Once EigenLayer release the official image, switch to it
image: ${CERBERUS_IMAGE:-avaprotocol/ceberus:latest}
restart: unless-stopped
networks:
- cerberus

networks:
cerberus:
name: cerberus