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

Don't verify during download via curl #862

Merged
merged 2 commits into from
Mar 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading