Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.