Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Tests passing, next expansion to runtime
Jim Van Fleet
committed
Aug 24, 2016
1 parent
7f46ca9
commit 6f1f28d
Showing
4 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM bigfleet/centos7base | ||
|
||
# Define args and set a default value | ||
ARG maintainer=tier | ||
ARG imagename=shibboleth_sp | ||
ARG version=1.0 | ||
|
||
MAINTAINER $maintainer | ||
LABEL Vendor="Internet2" | ||
LABEL ImageType="Base" | ||
LABEL ImageName=$imagename | ||
LABEL ImageOS=centos7 | ||
LABEL Version=$version | ||
|
||
LABEL Build docker build --rm --tag $maintainer/$imagename . | ||
|
||
RUN curl -o /etc/yum.repos.d/security:shibboleth.repo \ | ||
http://download.opensuse.org/repositories/security://shibboleth/CentOS_7/security:shibboleth.repo \ | ||
&& yum -y update && yum -y install shibboleth.x86_64 httpd mod_ssl && yum clean all \ | ||
&& rm /etc/httpd/conf.d/autoindex.conf \ | ||
&& rm /etc/httpd/conf.d/ssl.conf \ | ||
&& rm /etc/httpd/conf.d/userdir.conf \ | ||
&& rm /etc/httpd/conf.d/welcome.conf | ||
|
||
COPY httpd-shib-foreground /usr/local/bin/ | ||
|
||
EXPOSE 80 443 | ||
CMD ["httpd-shib-foreground"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
maintainer="tier" | ||
imagename="imagename-replaceme-in-common-bash" | ||
maintainer="bigfleet" | ||
imagename="shibboleth_sp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# Apache gets grumpy about PID files pre-existing | ||
rm -f /etc/httpd/logs/httpd.pid | ||
|
||
(/usr/sbin/shibd) & httpd -DFOREGROUND |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bats | ||
|
||
load ../common | ||
|
||
@test "Shibd binary available" { | ||
docker run -i $maintainer/$imagename find /usr/sbin/shibd | ||
} | ||
|
||
@test "Shibboleth root available" { | ||
docker run -i $maintainer/$imagename find /etc/shibboleth | ||
} |