Skip to content

feat(guides): migrate all testcontainers.com guides#24505

Merged
aevesdocker merged 26 commits intodocker:mainfrom
mdelapenya:testcontainers-guides
Mar 25, 2026
Merged

feat(guides): migrate all testcontainers.com guides#24505
aevesdocker merged 26 commits intodocker:mainfrom
mdelapenya:testcontainers-guides

Conversation

@mdelapenya
Copy link
Member

@mdelapenya mdelapenya commented Mar 24, 2026

Description

Migrate 17 Testcontainers guides from testcontainers.com into the Docker docs site, covering Java (14 guides), .NET (2 guides), and Node.js (1 guide). This follows up on PR #24450 which added the initial Go and Python guides.

Each guide is converted from AsciiDoc to Hugo Markdown, split into multi-chapter stepper navigation, updated to the latest Testcontainers API, and verified with passing tests running in containers.

Java guides use testcontainers-java 2.0.4 with the new 2.x Maven coordinates and package names (e.g., testcontainers-postgresql, org.testcontainers.postgresql.PostgreSQLContainer). The Quarkus guide uses Quarkus 3.22.3 with TC 1.x managed by the Quarkus BOM, since no released Quarkus version ships TC 2.x yet.

How to test

All code snippets have been verified by running each guide's source repository tests inside Docker containers with the Docker socket mounted.

To re-run the verification, use the /testcontainers-guides-migrator skill included in this PR (.claude/skills/testcontainers-guides-migrator/SKILL.md). The skill's Step 6 documents the exact container commands and macOS Docker Desktop workarounds (host override, docker-java API version, etc.) needed to run each language's tests:

/testcontainers-guides-migrator I want you to verify all the guides in this branch.
Do a full review, verifying that all code snippets compile, the code is executable,
and ALL the tests pass. Run them as docker containers, never locally.

Related issues or tickets

Supersedes #24450 (expanded from 2 guides to all 19)

Reviews

  • Technical review
  • Editorial review
  • Product review

mdelapenya and others added 23 commits March 23, 2026 16:33
Migrated from https://github.com/testcontainers/tc-guide-getting-started-with-testcontainers-for-nodejs
Tests verified passing with @testcontainers/postgresql in container with Docker socket mounted.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Migrated from https://github.com/testcontainers/tc-guide-getting-started-with-testcontainers-for-dotnet
Updated to Testcontainers.PostgreSql 4.6.0 and .NET 9.0.
Tests verified passing in container with Docker socket mounted.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Migrated from https://github.com/testcontainers/tc-guide-testing-spring-boot-rest-api
Tests verified passing with testcontainers-java 1.21.4 in container.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Migrated from https://github.com/testcontainers/tc-guide-testcontainers-lifecycle
Covers JUnit 5 callbacks, extension annotations, and singleton containers pattern.
Tests verified passing with testcontainers-java 1.21.4 in container.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Migrated from https://github.com/testcontainers/tc-guide-replace-h2-with-real-database-for-testing
Covers JDBC URL approach, JUnit 5 extension, and JdbcTemplate testing.
Tests verified passing with testcontainers-java 1.21.4 in container.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Migrated from https://github.com/testcontainers/tc-guide-configuration-of-services-running-in-container
Covers copying files into containers and executing commands with execInContainer().
Tests verified passing with testcontainers-java 1.21.4 in container.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Migrated from https://github.com/testcontainers/tc-guide-testing-spring-boot-kafka-listener
Tests verified passing with testcontainers-java 1.21.4 in container.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Migrated from https://github.com/testcontainers/tc-guide-testing-rest-api-integrations-using-mockserver
Tests verified passing with testcontainers-java 1.21.4 in container.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Migrated from https://github.com/testcontainers/tc-guide-testing-aws-service-integrations-using-localstack
Tests verified passing with testcontainers-java 1.21.4 in container.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add links to new guides in testcontainers manuals page.
Add Awaitility, datasource, Initializr, unmarshalling to vale accept list.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Migrated from https://github.com/testcontainers/tc-guide-testing-aspnet-core
Tests verified passing (15/15) with Testcontainers.MsSql in container.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Migrated from https://github.com/testcontainers/tc-guide-testing-rest-api-integrations-using-wiremock
Tests verified passing with testcontainers-java 1.21.4 in container.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Migrated from https://github.com/testcontainers/tc-guide-testing-rest-api-integrations-in-micronaut-apps-using-wiremock
Tests verified passing with testcontainers-java 1.21.4 in container.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Migrated from https://github.com/testcontainers/tc-guide-securing-spring-boot-microservice-using-keycloak-and-testcontainers
Tests verified passing with testcontainers-java 1.21.4 in container.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Migrated from https://github.com/testcontainers/tc-guide-testcontainers-in-quarkus-applications
Tests verified passing with testcontainers-java 1.21.4 in container.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Migrated from https://github.com/testcontainers/tc-guide-testing-micronaut-kafka-listener
Tests verified passing with testcontainers-java 1.21.4 in container.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Migrated from https://github.com/testcontainers/tc-guide-working-with-jooq-flyway-using-testcontainers
Tests verified passing with testcontainers-java 1.21.4 in container.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@netlify
Copy link

netlify bot commented Mar 24, 2026

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 23ecd19
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/69c3ae1ad8e97b0008e9e168
😎 Deploy Preview https://deploy-preview-24505--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@aevesdocker aevesdocker self-requested a review March 25, 2026 08:51
Copy link
Contributor

@aevesdocker aevesdocker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing! Thank you @mdelapenya

@aevesdocker aevesdocker merged commit b951e92 into docker:main Mar 25, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants