Skip to content

Commit

Permalink
Don't verify during download via curl (#862)
Browse files Browse the repository at this point in the history
Motivation:

Our curl version is too old, just don't verify while download sdkman

Modifications:

Download via -k

Result:

Build docker image again
  • Loading branch information
normanmaurer committed Mar 25, 2024
1 parent 0cb6518 commit 919b0b0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docker/Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ RUN wget -q --no-check-certificate https://github.com/netty/netty-tcnative/relea

RUN rm -rf $SOURCE_DIR


# Downloading and installing SDKMAN!
RUN echo '-k' > $HOME/.curlrc
RUN curl -s "https://get.sdkman.io" | bash

ARG java_version="8.0.302-zulu"
ENV JAVA_VERSION $java_version
RUN rm $HOME/.curlrc

# Don't check the certificates as our curl version is too old.
RUN echo 'sdkman_insecure_ssl=true' >> $HOME/.sdkman/etc/config
Expand All @@ -67,6 +67,9 @@ RUN bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && \
rm -rf $HOME/.sdkman/archives/* && \
rm -rf $HOME/.sdkman/tmp/*"

ARG java_version="8.0.302-zulu"
ENV JAVA_VERSION $java_version

RUN echo 'export JAVA_HOME="/root/.sdkman/candidates/java/current"' >> ~/.bashrc
RUN echo 'PATH=$JAVA_HOME/bin:$PATH' >> ~/.bashrc

Expand Down

0 comments on commit 919b0b0

Please sign in to comment.