Skip to content

Introducing Dockerfile and build procedures #2

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM bigfleet/shibboleth_idp:master

ARG maintainer=tier
ARG imagename=shibboleth_idp_runtime
ARG version=3.2.1
ENV VERSION=$version

MAINTAINER $maintainer
LABEL Vendor="Internet2"
LABEL ImageType="Shibboleth IDP Release"
LABEL ImageName=$imagename
LABEL ImageOS=centos7
LABEL Version=$VERSION

CMD rm /tmp/firsttimerunning
33 changes: 33 additions & 0 deletions tests/image.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env bats

load ../common

setup() {
echo $PWD > test.log
./bin/rebuild.sh
}

@test "Should be buildable" {
run bin/build.sh
[ "$status" -eq 0 ]
}

@test "Retains non-root Shib IDP binaries" {
result="$(docker run -i $maintainer/$imagename ls /opt/shibboleth/current/bin/)"
[ "$result" != '' ]
}

@test "Retains tree structure of new conf files" {
run "$(docker run -i $maintainer/$imagename find /opt/shibboleth/shibboleth-identity-provider-$version/js)"
[ "$status" -eq 1 ]
}

@test "Concludes first-run experience" {
result="$(docker run -i $maintainer/$imagename ls /tmp/firsttimerunning)"
[ "$result" != '' ]
}

@test "Contains java" {
run docker run -i $maintainer/$imagename which java
[ "$status" -eq 0 ]
}