diff --git a/build/Dockerfile b/build/Dockerfile index c5e78cd..df32ee6 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -6,13 +6,13 @@ COPY security /security COPY entrypoint.sh /usr/local/bin/entrypoint.sh USER root -RUN apt update && apt install curl -y + +# curl install throws error in ARM64 arch. It should not prevent build +RUN apt update && apt install -y curl || true RUN mkdir /var/lib/goerli-besu RUN chown -R besu:besu /var/lib/goerli-besu USER besu -ENV BESU_OPTS=$BESU_OPTS - ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] \ No newline at end of file diff --git a/build/entrypoint.sh b/build/entrypoint.sh index e342e71..f9c70bf 100755 --- a/build/entrypoint.sh +++ b/build/entrypoint.sh @@ -27,9 +27,14 @@ case "$_DAPPNODE_GLOBAL_CONSENSUS_CLIENT_PRATER" in ;; esac -# Print the jwt to the dappmanager -JWT=$(cat $JWT_PATH) -curl -X POST "http://my.dappnode/data-send?key=jwt&data=${JWT}" +# Check if curl is installed +if command -v curl >/dev/null 2>&1; then + # Print the jwt to the dappmanager + JWT=$(cat $JWT_PATH) + curl -X POST "http://my.dappnode/data-send?key=jwt&data=${JWT}" +else + echo "curl is not installed in ARM64 arch. Skipping the JWT post to package info." +fi exec besu --rpc-ws-host='0.0.0.0' \ --network=goerli \