Skip to content

Commit

Permalink
Adding commented out Java installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Aug 18, 2016
1 parent d64cd30 commit 4a56ce2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ ARG version=3.2.1
ENV VERSION=$version
ENV JAVA_OPTS=-Xmx1500m -XX:MaxPermSize=128m

# Uncomment all the following lines to download the JDK to your Shibboleth IDP image. By uncommenting these lines, you agree to the Oracle Binary Code License Agreement for Java SE (http://www.oracle.com/technetwork/java/javase/terms/license/index.html)

# ENV JAVA_VERSION 8u101
# ENV BUILD_VERSION b13
#
# RUN wget -nv --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 && \
# yum -y install /tmp/jdk-8-linux-x64.rpm && \
# rm -f /tmp/jdk-8-linux-x64.rpm && \
# alternatives --install /usr/bin/java jar /usr/java/latest/bin/java 200000 && \
# alternatives --install /usr/bin/javaws javaws /usr/java/latest/bin/javaws 200000 && \
# alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 200000

RUN chown -R root:root /opt/shibboleth/shibboleth-identity-provider-$version && \
rm -rf /usr/local/tomcat/webapps/* && \
ANT_OPTS="-Didp.target.dir=/opt/shibboleth/current" /opt/shibboleth/current/bin/build.sh && \
Expand Down

0 comments on commit 4a56ce2

Please sign in to comment.