Our tests needs several databases up and running. This is a list of commands to start the required databases and command line interfaces using podman.
These are the credentials used to connect to the dbs:
- username: hreact
- password: hreact
- database: hreact
- Server
podman run -it --rm=true --name HibernateTestingPGSQL -e POSTGRES_USER=hreact -e POSTGRES_PASSWORD=hreact -e POSTGRES_DB=hreact -p 5432:5432 postgres:12
- CLI
podman exec -it HibernateTestingPGSQL psql -U hreact -W -d hreact
- Server
podman run --rm -it --name HibernateTestingMariaDB -e MYSQL_ROOT_PASSWORD=hreact -e MYSQL_DATABASE=hreact -e MYSQL_USER=hreact -e MYSQL_PASSWORD=hreact -p 3306:3306 mysql:8.0.20
- CLI
podman exec -it HibernateTestingMariaDB mysql -U hreact -phreact
- Server
podman run --rm -it -e LICENSE=accept --privileged=true --name HibernateTestingDB2 -e DBNAME=hreact -e DB2INSTANCE=hreact -e DB2INST1_PASSWORD=hreact -e PERSISTENT_HOME=false -e ARCHIVE_LOGS=false -e AUTOCONFIG=false -p 50000:50000 ibmcom/db2:11.5.0.0a
- CLI
podman exec -ti HibernateTestingDB2 bash -c "su - hreact -c db2 connect"