Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed port settings for www
chubing committed Sep 22, 2017
1 parent 6c0ab14 commit 1acc99d
Showing 2 changed files with 12 additions and 12 deletions.
7 changes: 3 additions & 4 deletions test-compose/docker-compose.yml
@@ -49,12 +49,11 @@ services:

www:
build: ./www/
command: bash -c "while ! curl -s data:3306 > /dev/null; do echo waiting for mysql to start; sleep 3; done; /usr/bin/startup.sh"
depends_on:
- data
expose:
- "80"
- "443"
ports:
- "80:80"
- "443:443"
networks:
- back
- front
17 changes: 9 additions & 8 deletions test-compose/www/Dockerfile
@@ -1,4 +1,4 @@
FROM tier/grouper-www:2.3.0
FROM tier/shibboleth_sp


#set labels
@@ -8,29 +8,30 @@ LABEL ImageName=$imagename
LABEL ImageOS=centos7
LABEL Version=$VERSION

RUN yum update -y

# Replace the contents of the files in the following 2 lines with web server cert and private key
COPY container_files/cert/localhost.crt /etc/pki/tls/certs
COPY container_files/cert/localhost.key /etc/pki/tls/private
COPY container_files/httpd/localhost.crt /etc/pki/tls/certs
COPY container_files/httpd/localhost.key /etc/pki/tls/private

# Replace the contents of the files in the following 2 lines with shibboleth cert and private key
COPY container_files/shib/sp-cert.pem /etc/shibboleth
COPY container_files/shib/sp-key.pem /etc/shibboleth
COPY container_files/shibboleth/sp-cert.pem /etc/shibboleth
COPY container_files/shibboleth/sp-key.pem /etc/shibboleth

# Make sure to modify the entityID value in this file with that of your SP
COPY container_files/shibboleth/shibboleth2.xml /etc/shibboleth/shibboleth2.xml

# Intermediate cert for certs issued through the InCommon Cert Service
COPY container_files/httpd/comodo.cer /etc/pki/tls/certs

COPY container_files/shib/attribute-map.xml /etc/shibboleth
COPY container_files/shibboleth/attribute-map.xml /etc/shibboleth
COPY container_files/bin/httpd-shib-foreground /opt/bin/

# Uncomment the following line to turn on shib SP debugging
#COPY container_files/shibboleth/shibd.logger /etc/shibboleth/shibd.logger
COPY container_files/httpd/www.conf /etc/httpd/conf.d/
COPY container_files/httpd/grouper-www.conf /etc/httpd/conf.d/
COPY container_files/httpd/logout.php /var/www/cgi-bin/logout.php
ADD container_files/bin/startup.sh /usr/bin/startup.sh
COPY container_files/bin/startup.sh /usr/bin/startup.sh

RUN chmod +x /usr/bin/startup.sh && \
chmod +x /opt/bin/httpd-shib-foreground && \

0 comments on commit 1acc99d

Please sign in to comment.