We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac1ef21 commit 329ccf3Copy full SHA for 329ccf3
docker_atom/work/script-setup.sh
@@ -85,7 +85,7 @@ setup_nvtop() {
85
86
87
setup_java_base() {
88
- VERSION_JDK=11 \
+ VERSION_JDK=$1; shift 1; VERSION_JDK=${VERSION_JDK:-"11"} \
89
&& URL_OPENJDK=$(curl -sL https://jdk.java.net/archive/ | grep 'linux-x64_bin.tar' | grep -v sha256 | sed -n 's/.*href="\([^"]*\).*/\1/p' | grep "jdk${VERSION_JDK}" | head -n 1) \
90
&& echo "Installing JDK from: ${URL_OPENJDK}" \
91
&& install_tar_gz "${URL_OPENJDK}" && mv /opt/jdk-* /opt/jdk \
0 commit comments