Skip to content

Commit

Permalink
Can install Oracle JDK at buildtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Mar 6, 2017
1 parent 560c6ca commit 2933be5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.rpm
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ ARG imagename=shibboleth_idp
ARG version=3.3.0
ARG tierversion=17020
ARG tierbuild=$tierbuild

ARG oracle_jdk_rpm=jdk-8u121-linux-x64.rpm

ENV VERSION=$version
ENV TIERVERSION=$tierversion
ENV TIERBUILD=$tierbuild
Expand All @@ -34,6 +37,14 @@ RUN yum -y install \
wget \
&& yum -y clean all

COPY $oracle_jdk_rpm /tmp

RUN echo $oracle_jdk_rpm && yum -y install /tmp/$oracle_jdk_rpm && \
rm -f /tmp/$oracle_jdk_rpm && \
alternatives --install /usr/bin/java jar $JAVA_HOME/bin/java 200000 && \
alternatives --install /usr/bin/javaws javaws $JAVA_HOME/bin/javaws 200000 && \
alternatives --install /usr/bin/javac javac $JAVA_HOME/bin/javac 200000

ENV SHIB_RELDIR=http://shibboleth.net/downloads/identity-provider/$VERSION
ENV SHIB_PREFIX=shibboleth-identity-provider-$VERSION
ENV JAVA_HOME /usr/java/latest
Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Shibboleth IdP Standalone

This version is designed for standalone, native Docker experience that should meet expectations for those who wish to operate Shibboleth IdP as a native Docker service.

## Before You Build

### Acquiring Oracle Java


You should visit a page similar to [this one](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) at Oracle to download the Oracle JDK.

Select *the Linux x64 RPM* and agree to the Oracle Binary Code License Agreement. You'll ultimately need to mount this RPM in your invocation.


## Building

```
docker build --build-arg ORACLE_JDK_RPM=jdk-8u121-linux-x64.rpm .
```

0 comments on commit 2933be5

Please sign in to comment.