Public Repository

Last pushed: 2 years ago
Short Description
DVDStore Benchmark kit - PHP/Postgres
Full Description

This one requires a database container also

Pull Images:

docker pull jkshah/postgres:9.4
docker pull jkshah/dvdstore

Deploy Database Image:

mkdir /hostpath/pgdata

chcon -Rt svirt_sandbox_file_t /hostpath/pgdata

docker run -d -p 5432:5432 –name postgres94 -v /hostpath/pgdata:/var/lib/postgresql/data -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=secret -t jkshah/postgres:9.4

Deploy DVDStore Image:

docker run -d -p 80:80 --name dvdstore2 --link postgres94:ds2db --env DS2DBINIT=1 jkshah/dvdstore

The dvdstore PHP version should now be available with sample DB intialized on hostip:80.

If you want to run just the dvdstore against an an external postgresql database deploy

docker run -d -p 80:80 --name dvdstore2 --env DS2DBINIT=1 --env POSTGRES_SERVER="mypgserver.somecloud.com" --env POSTGRES_USER="somepguser" --env POSTGRES_PASSWORD="secretpgpassword" --env POSTGRES_PORT=5432 jkshah/dvdstore

Docker Pull Command
Owner
jkshah