Skip to content

Commit

Permalink
updated some docker image versions
Browse files Browse the repository at this point in the history
  • Loading branch information
CluEleSsUK committed Jan 9, 2024
1 parent 977ae76 commit 8bb91a4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Pull the latest drand image:
```shell
docker pull drandorg/go-drand:v1.5.3
docker pull drandorg/go-drand:v2.0.0
```

Create a volume where you're going to store your keypairs and other config data
Expand All @@ -20,7 +20,7 @@ docker volume create drand
Next we must create a keypair and store it in the docker volume we've just created.

```shell
docker run --rm --volume drand:/data/drand drandorg/go-drand:v1.5.3 generate-keypair --folder /data/drand/.drand --id default 0.0.0.0:8080
docker run --rm --volume drand:/data/drand drandorg/go-drand:v2.0.0 generate-keypair --folder /data/drand/.drand --id default 0.0.0.0:8080
```

This will create a keypair for the default public listening address (0.0.0.0:8080) and store it in the `/data/drand/.drand` directory
Expand All @@ -35,7 +35,7 @@ _Note_: access to this path should be firewalled to only allow connections from
## Starting drand
Finally we can start the docker container by running:
```shell
docker run --rm -d -p"8080:8080" -p"8888:8888" --name drand --volume drand:/data/drand drandorg/go-drand:v1.5.3 start --private-listen 0.0.0.0:8080
docker run --rm -d -p"8080:8080" -p"8888:8888" --name drand --volume drand:/data/drand drandorg/go-drand:v2.0.0 start --private-listen 0.0.0.0:8080
```

If we run `docker logs -f drand`, we should be able to see that the node has started and is waiting for distributed key generation:
Expand All @@ -51,7 +51,7 @@ nodes talk to one another. To expose the randomness itself, we must provide a pu

Kill the container and rerun it with a command such as:
```shell
docker run --rm -d -p"8080:8080" -p"8888:8888" -p"9080:9080" --name drand --volume drand:/data/drand drandorg/go-drand:v1.5.3 start --private-listen 0.0.0.0:8080 --public-listen 0.0.0.0:9080
docker run --rm -d -p"8080:8080" -p"8888:8888" -p"9080:9080" --name drand --volume drand:/data/drand drandorg/go-drand:v2.0.0 start --private-listen 0.0.0.0:8080 --public-listen 0.0.0.0:9080
```

Now if we run `curl -v 127.0.0.1:9080/chains` we should get a 200 response back and an empty list of chains.
Expand Down
6 changes: 3 additions & 3 deletions docker/docker-compose-network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3"
services:
drand_docker_demo_1:
container_name: drand_docker_demo1
image: drandorg/go-drand:v1.5.3
image: drandorg/go-drand:v2.0.0
command: start --verbose --private-listen drand_docker_demo1:8010 --control 8888 --public-listen 0.0.0.0:9080
volumes:
- drand_docker_demo1:/data/drand
Expand All @@ -15,7 +15,7 @@ services:

drand_docker_demo_2:
container_name: drand_docker_demo2
image: drandorg/go-drand:v1.5.3
image: drandorg/go-drand:v2.0.0
command: start --verbose --private-listen drand_docker_demo2:8020 --control 8888 --public-listen 0.0.0.0:9080
volumes:
- drand_docker_demo2:/data/drand
Expand All @@ -27,7 +27,7 @@ services:

drand_docker_demo_3:
container_name: drand_docker_demo3
image: drandorg/go-drand:v1.5.3
image: drandorg/go-drand:v2.0.0
command: start --verbose --private-listen drand_docker_demo3:8030 --control 8888 --public-listen 0.0.0.0:9080
volumes:
- drand_docker_demo3:/data/drand
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose-nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3"
services:
drand_docker_demo_drand:
container_name: drand_docker_demo_drand
image: drandorg/go-drand:v1.5.3
image: drandorg/go-drand:v2.0.0
command: start --verbose --private-listen 0.0.0.0:8080 --control 8888 --public-listen 0.0.0.0:9080
volumes:
- drand_docker_demo_drand:/data/drand
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3"
services:
drand_docker_demo:
container_name: drand_docker_demo
image: drandorg/go-drand:v1.5.3
image: drandorg/go-drand:v2.0.0
command: start --verbose --private-listen 0.0.0.0:8080 --control 8888 --public-listen 0.0.0.0:9080
volumes:
- drand_docker_demo:/data/drand
Expand Down
2 changes: 1 addition & 1 deletion docker/start-network-with-nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ docker compose --file docker-compose-nginx.yml down

# then let's create a volume for the nginx drand node and put a keypair on it pointing to the grpc port
docker volume create drand_docker_demo_drand
docker run --rm --volume drand_docker_demo_drand:/data/drand drandorg/go-drand:v1.5.3 generate-keypair --folder /data/drand/.drand --id default drand_docker_demo-nginx:81
docker run --rm --volume drand_docker_demo_drand:/data/drand drandorg/go-drand:v2.0.0 generate-keypair --folder /data/drand/.drand --id default drand_docker_demo-nginx:81
docker compose --file docker-compose-nginx.yml up --detach

# start the resharing as leader
Expand Down
2 changes: 1 addition & 1 deletion docker/start-network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


num_of_nodes=3
docker_image_version=v1.5.3
docker_image_version=v2.0.0

### first we check if docker and docker-compose are installed

Expand Down

0 comments on commit 8bb91a4

Please sign in to comment.