Skip to content

Commit

Permalink
Enforce JDK8, use alpine:latest, remove cargo audit
Browse files Browse the repository at this point in the history
  • Loading branch information
mrautio committed Jul 24, 2023
1 parent e9ac471 commit 7939e05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
FROM alpine:edge
FROM alpine:latest

WORKDIR /tmp

# JDK8 is best supported by different JavaCard versions
RUN apk add --no-cache bash openjdk8 gcc make pkgconfig openssl-dev rust cargo gradle>6.0.0 && cargo install cargo-audit
RUN apk add --no-cache bash gcc make pkgconfig openssl-dev rust cargo gradle>6.0.0 openjdk8=8.372.07-r0

# JDK8 is best supported by different JavaCard versions (<=3.0.4)
ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk/
ENV PATH $PATH:/usr/lib/jvm/java-1.8-openjdk/bin
ENV JAVA_VERSION 8u372
ENV JAVA_ALPINE_VERSION 8.372.07-r0

COPY oracle_javacard_sdks ./oracle_javacard_sdks
COPY build.gradle gradle.properties ./
Expand Down
8 changes: 0 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,6 @@ if (System.properties['os.name'].toLowerCase().contains('windows')) {
ext.cmd_shell_option = "/c"
}

task auditSimulatorLibrary(type: Exec) {
group "Verification"
description "Audit rust dependencies"
workingDir 'src/test/rust/simulator'

commandLine "${cmd_shell}", "${cmd_shell_option}", 'cargo audit'
}

task buildSimulatorLibrary(type: Exec) {
group "Build"
description "Build Rust simulator library"
Expand Down

0 comments on commit 7939e05

Please sign in to comment.