Skip to content
Permalink
Browse files

Tests passing, next expansion to runtime

  • Loading branch information
Jim Van Fleet
Jim Van Fleet committed Aug 24, 2016
1 parent 7f46ca9 commit 6f1f28dbb5dc494bafe36176c91b4fcec10e3eb1
Showing with 48 additions and 2 deletions.
  1. +28 −0 Dockerfile
  2. +2 −2 common.bash
  3. +7 −0 httpd-shib-foreground
  4. +11 −0 tests/image.bats
@@ -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"]
@@ -1,2 +1,2 @@
maintainer="tier"
imagename="imagename-replaceme-in-common-bash"
maintainer="bigfleet"
imagename="shibboleth_sp"
@@ -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
@@ -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.
You can’t perform that action at this time.