HUB
Sign inSign up

jkshah/dvdstore2

By jkshah

•Updated about 11 years ago

DVDStore2 Container image using PHP along with mono based load generator

Image
1

50K+

jkshah/dvdstore2 repository overview

The images uses http://linux.dell.com/dvdstore⁠ benchmark in a ready to run package.

#Pull Images:

docker pull jkshah/postgres:9.4 docker pull jkshah/dvdstore2

#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

OR

An external deployment of PostgreSQL database can also be used which should be accessible (listen_address='*' and pg_hba.conf set properly) with user/password having create database objects role.

#Deploy DVDStore Image:

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

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/dvdstore2

⁠Load test against the Postgres Database

docker run -t -i --name dvdstore2load --link postgres94:ds2db -e DS2PGSQLDRIVER=5 -e DS2EXTRAOPTS="--pct_newcustomers=0 --detailed_view=Y" jkshah/dvdstore2

where the value for DS2PGSQLDRIVER sets the runtime in minutes for the load, and all other parameters can be passed as DS2EXTRAOPTS including number of concurrent thread using --num_threads=10

Tag summary

Content type

Image

Digest

sha256:c4f9e9b9f…

Size

269.4 MB

Last updated

about 11 years ago

docker pull jkshah/dvdstore2