-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (16 loc) · 847 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM centos:centos6
# setup
RUN yum install -y java-1.7.0-openjdk tomcat6 unzip
# // download openam nightly build war
# // RUN curl http://download.forgerock.org/downloads/openam/openam_link.js | grep -o "http://.*\.war" | xargs curl -o /var/lib/tomcat6/webapps/openam.war
# Install OpenAM
RUN curl -sS http://maven.forgerock.org/repo/releases/org/forgerock/openam/openam-distribution-kit/12.0.0/openam-distribution-kit-12.0.0.zip > /tmp/openam.zip
RUN unzip /tmp/openam.zip
RUN cp /openam/OpenAM-12.0.0.war /var/lib/tomcat6/webapps/openam.war
# setup for openam
RUN chown -R tomcat:tomcat /usr/share/tomcat6
# setup httpd
RUN yum install -y httpd mod_ssl
ADD openam-proxy.conf /etc/httpd/conf.d/openam-proxy.conf
# run tomcat
CMD /etc/init.d/tomcat6 start && wait && /etc/init.d/httpd start && wait && tail -f /var/log/tomcat6/catalina.out