mirror of
https://github.com/nextcloud/docker.git
synced 2025-01-22 21:53:54 +01:00
961aeb147e
`#!/usr/bin/env` searches `PATH` for `bash`, and `bash` is not always in `/bin`` Signed-off-by: Felix Buehler <account@buehler.rocks>
18 lines
340 B
Bash
Executable file
18 lines
340 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
image="$1"
|
|
|
|
cd .examples/dockerfiles
|
|
|
|
dirs=( */ )
|
|
dirs=( "${dirs[@]%/}" )
|
|
for dir in "${dirs[@]}"; do
|
|
if [ -d "$dir/$VARIANT" ]; then
|
|
(
|
|
cd "$dir/$VARIANT"
|
|
sed -ri -e 's/^FROM .*/FROM '"$image"'/g' 'Dockerfile'
|
|
docker build -t "$image-$dir" .
|
|
)
|
|
fi
|
|
done
|