Consensys / web3signer

Web3Signer is an open-source signing service capable of signing on multiple platforms (Ethereum1 and 2, Filecoin) using private keys stored in an external vault, or encrypted on a disk.
https://docs.web3signer.consensys.net/
Apache License 2.0
200 stars 76 forks source link

Failed to build Dockerfile with keystorage:test FAILED #1041

Open 0xys opened 1 day ago

0xys commented 1 day ago

Build failed when trying to build web3signer as a stage on Dockerfile like bellow. Anyone knows how to fix?

FROM eclipse-temurin:17 AS builder

ARG BUILD_TARGET=24.6.0
ARG REPO=Consensys/web3signer.git

USER root

RUN apt-get update && apt-get install -y ca-certificates git

WORKDIR /app/src
RUN sh -c "git clone --recursive https://github.com/Consensys/web3signer.git \ 
        && cd web3signer \
        && git config advice.detachedHead false \
        && git fetch --all --tags \
        && git checkout ${BUILD_TARGET} \
        && git submodule update --init --recursive \
        && ./gradlew build"

errors

285.6 > Task :keystorage:spotlessGroovyGradle
285.6 Errors occurred while build effective model from /root/.gradle/caches/modules-2/files-2.1/org.eclipse.platform/org.eclipse.swt/3.127.0/568812336b1cbb5eed160e49e64d109cd90dfed2/org.eclipse.swt-3.127.0.pom:
285.6     'dependencies.dependency.artifactId' for org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in org.eclipse.platform:org.eclipse.swt:3.127.0
285.6

...

305.0 > Task :keystorage:test
305.0
305.0 HashicorpConnectionFactoryTest > missingAndUncreatableWhiteListThrowsHashicorpException() FAILED
305.0     java.lang.AssertionError at HashicorpConnectionFactoryTest.java:72
305.4
305.4 > Task :keystorage:test FAILED