jenkins/agent:4.7-1 的jdk替换为 oracle jdk 8u281

  sre

602fc220b1e394541.jpg_fo742.png

FROM jenkins/agent:4.7-1
MAINTAINER me <me@org>
LABEL Description="基于jenkins/agent:4.7-1镜像,将jdk改为oracle jdk 8u281"
ADD jdk-8u281-linux-x64.tar.gz  /usr/local/
ENV JAVA_HOME /usr/local/jdk1.8.0_281
ENV CLASSPATH=JAVA_HOME/bin:JAVA_HOME/lib:JAVA_HOME/jre/lib
ENV PATH=.:JAVA_HOME/bin:JAVA_HOME/jre/bin:PATH

LEAVE A COMMENT

Captcha Code