2017-08-08 14:46:36 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
image="$1"
|
|
|
|
|
|
|
|
cd .examples/dockerfiles
|
|
|
|
|
|
|
|
dirs=( */ )
|
|
|
|
dirs=( "${dirs[@]%/}" )
|
|
|
|
for dir in "${dirs[@]}"; do
|
|
|
|
if [ -d "$dir/$VARIANT" ]; then
|
|
|
|
(
|
2018-08-01 20:55:25 +00:00
|
|
|
cd "$dir/$VARIANT"
|
2017-08-08 14:46:36 +00:00
|
|
|
sed -ri -e 's/^FROM .*/FROM '"$image"'/g' 'Dockerfile'
|
|
|
|
docker build -t "$image-$dir" .
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
done
|