Skip to content
Permalink
Newer
Older
100644 32 lines (25 sloc) 1.64 KB
1
FROM bigfleet/shibboleth_idp
2
3
ARG maintainer=tier
4
ARG imagename=shibboleth_idp
5
ARG version=3.2.1
6
ENV VERSION=$version
Jim Van Fleet
Aug 4, 2016
7
ENV JAVA_OPTS=-Xmx1500m -XX:MaxPermSize=128m
8
9
# 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)
10
11
ENV JAVA_VERSION 8u101
12
ENV BUILD_VERSION b13
13
14
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 && \
15
yum -y install /tmp/jdk-8-linux-x64.rpm && \
16
rm -f /tmp/jdk-8-linux-x64.rpm && \
17
alternatives --install /usr/bin/java jar /usr/java/latest/bin/java 200000 && \
18
alternatives --install /usr/bin/javaws javaws /usr/java/latest/bin/javaws 200000 && \
19
alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 200000
21
RUN chown -R root:root /opt/shibboleth/shibboleth-identity-provider-$version && \
22
rm -rf /usr/local/tomcat/webapps/* && \
23
ANT_OPTS="-Didp.target.dir=/opt/shibboleth/current" /opt/shibboleth/current/bin/build.sh && \
24
ln -s /opt/shibboleth/current /opt/shibboleth-idp && \
25
ln -s /opt/shibboleth-idp/war/idp.war $CATALINA_HOME/webapps/idp.war && \
26
touch /usr/local/tomcat/logs/voltest && \
27
touch /opt/shibboleth/shibboleth-identity-provider-$version/logs/voltest
28
29
VOLUME ["/usr/local/tomcat/logs", "/opt/shibboleth/shibboleth-identity-provider-$VERSION/logs"]
30
31
EXPOSE 8080
32
CMD ["catalina.sh", "run"]
You can’t perform that action at this time.