Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
41 lines (33 sloc) 1.39 KB
FROM centos:7
MAINTAINER TIER API & Ent Reg Working Group <tier-api@lists.internet2.edu>
# Install Shibboleth repo
RUN curl http://download.opensuse.org/repositories/security://shibboleth/CentOS_7/security:shibboleth.repo -o security:shibboleth.repo \
#&& echo '5879f58c10f89816cfa04d8fc1639f0fde916372ad662c421c02620d3fc605ae security:shibboleth.repo' | sha256sum -c - \
&& mv security:shibboleth.repo /etc/yum.repos.d/security:shibboleth.repo \
# and fix to say "downloadcontent" instead of "download"...
# a "temp fix" because the shib repo seems to disappear sometimes
&& sed -i 's/download/downloadcontent/g' /etc/yum.repos.d/security:shibboleth.repo \
# Install packages
&& yum install -y \
httpd \
mod_ssl \
openssl \
python-setuptools \
shibboleth \
php \
&& yum -y clean all \
# Install supervisord
&& easy_install pip && pip install supervisor \
# Delete unnecessary configuration files
&& mv /etc/httpd/conf.d/shib.conf /etc/httpd/conf.modules.d/02-shib.conf \
&& rm /etc/httpd/conf.d/*
# Config files
COPY httpd/conf /etc/httpd/conf/
COPY httpd/conf.d /etc/httpd/conf.d/
COPY httpd/certs /etc/httpd/certs/
COPY htdocs /var/www/html/
COPY shibboleth /etc/shibboleth/
COPY container-start.sh /usr/local/bin/
COPY supervisord.conf /etc/
EXPOSE 9080 9443
CMD ["/usr/bin/bash", "/usr/local/bin/container-start.sh"]
You can’t perform that action at this time.