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

Commit 57427e1

Browse files
committed
Fixed formatting and Dockerfile to pull ENV vars again
1 parent 57e2fdb commit 57427e1

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

build/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ ARG UPSTREAM_VERSION
33
FROM hyperledger/besu:${UPSTREAM_VERSION}
44

55
USER root
6+
67
RUN mkdir /var/lib/besu
78

89
COPY jwtsecret.hex /jwtsecret
910
COPY entrypoint.sh /usr/bin/entrypoint.sh
1011

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

13-
ENV BESU_OPTS=$BESU_OPTS
14-
1514
USER besu
1615

16+
ENV BESU_OPTS=$BESU_OPTS
17+
1718
ENTRYPOINT [ "entrypoint.sh" ]

build/entrypoint.sh

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,21 @@ else
66
echo "Using supplied jwtsecret!"
77
fi
88

9-
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
9+
exec besu --rpc-ws-host=0.0.0.0 \
10+
--rpc-ws-enabled=$WS_ENABLED \
11+
--rpc-http-host=0.0.0.0 \
12+
--rpc-http-enabled=$RPC_ENABLED \
13+
--host-allowlist="*" \
14+
--rpc-http-cors-origins="*" \
15+
--engine-rpc-port=8551 \
16+
--engine-host-allowlist="*" \
17+
--engine-jwt-secret=/jwtsecret \
18+
--engine-rpc-enabled=$ENGINE_API_ENABLED \
19+
--data-storage-format=$STORAGE_FORMAT
20+
--metrics-enabled \
21+
--metrics-host=0.0.0.0 \
22+
--data-path="/var/lib/besu" \
23+
--sync-mode=$SYNC_MODE \
24+
--rpc-http-max-active-connections=$MAX_HTTP_CONNECTIONS \
25+
--p2p-port=$P2P_PORT \
26+
$EXTRA_OPTS

0 commit comments

Comments
 (0)