Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build error for emv-card-simulator #22

Closed
Bozai2222 opened this issue Sep 4, 2024 · 2 comments
Closed

Docker build error for emv-card-simulator #22

Bozai2222 opened this issue Sep 4, 2024 · 2 comments

Comments

@Bozai2222
Copy link

I am encountering an issue while building the emv-card-simulator project using Docker. Below are the details of the error and the steps I followed. I would appreciate your assistance in resolving this problem.

Issue Details:
Project: emv-card-simulator
Build Tool: Docker
Error Message:[internal] load build definition from Dockerfile
transferring 1697/0 0.011
[internal] load metadata for docker.io/library/alpine:latest
[internal] load .dockerignore
[internal] load build context
transferring 126538/0 0.103
[1/9] FROM docker.io/library/alpine:latest@sha256:0a4eaa0eecf5f8c050e5bba433f58c052be7587ee8af3e8b3910ef9ab5fbe9f5
[3/9] RUN apk add --no-cache bash gcc make pkgconfig openssl-dev rust cargo gradle openjdk8
[2/9] WORKDIR /tmp
[5/9] COPY build.gradle gradle.properties ./
[6/9] COPY config ./config
[8/9] COPY src ./src
[9/9] RUN gradle build && gradle -Pjc_version=3.0.5 --console=verbose clean cap --info && mkdir --parents /tmp/javacard_build/3_0_5 && mv /tmp/build/.cap /tmp/javacard_build/3_0_5/ && gradle -Pjc_version=3.0.4 --console=verbose clean cap --info && mkdir --parents /tmp/javacard_build/3_0_4 && mv /tmp/build/.cap /tmp/javacard_build/3_0_4/ && gradle -Pjc_version=3.0.1 --console=verbose clean cap --info && mkdir --parents /tmp/javacard_build/3_0_1 && mv /tmp/build/.cap /tmp/javacard_build/3_0_1/ && gradle -Pjc_version=2.2.2 --console=verbose clean cap --info && mkdir --parents /tmp/javacard_build/2_2_2 && mv /tmp/build/.cap /tmp/javacard_build/2_2_2/ && gradle -Pjc_version=2.2.1 --console=verbose clean cap --info && mkdir --parents /tmp/javacard_build/2_2_1 && mv /tmp/build/*.cap /tmp/javacard_build/2_2_1/ && tar cvzf javacard_build.tar.gz javacard_build

Welcome to Gradle 8.7!

Here are the highlights of this release:

  • Compiling and testing with Java 22
  • Cacheable Groovy script compilation
  • New methods in lazy collection properties

For more details see https://docs.gradle.org/8.7/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

Task :compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Task :compileGroovy NO-SOURCE
Task :processResources NO-SOURCE
Task :classes
Task :jar
Task :assemble
Task :compileTestJava FAILED
Task :checkstyleMain

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileTestJava'.

Dependency verification failed for configuration ':testCompileClasspath':

  • On artifact junit-jupiter-api-5.11.0.jar (org.junit.jupiter:junit-jupiter-api:5.11.0) in repository 'MavenRepo': checksum is missing from verification metadata.
  • On artifact junit-platform-commons-1.11.0.jar (org.junit.platform:junit-platform-commons:1.11.0) in repository 'MavenRepo': checksum is missing from verification metadata.
    If the artifacts are trustworthy, you will need to update the gradle/verification-metadata.xml file. For more on how to do this, please refer to https://docs.gradle.org/8.7/userguide/dependency_verification.html#sec:troubleshooting-verification in the Gradle documentation.

These files failed verification:

  • GRADLE_USER_HOME/caches/modules-2/files-2.1/org.junit.jupiter/junit-jupiter-api/5.11.0/2093fd814e940224cfa5a1882d87cc9d81e25c3/junit-jupiter-api-5.11.0.jar
  • GRADLE_USER_HOME/caches/modules-2/files-2.1/org.junit.platform/junit-platform-commons/1.11.0/9bb41eff52781584798c487b68782ae3b4126f14/junit-platform-commons-1.11.0.jar
    GRADLE_USER_HOME = /root/.gradle

These files failed verification:

  • GRADLE_USER_HOME/caches/modules-2/files-2.1/org.junit.jupiter/junit-jupiter-api/5.11.0/2093fd814e940224cfa5a1882d87cc9d81e25c3/junit-jupiter-api-5.11.0.jar
  • GRADLE_USER_HOME/caches/modules-2/files-2.1/org.junit.platform/junit-platform-commons/1.11.0/9bb41eff52781584798c487b68782ae3b4126f14/junit-platform-commons-1.11.0.jar

GRADLE_USER_HOME = /root/.gradle

Open this report for more details: file:///tmp/build/reports/dependency-verification/at-1725474806009/dependency-verification-report.html

  • Try:

Run with --stacktraceoption to get the stack trace.
Run with--infoor --debugoption to get more log output.
Run with--scanto get full insights.
Get more help athttps://help.gradle.org.

BUILD FAILEDin 18s
4 actionable tasks: 4 executed
[4/9] COPY oracle_javacard_sdks ./oracle_javacard_sdks
[7/9] COPY gradle ./gradle

@mrautio
Copy link
Owner

mrautio commented Sep 5, 2024

the gradle lock dependencies seem to be causing issues. i can do an update possibly tomorrow

@mrautio
Copy link
Owner

mrautio commented Sep 6, 2024

#23 should fix the issue

@mrautio mrautio closed this as completed Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants