Skip to content

Commit

Permalink
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.
28 changes: 28 additions & 0 deletions Dockerfile
@@ -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"]
4 changes: 2 additions & 2 deletions common.bash
@@ -1,2 +1,2 @@
maintainer="tier"
imagename="imagename-replaceme-in-common-bash"
maintainer="bigfleet"
imagename="shibboleth_sp"
7 changes: 7 additions & 0 deletions httpd-shib-foreground
@@ -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
11 changes: 11 additions & 0 deletions tests/image.bats
@@ -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
}

0 comments on commit 6f1f28d

Please sign in to comment.