Default userid and password are admin/admin.
-
Pull the image
docker pull quay.io/ortelius/test-database:latest
-
Find the image id
docker image ls quay.io/ortelius/test-database:latest --format "{{.ID}}"
-
Create the volume to persist the database
docker volume create pdata
-
Run the image a expose the Postgres port to the outside world
docker run -it -p 9876:5432 -v pgdata:/var/lib/postgresql/data <id_from_step_2>
The database in the above example will be accessible on port 9876.
- Userid: postgres
- Password: postgres
- Database: postgres
- Schema: dm
The image also has a minimal container-structure-test setup.
This is run as part of the cloud build, and can also be run locally on MacOS/Linux/WSL:
container-structure-test test --image=quay.io/ortelius/test-database:latest --config=cst/config.yaml