mirror of
https://git.netzspielplatz.de/docker-multiarch/jdownloader2-headless.git
synced 2025-11-08 18:29:27 +00:00
reorganize goss-tests
This commit is contained in:
parent
177c0955be
commit
8a636a7f50
4 changed files with 5 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -2,4 +2,4 @@
|
||||||
.\#*
|
.\#*
|
||||||
\#*\#
|
\#*\#
|
||||||
.config/
|
.config/
|
||||||
goss.yaml
|
/goss.yaml
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
cd $(dirname $0)
|
||||||
|
|
||||||
images=('alpine' 'debian')
|
images=('alpine' 'debian')
|
||||||
|
|
||||||
if [ "$(docker version --format '{{.Server.Experimental}}')" = 'true' ]; then
|
if [ "$(docker version --format '{{.Server.Experimental}}')" = 'true' ]; then
|
||||||
|
|
@ -15,12 +17,10 @@ for image in "${images[@]}"; do
|
||||||
docker build -t $tag -f $image.Dockerfile .
|
docker build -t $tag -f $image.Dockerfile .
|
||||||
|
|
||||||
echo "Testing image"
|
echo "Testing image"
|
||||||
cp goss-default.yaml goss.yaml
|
GOSS_FILES_PATH=./tests/default dgoss run $tag
|
||||||
dgoss run $tag
|
|
||||||
|
|
||||||
echo "Testing again with UID and GID"
|
echo "Testing again with UID and GID"
|
||||||
cp goss-uid-test.yaml goss.yaml
|
GOSS_FILES_PATH=./tests/uid-test dgoss run -e UID=1001 -e GID=101 $tag
|
||||||
dgoss run -e UID=1001 -e GID=101 $tag
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue