#!/bin/sh

set -e

PREFIX='fgrehm/ventriloquist'

docker build --rm -t ${PREFIX}-base base

docker build --rm -t ${PREFIX}-pg-9.3 postgresql/9.3
docker build --rm -t ${PREFIX}-pg-9.2 postgresql/9.2
docker build --rm -t ${PREFIX}-pg-9.1 postgresql/9.1

docker build -t ${PREFIX}-mysql-5.6 mysql/5.6
docker build -t ${PREFIX}-mysql-5.5 mysql/5.5

docker build -t ${PREFIX}-rethinkdb-1.12 rethinkdb

docker build -t ${PREFIX}-openjdk7 openjdk7
docker build -t ${PREFIX}-elasticsearch-1.1 elasticsearch

docker build -t ${PREFIX}-memcached-1.4 memcached

docker build -t ${PREFIX}-redis-2.8 redis

docker build -t ${PREFIX}-mailcatcher-0.5 mailcatcher

#!/bin/sh

set -e

PREFIX='fgrehm/ventriloquist'

docker build --rm -t ${PREFIX}-base base

docker build --rm -t ${PREFIX}-postgres-9.3 postgresql/9.3
docker build --rm -t ${PREFIX}-postgres-9.2 postgresql/9.2
docker build --rm -t ${PREFIX}-postgres-9.1 postgresql/9.1

docker build -t ${PREFIX}-mysql-5.6 mysql/5.6
docker build -t ${PREFIX}-mysql-5.5 mysql/5.5

docker build -t ${PREFIX}-rethinkdb-1.12 rethinkdb

docker build -t ${PREFIX}-openjdk7 openjdk7
docker build -t ${PREFIX}-elasticsearch-1.1 elasticsearch

docker build -t ${PREFIX}-memcached-1.4 memcached

docker build -t ${PREFIX}-redis-2.8 redis

docker build -t ${PREFIX}-mailcatcher-0.5 mailcatcher

Rename ventriloquist-pg images to ventriloquist-postgres
services/postgres: Rename ventriloquist-pg images to ventriloquist-postgres
