Skip to content

Commit

Permalink
Nethermind executable names for v1.21 (#1524)
Browse files Browse the repository at this point in the history
* Nethermind executable names for v1.21

* Do not offer Erigon on Gnosis ARM64
  • Loading branch information
yorickdowne authored Sep 29, 2023
1 parent e41ec9f commit 2169d3d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
6 changes: 2 additions & 4 deletions .github/check-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ __service=$1

__containerID=$(docker-compose ps -q "${__service}")

__initial_restart_count=$(docker inspect --format '{{ .RestartCount }}' "$__containerID")
__restart_count=$(docker inspect --format '{{ .RestartCount }}' "$__containerID")
__is_running=$(docker inspect --format '{{ .State.Running }}' "$__containerID")
sleep 10
__final_restart_count=$(docker inspect --format '{{ .RestartCount }}' "$__containerID")

if [ "$__is_running" != "true" ] || [ "$__final_restart_count" -gt "$__initial_restart_count" ]; then
if [ "$__is_running" != "true" ] || [ "$__restart_count" -gt 1 ]; then
echo "$__service is either not running or continuously restarting"
docker-compose ps "${__service}"
docker-compose logs "${__service}"
Expand Down
21 changes: 14 additions & 7 deletions ethd
Original file line number Diff line number Diff line change
Expand Up @@ -2089,18 +2089,25 @@ again or Cancel on the next screen." 10 75

query_execution_client() {
if [ "${NETWORK}" = "gnosis" ]; then
EXECUTION_CLIENT=$(whiptail --notags --title "Select execution client" --menu \
"Which execution client do you want to run?" 9 60 2 \
"nethermind.yml" "Nethermind (.NET)" \
"erigon.yml" "Erigon (Go)" 3>&1 1>&2 2>&3)
elif [ "${NETWORK}" = "zhejiang" ]; then
EXECUTION_CLIENT=nethermind.yml
if uname -a | grep -q aarch64; then
EXECUTION_CLIENT=$(whiptail --notags --title "Select execution client" --menu \
"Which execution client do you want to run?" 9 60 2 \
"nethermind.yml" "Nethermind (.NET)" \
"NONE" "Custom - Distributed" 3>&1 1>&2 2>&3)
else
EXECUTION_CLIENT=$(whiptail --notags --title "Select execution client" --menu \
"Which execution client do you want to run?" 9 60 2 \
"nethermind.yml" "Nethermind (.NET)" \
"erigon.yml" "Erigon (Go)" \
"NONE" "Custom - Distributed" 3>&1 1>&2 2>&3)
fi
elif uname -a | grep -q aarch64; then
EXECUTION_CLIENT=$(whiptail --notags --title "Select execution client" --menu \
"Which execution client do you want to run?" 9 60 3 \
"besu.yml" "Besu (Java)" \
"nethermind.yml" "Nethermind (.NET)" \
"geth.yml" "Geth (Go)" 3>&1 1>&2 2>&3)
"geth.yml" "Geth (Go)" \
"NONE" "Custom - Distributed" 3>&1 1>&2 2>&3)
else
EXECUTION_CLIENT=$(whiptail --notags --title "Select execution client" --menu \
"Which execution client do you want to run?" 12 60 5 \
Expand Down
3 changes: 1 addition & 2 deletions nethermind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ services:
<<: *logging
entrypoint:
- docker-entrypoint.sh
- dotnet
- /nethermind/Nethermind.Runner.dll
- /nethermind/nethermind
- --datadir
- /var/lib/nethermind
- --Init.WebSocketsEnabled
Expand Down
5 changes: 3 additions & 2 deletions nethermind/Dockerfile.binary
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ RUN set -eux; \

# This only goes so far. keystore, logs and nethermind_db are volumes and need to be chown'd in the entrypoint
RUN chown -R ${USER}:${USER} /nethermind
RUN mkdir -p /var/lib/nethermind/ee-secret && chown -R ${USER}:${USER} /var/lib/nethermind && chmod -R 700 /var/lib/nethermind && chmod 777 /var/lib/nethermind/ee-secret
RUN mkdir -p /var/lib/nethermind/ee-secret && chown -R ${USER}:${USER} /var/lib/nethermind \
&& chmod -R 700 /var/lib/nethermind && chmod 777 /var/lib/nethermind/ee-secret

# Cannot assume buildkit, hence no chmod
COPY --chown=${USER}:${USER} ./docker-entrypoint.sh /usr/local/bin/
Expand All @@ -45,4 +46,4 @@ RUN chmod -R 755 /usr/local/bin/*

USER ${USER}

ENTRYPOINT ["dotnet","/nethermind/Nethermind.Runner.dll"]
ENTRYPOINT ["./nethermind"]
3 changes: 2 additions & 1 deletion nethermind/Dockerfile.source
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ WORKDIR /nethermind
COPY --from=build --chown=${USER}:${USER} /nethermind/out .

RUN chown -R ${USER}:${USER} /nethermind
RUN mkdir -p /var/lib/nethermind/ee-secret && chown -R ${USER}:${USER} /var/lib/nethermind && chmod -R 700 /var/lib/nethermind && chmod 777 /var/lib/nethermind/ee-secret
RUN mkdir -p /var/lib/nethermind/ee-secret && chown -R ${USER}:${USER} /var/lib/nethermind \
&& chmod -R 700 /var/lib/nethermind && chmod 777 /var/lib/nethermind/ee-secret

# Cannot assume buildkit, hence no chmod
COPY --chown=${USER}:${USER} ./docker-entrypoint.sh /usr/local/bin/
Expand Down

0 comments on commit 2169d3d

Please sign in to comment.