Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Merge branch 'Nabsku:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Nabsku authored Aug 27, 2022
2 parents b46213a + 7331135 commit 7141309
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 34 deletions.
12 changes: 4 additions & 8 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@ ARG UPSTREAM_VERSION

FROM hyperledger/besu:${UPSTREAM_VERSION}

USER root

RUN mkdir /var/lib/besu

COPY jwtsecret.hex /jwtsecret
COPY entrypoint.sh /usr/bin/entrypoint.sh

RUN chown -R besu:besu /var/lib/besu && chmod 777 /usr/bin/entrypoint.sh && chown -R besu:besu /jwtsecret && chmod 666 /jwtsecret

USER root
RUN mkdir /var/lib/besu
RUN chown -R besu:besu /var/lib/besu
USER besu

ENV BESU_OPTS=$BESU_OPTS

ENTRYPOINT [ "entrypoint.sh" ]
ENTRYPOINT besu --rpc-ws-host='0.0.0.0' --rpc-ws-enabled=$WS_ENABLED --rpc-http-host='0.0.0.0' --rpc-http-enabled=$RPC_ENABLED --host-allowlist=* --rpc-http-cors-origins=* --engine-rpc-port=8551 --engine-host-allowlist=* --engine-jwt-secret='/jwtsecret' --engine-rpc-enabled=$ENGINE_API_ENABLED --data-storage-format=$STORAGE_FORMAT --metrics-enabled --metrics-host='0.0.0.0' --data-path=/var/lib/besu --sync-mode=$SYNC_MODE --rpc-http-max-active-connections=$MAX_HTTP_CONNECTIONS --p2p-port=$P2P_PORT $EXTRA_OPTS
26 changes: 0 additions & 26 deletions build/entrypoint.sh

This file was deleted.

0 comments on commit 7141309

Please sign in to comment.