From aafa85e73bf0d3579fcc8997ec631a4ad1bf4ffe Mon Sep 17 00:00:00 2001 From: guym-blox <83158283+guym-blox@users.noreply.github.com> Date: Mon, 23 Sep 2024 21:29:14 +0300 Subject: [PATCH] replace docker hub bloxstaking to ssvlabs (#1655) Co-authored-by: guy muroch --- Makefile | 2 +- docs/OPERATOR_GETTING_STARTED.md | 10 +++++----- docs/bootnode.md | 2 +- scripts/generate_local_config.sh | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 57a1d00b44..6696eb355f 100644 --- a/Makefile +++ b/Makefile @@ -132,7 +132,7 @@ docker: .PHONY: docker-image docker-image: @echo "node ${NODES_ID}" - @sudo docker rm -f ssv_node && docker run -d --env-file .env --restart unless-stopped --name=ssv_node -p 13000:13000 -p 12000:12000/udp 'bloxstaking/ssv-node:latest' make BUILD_PATH=/go/bin/ssvnode start-node + @sudo docker rm -f ssv_node && docker run -d --env-file .env --restart unless-stopped --name=ssv_node -p 13000:13000 -p 12000:12000/udp 'ssvlabs/ssv-node:latest' make BUILD_PATH=/go/bin/ssvnode start-node NODES=ssv-node-1 ssv-node-2 ssv-node-3 ssv-node-4 .PHONY: docker-all diff --git a/docs/OPERATOR_GETTING_STARTED.md b/docs/OPERATOR_GETTING_STARTED.md index aaf3b9fb4c..1cedbb66ab 100644 --- a/docs/OPERATOR_GETTING_STARTED.md +++ b/docs/OPERATOR_GETTING_STARTED.md @@ -81,7 +81,7 @@ $ ./install.sh The following command will generate your operator's public and private keys (appear as "pk" and "sk" in the output). ``` -$ docker run --rm -it 'bloxstaking/ssv-node:latest' /go/bin/ssvnode generate-operator-keys +$ docker run --rm -it 'ssvlabs/ssv-node:latest' /go/bin/ssvnode generate-operator-keys ``` ### 5. Create a Configuration File @@ -153,7 +153,7 @@ Before start, make sure the clock is synced with NTP servers. Then, run the docker image in the same folder you created the `config.yaml`: ```shell -$ docker run -d --restart unless-stopped --name=ssv_node -e CONFIG_PATH=./config.yaml -p 13001:13001 -p 12001:12001/udp -v $(pwd)/config.yaml:/config.yaml -v $(pwd):/data --log-opt max-size=500m --log-opt max-file=10 -it 'bloxstaking/ssv-node:latest' make BUILD_PATH=/go/bin/ssvnode start-node \ +$ docker run -d --restart unless-stopped --name=ssv_node -e CONFIG_PATH=./config.yaml -p 13001:13001 -p 12001:12001/udp -v $(pwd)/config.yaml:/config.yaml -v $(pwd):/data --log-opt max-size=500m --log-opt max-file=10 -it 'ssvlabs/ssv-node:latest' make BUILD_PATH=/go/bin/ssvnode start-node \ && docker logs ssv_node --follow ``` @@ -162,13 +162,13 @@ $ docker run -d --restart unless-stopped --name=ssv_node -e CONFIG_PATH=./config The current version is available through logs or a cmd: ```shell -$ docker run --rm -it 'bloxstaking/ssv-node:latest' /go/bin/ssvnode version +$ docker run --rm -it 'ssvlabs/ssv-node:latest' /go/bin/ssvnode version ``` -In order to update, kill running container and pull the latest image or a specific version (`bloxstaking/ssv-node:`) +In order to update, kill running container and pull the latest image or a specific version (`ssvlabs/ssv-node:`) ```shell -$ docker rm -f ssv_node && docker pull bloxstaking/ssv-node:latest +$ docker rm -f ssv_node && docker pull ssvlabs/ssv-node:latest ``` Now run the container again as specified above in step 6. diff --git a/docs/bootnode.md b/docs/bootnode.md index 799352869a..99d94150bb 100644 --- a/docs/bootnode.md +++ b/docs/bootnode.md @@ -54,7 +54,7 @@ _Note: This is an example. Replace the placeholders as explained below._ docker rm -f ssv_bootnode && docker run -d --restart unless-stopped --name=ssv_bootnode \ -e CONFIG_PATH=/config.yaml -p 5000:5000 -p 4000:4000/udp \ -v $(pwd)/config.yaml:/config.yaml -v $(pwd):/data -it \ - 'bloxstaking/ssv-node-unstable:latest' make BUILD_PATH=/go/bin/ssvnode start-boot-node + 'ssvlabs/ssv-node-unstable:latest' make BUILD_PATH=/go/bin/ssvnode start-boot-node ``` _Note: `/data` must be a persistent volume to preserve the ENR across restarts!_ diff --git a/scripts/generate_local_config.sh b/scripts/generate_local_config.sh index f40d9d4f89..d6725af366 100755 --- a/scripts/generate_local_config.sh +++ b/scripts/generate_local_config.sh @@ -19,7 +19,7 @@ function create_operators() { mkdir -p config for ((i=1;i<=OP_SIZE;i++)); do - docker run --rm -it 'bloxstaking/ssv-node:latest' /go/bin/ssvnode generate-operator-keys > tmp.log + docker run --rm -it 'ssvlabs/ssv-node:latest' /go/bin/ssvnode generate-operator-keys > tmp.log PUB="$(extract_pubkey "tmp.log")" val="$PUB" yq e '.publicKeys += [env(val)]' -i "./operators.yaml" PRIV="$(extract_privkey "tmp.log")"