Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
foreach($line in Get-Content ./common.cmd) {
[Environment]::SetEnvironmentVariable($line.split('=')[0], $line.split('=')[1], "Process")
}
$fullimagename = $($env:maintainer) + '/' + $($env:imagename)
echo "checking docker image..."
docker image inspect $fullimagename
if ($lastexitcode -ne 0) {
echo "ERROR: problem with docker image"
$lastexitcode = 1
exit $lastexitcode
} else {
echo "Image OK"
$lastexitcode = 0
}
echo "checking for critical files..."
$s=(docker run --rm -i $fullimagename powershell Get-Childitem c:/opt/shibboleth-idp/credentials/ -Name).Count
if ( $s -gt 6 ) { $lastexitcode="0" } else { $lastexitcode="1"; echo "credentials folder missing files..."; exit 1 }