Skip to content

Commit 7847de1

Browse files
committed
chore: minor updates for testnet worker conf
1 parent 547d46a commit 7847de1

File tree

4 files changed

+40
-30
lines changed

4 files changed

+40
-30
lines changed

.env

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
AVS__LAGR_PWD=
44
# set Network to holesky for testnet
55
NETWORK=mainnet
6+
VERSION="1.1.8"

Update_worker.md

+16-11
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,35 @@
11
# Update a Worker
22

33
1. Stop the worker
4-
``` sh
5-
# If you are running docker compose directly
6-
docker compose down
7-
# If you are running the worker in systemd
8-
sudo systemctl stop worker.service
9-
```
4+
5+
```sh
6+
# If you are running docker compose directly
7+
docker compose down
8+
# If you are running the worker in systemd
9+
sudo systemctl stop worker.service
10+
```
11+
1012
---
13+
1114
2. Update the worker
1215

1316
**Update from source**
14-
If you are building the docker from source then check `Build_from_source.md` in this same git repository.
15-
Make sure to edit the version to the version you would like to update to.
16-
The newly built docker with the tag `lgn-coprocessor:local` should override your previous docker image.
17+
If you are building the docker from source then check `Build_from_source.md` in this same git repository.
18+
Make sure to edit the version to the version you would like to update to.
19+
The newly built docker with the tag `lgn-coprocessor:local` should override your previous docker image.
1720

1821
**Update by pulling from dockerhub**
1922

2023
```sh
21-
docker pull lagrangelabs/worker:mainnet
24+
docker pull lagrangelabs/worker:v1.1.8
2225
```
26+
2327
---
28+
2429
3. Run the worker
2530
```sh
2631
# If you are running docker compose directly
2732
docker compose up -d
2833
# If you are running the worker in systemd
2934
sudo systemctl start worker.service
30-
```
35+
```

config/worker-conf.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ version = "1.1.8"
44

55
[avs]
66
# for testnet, use:
7-
#gateway_url = "http://a2d5e507a3397433490d96c674eb51b7-b2a8d19e1bd1fd40.elb.us-east-2.amazonaws.com:10000"
7+
gateway_url = "http://a2d5e507a3397433490d96c674eb51b7-b2a8d19e1bd1fd40.elb.us-east-2.amazonaws.com:10000"
88
# for mainnet, use:
9-
gateway_url = "ws://gateway.prod-distributed-query.prod.distributed-query.io:80"
9+
# gateway_url = "ws://gateway.prod-distributed-query.prod.distributed-query.io:80"
1010
issuer = "lagrange"
1111
#This is a display name for your worker. please change it.
1212
worker_id = "CHANGE_THIS_TO_YOUR_OPERATOR_NAME"

docker-compose.yaml

+21-17
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
11
services:
22
worker:
3-
#image: lagrangelabs/worker:holesky
4-
image: lagrangelabs/worker:${NETWORK}
3+
image: lagrangelabs/worker:${VERSION}
54
container_name: worker
65
environment:
7-
###################################
8-
#Setup variables###################
9-
# You can find the list of the public RPCs for holesky here https://chainlist.org/chain/17000
10-
- RPC_URL=https://eth.llamarpc.com
11-
- AVS__ETH_PWD=${AVS__ETH_PWD}
12-
- AVS__ETH_KEYSTORE=/config/priv_key.json
13-
- NETWORK=${NETWORK}
14-
###################################
15-
- AVS__LAGR_KEYSTORE=/config/lagr_keystore.json
16-
- AVS__LAGR_PWD=${AVS__LAGR_PWD}
17-
- RUST_LOG=info,worker=debug
18-
- PUBLIC_PARAMS__SKIP_STORE=false
6+
###################################
7+
#Setup variables###################
8+
# You can find the list of the public RPCs for holesky here https://chainlist.org/chain/17000
9+
- RPC_URL=https://eth.llamarpc.com
10+
- AVS__ETH_PWD=${AVS__ETH_PWD}
11+
- AVS__ETH_KEYSTORE=/config/priv_key.json
12+
- NETWORK=${NETWORK}
13+
###################################
14+
- AVS__LAGR_KEYSTORE=/config/lagr_keystore.json
15+
- AVS__LAGR_PWD=${AVS__LAGR_PWD}
16+
- RUST_LOG=info,worker=debug
17+
- PUBLIC_PARAMS__SKIP_STORE=false
1918
ports:
2019
- "9090:9090"
2120
volumes:
2221
- ./config:/config
2322
- ./zkmr_params:/zkmr_params
2423
restart: always
2524
pull_policy: always
26-
command: ["/bin/sh", "-c", "ulimit -s unlimited && worker --json --config /config/worker-conf.toml"]
27-
#fetch new docker every minute
25+
command:
26+
[
27+
"/bin/sh",
28+
"-c",
29+
"ulimit -s unlimited && worker --json --config /config/worker-conf.toml",
30+
]
31+
#fetch new docker every minute
2832
watchtower:
2933
image: containrrr/watchtower
3034
container_name: watchtower
3135
volumes:
3236
- /var/run/docker.sock:/var/run/docker.sock
33-
command: --interval 60 lagrangelabs/worker:${NETWORK}
37+
command: --interval 60 lagrangelabs/worker:${VERSION}

0 commit comments

Comments
 (0)