2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2024-11-13 17:13:42 +01:00
docker/.travis/test-example-dockerfiles.sh
Philipp Holzer b46fae9173
Change update & maintenance process
- Using 2018.05-rc as stable/productionin
- Using "update.sh" for creating the environments (single point of
change)
2018-05-24 21:20:25 +02:00

19 lines
387 B
Bash
Executable file

#!/bin/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" .
~/official-images/test/run.sh "$image-$dir"
)
fi
done