Skip to content

Commit

Permalink
Fix drupal to account for docker-library/drupal#32
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Feb 19, 2016
1 parent b531ccc commit 71c020f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dsl/docker-multiarch/images/drupal.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@ for (arch in multiarch.allArches()) {
wrappers { colorizeOutput() }
steps {
shell(multiarch.templateArgs(meta) + '''
sed -i "s!^FROM !FROM $prefix/!" */Dockerfile
sed -i "s!^FROM !FROM $prefix/!" */*/Dockerfile
latest="$(./generate-stackbrew-library.sh | awk '$1 == "latest:" { print $3; exit }')"
for v in */; do
v="${v%/}"
docker build -t "$repo:$v" "$v"
docker build -t "$repo:$v-apache" "$v/apache"
docker build -t "$repo:$v-fpm" "$v/fpm"
docker tag -f "$repo:$v-apache" "$repo:$v"
if [ "$v" = "$latest" ]; then
docker tag -f "$repo:$v-apache" "$repo:apache"
docker tag -f "$repo:$v-fpm" "$repo:fpm"
docker tag -f "$repo:$v" "$repo"
fi
done
Expand Down

0 comments on commit 71c020f

Please sign in to comment.