简体   繁体   中英

is possible to install oracle jdk 8 in jenkins docker container

我正在 jenkins docker 容器中构建一个应用程序,但是 jenkins 默认使用 openjdk,有时 openjdk compile jar 无法运行,所以我想在 jenkins 容器中安装 Oracle JDK 8,docker 使用 alpline。是否可以在其中安装 Oracle JDK apline?我正在从互联网上搜索并找到较少的信息。有些不工作: https ://wiki.alpinelinux.org/wiki/Installing_Oracle_Java。有什么建议吗?

try to using this command in Dockerfile to dowload JDK and install:

 RUN wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz -O /tmp/jdk-8-linux-x64.tar.gz

if could not download from Oracle, replace the url to custom jdk download url(put jdk package into your own server).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM