Sign inSign up

scottysinclair/db2-express-java8

By scottysinclair

Updated over 9 years ago

The ibmcom/db2express-c tweaked so that it has Java 8 installed on top

Image
0

10K+

scottysinclair/db2-express-java8 repository overview

#-------------------------------------------------------------------------------------------------- #FOR SOME REASON I COULDN'T GET DB2EXPRESS WORKING, WITHOUT TWEAKING, SO I EXCUTED THE FOLLOWING IN CONTAINER #AND COMMITED AS scottysinclair/db2-express

#FROM ibmcom/db2express-c

#docker run -it -p 50000:50000 -e DB2INST1_PASSWORD=db2inst1-pwd -e LICENSE=accept ibmcom/db2express-c:latest bash

#su - db2inst1

#db2start

#db2 create db test

#db2stop #--------------------------------------------------------------------------------------------------

Installs Java8 on top of the custom db2-express image

Pull base image.

FROM scottysinclair/db2-express

ENV JAVA_VERSION 8u31 ENV BUILD_VERSION b13

Upgrading system

#RUN yum -y upgrade RUN yum -y install wget

Downloading Java

RUN wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/$JAVA_VERSION-$BUILD_VERSION/jdk-$JAVA_VERSION-linux-x64.rpm" -O /tmp/jdk-8-linux-x64.rpm

RUN yum -y install /tmp/jdk-8-linux-x64.rpm

RUN alternatives --install /usr/bin/java jar /usr/java/latest/bin/java 200000 RUN alternatives --install /usr/bin/javaws javaws /usr/java/latest/bin/javaws 200000 RUN alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 200000

ENV JAVA_HOME /usr/java/latest

Tag summary

Content type

Image

Digest

Size

960.6 MB

Last updated

over 9 years ago

docker pull scottysinclair/db2-express-java8