Skip to content

Commit

Permalink
Nethermind executable names for v1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Sep 14, 2023
1 parent debd090 commit 5722daf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 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
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 5722daf

Please sign in to comment.