mirror of
https://git.netzspielplatz.de/docker-multiarch/jdownloader2-headless.git
synced 2025-11-08 17:09:30 +00:00
26 lines
504 B
Bash
Executable file
26 lines
504 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
images=('alpine' 'debian')
|
|
|
|
if [ "$(docker version --format '{{.Server.Experimental}}')" = 'true' ]; then
|
|
export DOCKER_BUILDKIT=1
|
|
fi
|
|
|
|
|
|
for image in "${images[@]}"; do
|
|
tag="jd2dev:${image}"
|
|
|
|
echo "Building $tag"
|
|
docker build -t $tag -f $image.Dockerfile .
|
|
|
|
echo "Testing image"
|
|
cp goss-default.yaml goss.yaml
|
|
dgoss run $tag
|
|
|
|
echo "Testing again with UID and GID"
|
|
cp goss-uid-test.yaml goss.yaml
|
|
dgoss run -e UID=1001 -e GID=101 $tag
|
|
done
|
|
|
|
|