From f43961662e9d97dd7b78f6f69c3868c1dcff8258 Mon Sep 17 00:00:00 2001 From: Alec Savvy Date: Tue, 16 May 2023 15:05:57 -0600 Subject: [PATCH] PLAT-970: push latest nethermind image to dockerhub (#5230) --- discovery-provider/chain/Dockerfile.acdc | 2 +- discovery-provider/chain/README.md | 3 +++ discovery-provider/chain/publish.sh | 16 ++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 discovery-provider/chain/README.md create mode 100755 discovery-provider/chain/publish.sh diff --git a/discovery-provider/chain/Dockerfile.acdc b/discovery-provider/chain/Dockerfile.acdc index 30a37f2b5d5..c9cca27a590 100644 --- a/discovery-provider/chain/Dockerfile.acdc +++ b/discovery-provider/chain/Dockerfile.acdc @@ -1,3 +1,3 @@ -FROM nethermind/nethermind:1.14.3 +FROM nethermind/nethermind:1.18.0 RUN apt-get update && apt-get -y install curl jq diff --git a/discovery-provider/chain/README.md b/discovery-provider/chain/README.md new file mode 100644 index 00000000000..f9bd98ae4e3 --- /dev/null +++ b/discovery-provider/chain/README.md @@ -0,0 +1,3 @@ +# ACDC + +To push latest ACDC version use publish.sh script. diff --git a/discovery-provider/chain/publish.sh b/discovery-provider/chain/publish.sh new file mode 100755 index 00000000000..35d25b2cb6f --- /dev/null +++ b/discovery-provider/chain/publish.sh @@ -0,0 +1,16 @@ +#!/bin/bash +if [ -z "$1" ] +then + echo "no version arg supplied" + exit 1 +fi + +tag=$1 +imagename="audius/nethermind" +imagetag="${imagename}:${tag}" + +echo "Publishing audius nethermind version $imagetag to dockerhub"; +echo "Login with audius dockerhub credentials"; + +docker login +docker buildx build --platform linux/amd64,linux/arm64 -f Dockerfile.acdc -t $imagetag --push .