Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
abretaud committed Apr 20, 2023
1 parent 7aed1cc commit 337c10a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ FROM centos:centos7

LABEL maintainer="Unicon, Inc."

#Workaround since OpenSUSE's provo-mirror is not working properly
#COPY security:shibboleth.repo /etc/yum.repos.d/security:shibboleth.repo
COPY security:shibboleth.repo /etc/yum.repos.d/security:shibboleth.repo

RUN yum -y update \
&& yum -y install wget \
&& wget http://download.opensuse.org/repositories/security://shibboleth/CentOS_7/security:shibboleth.repo -P /etc/yum.repos.d \
&& yum -y install httpd shibboleth-3.0.4-3.2 mod_ssl \
&& yum -y install httpd shibboleth-3.4.1-1 mod_ssl \
&& yum -y clean all

COPY httpd-shibd-foreground /usr/local/bin/
Expand All @@ -27,7 +25,7 @@ RUN test -d /var/run/lock || mkdir -p /var/run/lock \
&& sed -i 's/<\/VirtualHost>/ErrorLogFormat \"httpd-ssl-error [%{u}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\\ %a] %M% ,\\ referer\\ %{Referer}i\"\n<\/VirtualHost>/g' /etc/httpd/conf.d/ssl.conf \
&& sed -i 's/CustomLog logs\/ssl_request_log/CustomLog \/dev\/stdout/g' /etc/httpd/conf.d/ssl.conf \
&& sed -i 's/TransferLog logs\/ssl_access_log/TransferLog \/dev\/stdout/g' /etc/httpd/conf.d/ssl.conf

EXPOSE 80 443

CMD ["httpd-shibd-foreground"]
10 changes: 6 additions & 4 deletions security:shibboleth.repo
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[security_shibboleth]
[shibboleth]
name=Shibboleth (CentOS_7)
# Please report any problems to https://shibboleth.atlassian.net/jira
type=rpm-md
baseurl=http://anorien.csc.warwick.ac.uk/mirrors/download.opensuse.org/repositories/security:/shibboleth/CentOS_7/
mirrorlist=https://shibboleth.net/cgi-bin/mirrorlist.cgi/CentOS_7
gpgcheck=1
gpgkey=http://anorien.csc.warwick.ac.uk/mirrors/download.opensuse.org/repositories/security:/shibboleth/CentOS_7/repodata/repomd.xml.key
enabled=1
gpgkey=https://shibboleth.net/downloads/service-provider/RPMS/repomd.xml.key
https://shibboleth.net/downloads/service-provider/RPMS/cantor.repomd.xml.key
enabled=1

0 comments on commit 337c10a

Please sign in to comment.