Created
January 5, 2017 15:17
-
-
Save chenrui333/027e04ddc08d547e25a3f6b8d2a36751 to your computer and use it in GitHub Desktop.
Dockerize Pingfederate
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 amazonlinux:latest | |
MAINTAINER rui.chen <[email protected]> | |
ADD pingfederate-8.3.0.zip / | |
RUN yum install -y unzip wget | |
RUN wget --no-cookies --header "Cookie: gpw_e24=xxx; oraclelicense=accept-securebackup-cookie;" "http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.rpm" && \ | |
yum install -y jdk-8u91-linux-x64.rpm | |
RUN unzip pingfederate-8.3.0.zip | |
# cleanup installation files | |
RUN rm pingfederate-8.3.0.zip && rm jdk-8u91-linux-x64.rpm && \ | |
yum remove -y wget unzip | |
ENV JAVA_HOME /usr/java/latest/ | |
EXPOSE 9999 | |
EXPOSE 9031 | |
COPY startup.sh /usr/bin/startup.sh | |
RUN chmod +x /usr/bin/startup.sh | |
ENTRYPOINT ["/usr/bin/startup.sh"] |
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
#!/bin/bash | |
/pingfederate-8.3.0/pingfederate/sbin/pingfederate-run.sh | |
# wait indefinitely | |
sleep infinity |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment