-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from docker/repoint
Repoint
- Loading branch information
Showing
5 changed files
with
45 additions
and
28 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,8 @@ | ||
| FROM bigfleet/shibboleth_idp | ||
|
|
||
| ARG maintainer=tier | ||
| ARG imagename=shibboleth_idp | ||
| ARG version=3.2.1 | ||
| ENV VERSION=$version | ||
|
|
||
| RUN chown -R root:root /opt/shibboleth/shibboleth-identity-provider-$version |
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
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
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
| #!/usr/bin/env bats | ||
|
|
||
| load ../common | ||
|
|
||
| setup() { | ||
| ./bin/rebuild.sh | ||
| } | ||
|
|
||
| @test "Creates non-root Shib IDP home" { | ||
| result="$(docker run -i $maintainer/$imagename ls /opt/shibboleth/current/bin/)" | ||
| [ "$result" != '' ] | ||
| } | ||
|
|
||
| @test "Retains 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 ] | ||
| } | ||
|
|
||
| @test "Logs directory exists, owned by root" { | ||
| result="$(docker run -i $maintainer/$imagename stat -c '%U' /opt/shibboleth/current/logs)" | ||
| [ "$result" != 'UNKNOWN' ] | ||
| } |