workshop
  • Introduction
  • Step 1: Getting Started
  • Step 2: Exploring the app
  • Step 3: Adding some tests
  • Step 4: Your first Testcontainers integration
  • Step 5: Hello, r u 200 OK?
  • Step 6: Adding Redis
  • Step 7: Test the API
  • Step 8: Edge cases
  • Step 9: Data initialization strategies
  • Step 10: Migrating from Docker Compose
Powered by GitBook
On this page
  • Check Docker
  • Download the project
  • Build the project to download the dependencies
  • (optionally) Pull the required images before doing the workshop

Step 1: Getting Started

Check Docker

Make sure you have Docker available on your machine by running the following command:

$ docker version

Client:
 Cloud integration: v1.0.22
 Version:           20.10.11
 API version:       1.41
 Go version:        go1.16.10
 Git commit:        dea9396
 Built:             Thu Nov 18 00:42:51 2021
 OS/Arch:           windows/amd64
 Context:           default
Server: Docker Engine - Community
 Engine:
  Version:          20.10.11
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.9
  Git commit:       847da18
  Built:            Thu Nov 18 00:35:39 2021
  OS/Arch:          linux/amd64
  Experimental:     false
  ...

Download the project

Clone the following project from GitHub to your computer: https://github.com/testcontainers/workshop

Build the project to download the dependencies

With Gradle:

# -x check - skips the tests
./gradlew build -x check

(optionally) Pull the required images before doing the workshop

This might be helpful if the internet connection at the workshop venue is somewhat slow.

docker pull postgres:14-alpine
docker pull redis:6-alpine
docker pull openjdk:8-jre-alpine
docker pull confluentinc/cp-kafka:6.2.1
PreviousIntroductionNextStep 2: Exploring the app

Last updated 2 years ago