Public Repository

Last pushed: 11 days ago
Short Description
Short description is empty for this repo.
Full Description

Installing jdk1.8 and diagnostic scripst on oraclelinux:7

FROM gksm/oel7_basesoft:latest

MAINTAINER Evgenii.Poliakov@gmail.com

RUN mkdir -p /opt/oracle/java && \
mkdir -p /opt/oracle/mid/java && \
curl -jksSLH "Cookie: oraclelicense=accept-securebackup-cookie" -o /opt/jdk-8u102-linux-x64.tar.gz "http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-linux-x64.tar.gz" && \
tar -xzvf /opt/jdk-8u102-linux-x64.tar.gz -C /opt/oracle/java && \
rm -rf /opt/jdk-8u102-linux-x64.tar.gz && \
ln -s /opt/oracle/java/jdk1.8.0_102 /opt/oracle/java/latest && \
find /opt/oracle/java/latest/jre/lib/security/* -name java.security -type f -exec sed -i -r 's/securerandom.source=file:\/dev\/random/securerandom.source=file:\/dev\/.\/urandom/g' {} \;

#Java diag scripts
COPY heapDump.sh /opt/oracle/mid/java
COPY jmapHisto.sh /opt/oracle/mid/java
COPY threadDump.sh /opt/oracle/mid/java

ENV DEFAULT_REGEXP=""
ENV DEFAUIL_DST_DIR=/media/data/diag
ENV DEFAULT_USER=root

ENV JAVA_HOME=/opt/oracle/java/latest
ENV PATH=${JAVA_HOME}/bin:$PATH

CMD /bin/bash

Docker Pull Command
Owner
gksm

Comments (0)