Last active
December 8, 2015 19:33
-
-
Save heckenmann/c0d50d2304ffdf15b8be to your computer and use it in GitHub Desktop.
Oralce JDK 8 und Wildfly 9 Dockerfile
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
FROM ubuntu | |
MAINTAINER heckenmann.de | |
# docker build -t heckenmann/wildfly . | |
# docker run -d -p 0.0.0.0:80:8080 -p 0.0.0.0:9990:9990 --name wildfly heckenmann/wildfly | |
# | |
# Oracle JDK 8 | |
# | |
ENV JDKPACKAGE=jdk-8u65-linux-x64.tar.gz | |
ENV JDKFOLDER=jdk1.8.0_65 | |
RUN apt-get update && apt-get install -y vim curl wget tar | |
RUN wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u65-b17/$JDKPACKAGE | |
RUN tar -xzf $JDKPACKAGE | |
RUN mkdir /opt/OracleJava | |
RUN mv -v /$JDKFOLDER /opt/OracleJava/ | |
RUN rm $JDKPACKAGE | |
RUN update-alternatives --install "/usr/bin/java" "java" "/opt/OracleJava/$JDKFOLDER/bin/java" 1 | |
RUN update-alternatives --install "/usr/bin/javac" "javac" "/opt/OracleJava/$JDKFOLDER/bin/javac" 1 | |
RUN update-alternatives --install "/usr/bin/javaws" "javaws" "/opt/OracleJava/$JDKFOLDER/bin/javaws" 1 | |
RUN update-alternatives --install "/usr/bin/jar" "jar" "/opt/OracleJava/$JDKFOLDER/bin/jar" 1 | |
RUN update-alternatives --set "java" "/opt/OracleJava/$JDKFOLDER/bin/java" | |
RUN update-alternatives --set "javac" "/opt/OracleJava/$JDKFOLDER/bin/javac" | |
RUN update-alternatives --set "javaws" "/opt/OracleJava/$JDKFOLDER/bin/javaws" | |
RUN update-alternatives --set "jar" "/opt/OracleJava/$JDKFOLDER/bin/jar" | |
ENV JAVA_HOME=/opt/OracleJava/$JDKFOLDER | |
ENV PATH=$PATH:$JAVA_HOME/bin | |
# | |
# Wildfly 9 | |
# | |
ENV WFPACKAGE=wildfly-9.0.2.Final.tar.gz | |
ENV WFFOLDER=wildfly-9.0.2.Final | |
ENV WILDFLY_HOME=/opt/$WFFOLDER | |
EXPOSE 8080 9990 | |
RUN wget http://download.jboss.org/wildfly/9.0.2.Final/$WFPACKAGE | |
RUN tar -xzf $WFPACKAGE | |
RUN mv -v /$WFFOLDER /opt/ | |
RUN sed -i 's/127.0.0.1/0.0.0.0/g' $WILDFLY_HOME/standalone/configuration/standalone.xml | |
RUN rm $WFPACKAGE | |
CMD sh $WILDFLY_HOME/bin/standalone.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment