Skip to content

Instantly share code, notes, and snippets.

@chenrui333
Created January 5, 2017 15:17
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chenrui333/027e04ddc08d547e25a3f6b8d2a36751 to your computer and use it in GitHub Desktop.
Save chenrui333/027e04ddc08d547e25a3f6b8d2a36751 to your computer and use it in GitHub Desktop.
Dockerize Pingfederate
FROM amazonlinux:latest
MAINTAINER rui.chen <rui.chen@harvardbusiness.org>
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"]
#!/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