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

Commit

Permalink
Fixed formatting and Dockerfile to pull ENV vars again
Browse files Browse the repository at this point in the history
  • Loading branch information
Nabsku committed Aug 25, 2022
1 parent 57e2fdb commit 57427e1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
5 changes: 3 additions & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ 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

ENV BESU_OPTS=$BESU_OPTS

USER besu

ENV BESU_OPTS=$BESU_OPTS

ENTRYPOINT [ "entrypoint.sh" ]
19 changes: 18 additions & 1 deletion build/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,21 @@ else
echo "Using supplied jwtsecret!"
fi

exec 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
exec 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

0 comments on commit 57427e1

Please sign in to comment.