adoptium / containers

Repo containing the dockerfiles and scripts to produce the official eclipse-temurin containers.
https://hub.docker.com/_/eclipse-temurin/
Apache License 2.0
206 stars 91 forks source link

[Bug]: #399

Closed sravula84 closed 1 year ago

sravula84 commented 1 year ago

Please add the exact image (with tag) that you are using

eclipsejdk8-alpine

Please add the version of Docker you are running

Docker version 24.0.1, build 6802122

What happened?

we are trying to install certs

ADD https://xxxxxxx.packages/cacerts/p2pc1_root.pem /usr/local/share/ca-certificates/p2pc1_root.pem ADD https://xxxxxxx.packages/packages/cacerts/p%20Intermediate.crt /usr/local/share/ca-certificates/rIntermediate.crt RUN chmod 644 /usr/local/share/ca-certificates/p2pc1_root.pem RUN chmod 644 /usr/local/share/ca-certificates/Intermediate.crt

getting > Received fatal alert: handshake_failure , while using docker build .

looks like missing Ciphers in 8-jdk-alpine, could you please suggest ?

Relevant log output

No response

karianna commented 1 year ago

@sravula84 Can you post your full docker file?

sravula84 commented 1 year ago

FROM eclipse-temurin:8-jdk-alpine ENV APP_HOME=/opt/pro/java

Copying cacerts needed by the jvm when gradle runs and obtains dependencies from artifactory

COPY resources/cacerts /opt/java/openjdk/lib/security/

RUN apk add curl openssl RUN apk add --update --no-cache ca-certificates ADD https://artifactory.jfrog.com/artifactory/packages/cacerts/p2pc1_root.pem /usr/local/share/ca-certificates/p2pc1_root.pem ADD https://artifactory.jfrog.com/artifactory/packages/cacerts/Pro%20Intermediate.crt /usr/local/share/ca-certificates/ProIntermediate.crt RUN chmod 644 /usr/local/share/ca-certificates/p2pc1_root.pem RUN chmod 644 /usr/local/share/ca-certificates/ProIntermediate.crt

RUN update-ca-certificates RUN set -eux && \ apk add --no-cache --no-progress dos2unix

karianna commented 1 year ago

I think you forgot to register a key - see https://adoptium.net/en-GB/installation/linux/#_alpine_linux_instructions