forked from jenkinsci/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,47 @@ | ||
FROM java:8-jdk | ||
|
||
RUN apt-get update && apt-get install -y git curl zip && rm -rf /var/lib/apt/lists/* | ||
|
||
FROM centos:centos7 | ||
MAINTAINER Patrick M. Slattery <[email protected]> | ||
|
||
# Java Version | ||
ENV JAVA_VERSION_MAJOR 8 | ||
ENV JAVA_VERSION_MINOR 92 | ||
ENV JAVA_VERSION_BUILD 14 | ||
ENV JAVA_PACKAGE server-jre | ||
# Set environment | ||
ENV JAVA_HOME /opt/java | ||
|
||
# Download and unarchive Java | ||
RUN \ | ||
# overlayfs workaround | ||
touch /var/lib/rpm/* && \ | ||
yum clean all && yum update -y && yum clean all && \ | ||
curl --fail --retry 3 --insecure --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie"\ | ||
--location http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_PACKAGE}-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.tar.gz -#\ | ||
| gunzip | tar x -C /opt && \ | ||
mv /opt/jdk1.${JAVA_VERSION_MAJOR}.0_${JAVA_VERSION_MINOR} /opt/java && \ | ||
rm -rf /opt/java/*src.zip \ | ||
/opt/java/lib/missioncontrol \ | ||
/opt/java/lib/visualvm \ | ||
/opt/java/lib/*javafx* \ | ||
/opt/java/jre/lib/plugin.jar \ | ||
/opt/java/jre/lib/ext/jfxrt.jar \ | ||
/opt/java/jre/bin/javaws \ | ||
/opt/java/jre/lib/javaws.jar \ | ||
/opt/java/jre/lib/desktop \ | ||
/opt/java/jre/plugin \ | ||
/opt/java/jre/lib/deploy* \ | ||
/opt/java/jre/lib/*javafx* \ | ||
/opt/java/jre/lib/*jfx* \ | ||
/opt/java/jre/lib/amd64/libdecora_sse.so \ | ||
/opt/java/jre/lib/amd64/libprism_*.so \ | ||
/opt/java/jre/lib/amd64/libfxplugins.so \ | ||
/opt/java/jre/lib/amd64/libglass.so \ | ||
/opt/java/jre/lib/amd64/libgstreamer-lite.so \ | ||
/opt/java/jre/lib/amd64/libjavafx*.so \ | ||
/opt/java/jre/lib/amd64/libjfx*.so | ||
|
||
# Define default command. | ||
|
||
RUN yum install -y git zip && yum clean all | ||
ENV JENKINS_HOME /var/jenkins_home | ||
ENV JENKINS_SLAVE_AGENT_PORT 50000 | ||
|
||
|