Skip to content

urbontaitis/testcontainers

Repository files navigation

Testcontainers demo

Video rental system example of using testcontainers:

Prerequisites

  • Docker
  • Java 17

Running application

Start MySQL database instance: docker compose up -d

Start the application: ./gradlew bootRun

Executing tests

./gradlew clean test

Running MySQL arm docker image

Create docker-compose.override.yml to use arm68v8 based docker image:

services:
  db:
    image: arm64v8/mysql:oracle

Run slides locally

You need to have marp.app

marp slides.md -w -o docs/index.html

About

Example of using test containers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published