Skip to content

Commit 04cf4b5

Browse files
committed
Added Testcontainers Learning Path
1 parent c7d1495 commit 04cf4b5

File tree

5 files changed

+155
-0
lines changed

5 files changed

+155
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
title: |
3+
Mastering Testcontainers Cloud by Docker: streamlining integration testing with containers
4+
linkTitle: Testcontainers Cloud by Docker
5+
summary: |
6+
Automate, scale, and optimize testing workflows with Testcontainers Cloud
7+
description: |
8+
Testcontainers Cloud by Docker streamlines integration testing by offloading container management to the cloud. It enables faster, consistent tests for containerized services like databases, improving performance and scalability in CI/CD pipelines without straining local or CI resources. Ideal for developers needing efficient, reliable testing environments.
9+
levels: [Beginner]
10+
products: [testcontainers]
11+
params:
12+
featured: true
13+
image: images/learning-paths/scout.png
14+
time: 10 minutes
15+
resource_links:
16+
- title: Testcontainers Guides
17+
url: https://testcontainers.com/guides
18+
- title: Testcontainers Best Practices
19+
url: https://www.docker.com/blog/testcontainers-best-practices/
20+
- title: Simple local development with Testcontainers Desktop
21+
url: https://testcontainers.com/guides/simple-local-development-with-testcontainers-desktop/
22+
- title: Streamlining Local Development with Dev Containers and Testcontainers Cloud
23+
url: https://www.docker.com/blog/streamlining-local-development-with-dev-containers-and-testcontainers-cloud/
24+
- title: Running Testcontainers Tests Using GitHub Actions and Testcontainers Cloud
25+
url: https://www.docker.com/blog/running-testcontainers-tests-using-github-actions/
26+
- title: Testcontainers Cloud on the Docker Blog
27+
url: https://www.docker.com/search/?_sf_s=testcontainers%20cloud
28+
---
29+
30+
Testcontainers Cloud is a cloud-based solution designed to streamline and enhance the process of running integration tests using Testcontainers. Testcontainers is the open source framework, which allows developers to easily spin up containerized dependencies such as databases, message brokers, and other services required for testing. By shifting the management of Testcontainers-based containers to the cloud, Testcontainers Cloud optimizes performance, reduces resource constraints on local machines or CI servers, and ensures consistent test environments. This solution is particularly beneficial for teams working on complex, distributed systems, as it allows for scalable, isolated, and reliable testing without the typical overhead of managing containers locally.
31+
32+
## What you'll learn
33+
34+
- Understand the fundamentals of Docker Testcontainers Cloud and its role in integration testing.
35+
- Learn how to set up and configure Docker Testcontainers Cloud for automated testing in various environments.
36+
- Explore how Testcontainers Cloud integrates with CI/CD pipelines to streamline testing workflows.
37+
38+
39+
## Tools integration
40+
41+
Works well with Docker Desktop, GitHub Actions, Jenkins, Kubernetes, and other CI solutions
42+
43+
Docker Pro, Team, and Business subscriptions come with Testcontainers Cloud runtime minutes, and additional minutes are available via consumption pricing.
44+
45+
## Who’s this for?
46+
47+
- Teams that build cloud-native applications and are looking to streamline integration testing with Testcontainers Cloud by Docker.
48+
- DevOps Teams that integrate automated container-based testing into CI/CD pipelines for continuous testing.
49+
- QA Teams that seek scalable and consistent test environments for comprehensive integration and end-to-end testing.
50+
- Developers who need reliable, containerized test environments for testing microservices and databases.
51+
52+
<div id="scout-lp-survey-anchor"></div>
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
title: Common challenges and questions
3+
description: Explore common challenges and questions related to Testcontainers Cloud by Docker.
4+
weight: 40
5+
---
6+
7+
<!-- vale Docker.HeadingLength = NO -->
8+
9+
### How is Testcontainers Cloud different from the open-source Testcontainers framework?
10+
11+
While the open-source Testcontainers framework runs containers locally on your development machine or CI server, Testcontainers Cloud moves this process to the cloud. This reduces the resource strain on local environments and provides more scalability, especially in CI/CD workflows.
12+
13+
### What types of containers can I run with Testcontainers Cloud?
14+
15+
Testcontainers Cloud supports any containers you would typically use with the Testcontainers framework, including databases (PostgreSQL, MySQL, MongoDB), message brokers (Kafka, RabbitMQ), and other services required for integration testing.
16+
17+
### Do I need to change my existing test code to use Testcontainers Cloud?
18+
19+
No, you don't need to change your existing test code. Testcontainers Cloud integrates seamlessly with the open-source Testcontainers framework. Once the cloud configuration is set up, it automatically manages the containers in the cloud without requiring code changes.
20+
21+
### How do I integrate Testcontainers Cloud into my project?
22+
23+
To integrate Testcontainers Cloud, you need to install the Testcontainers Cloud CLI, configure your project for cloud integration, and ensure your containers are running through the cloud service. No major code changes are required beyond setting up the CLI and enabling cloud integration.
24+
25+
### Can I use Testcontainers Cloud in a CI/CD pipeline?
26+
27+
Yes, Testcontainers Cloud is designed to work efficiently in CI/CD pipelines. It helps reduce build times and resource bottlenecks by offloading containerized tests to the cloud, making it a perfect fit for continuous testing environments.
28+
29+
### What are the benefits of using Testcontainers Cloud?
30+
31+
The key benefits include faster test execution, reduced resource usage on local machines and CI servers, scalability (run more containers without performance degradation), consistent testing environments, and simplified container management.
32+
33+
### Does Testcontainers Cloud support all programming languages?
34+
35+
Testcontainers Cloud supports any language that works with the open-source Testcontainers framework, including Java, Python, Node.js, and Go. As long as your project uses Testcontainers, it can be offloaded to Testcontainers Cloud.
36+
37+
### How is container cleanup handled in Testcontainers Cloud?
38+
39+
Testcontainers Cloud automatically handles container lifecycle management. This means that containers are spun up, monitored, and cleaned up after tests are completed, freeing developers from manually managing containers.
40+
41+
### Is there a free tier or pricing model for Testcontainers Cloud?
42+
43+
Yes, Testcontainers Cloud typically offers a free tier for small-scale projects and testing environments. For larger teams and heavier usage, there are various pricing models based on container usage, resources, and features. You can find detailed pricing information on the Testcontainers Cloud website.
44+
45+
<div id="scout-lp-survey-anchor"></div>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: Configuring Testcontainers Cloud in the CI Pipeline
3+
description: Use Testcontainers Cloud with GitHub Workflows to automate testing in a CI pipeline.
4+
weight: 30
5+
---
6+
7+
In this section, we will look at how Testcontainers Cloud can be seamlessly integrated into a Continuous Integration (CI) pipeline using GitHub Workflows, providing a powerful solution for running containerized integration tests without overloading local or CI runner resources. By leveraging GitHub Actions, developers can automate the process of spinning up and managing containers for testing in the cloud, ensuring faster and more reliable test execution. With just a few configuration steps, including setting up Testcontainers Cloud authentication and adding it to your workflow, you can offload container orchestration to the cloud. This approach improves the scalability of your pipeline, ensures consistency across tests, and simplifies resource management, making it an ideal solution for modern, containerized development workflows.
8+
9+
- Understand how to set up a GitHub Actions workflow to automate the build and testing of a project.
10+
- Learn how to configure Testcontainers Cloud within GitHub Actions to offload containerized testing to the cloud, improving efficiency and resource management.
11+
- Explore how Testcontainers Cloud integrates with GitHub workflows to run integration tests that require containerized services, such as databases and message brokers.
12+
13+
**Duration:** 3 minutes
14+
15+
{{< youtube-embed "" >}}
16+
17+
<div id="scout-lp-survey-anchor"></div>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: Setting up Testcontainers Cloud
3+
description: Set up Testcontainers Cloud in a local development environment.
4+
weight: 20
5+
---
6+
7+
In this section, we’ll walk through the process of setting up Testcontainers Cloud to work in your local development environment using the Testcontainers Desktop application. By the end of this walkthrough, you'll have Testcontainers Cloud up and running, ready to offload container management from your local machine to the cloud for more efficient testing.
8+
9+
- Install and configure Testcontainers Cloud and the CLI to seamlessly integrate with your local development environment.
10+
- Set up and configure the Testcontainers Desktop application to monitor and manage cloud-based containers during local tests.
11+
- Create and run integration tests using Testcontainers that leverage cloud-based container resources.
12+
- Monitor and manage containers efficiently, understanding how Testcontainers Cloud automates cleanup and ensures consistent testing environments.
13+
- Review options for monitoring and troubleshooting in the Testcontainers Cloud Dashboard.
14+
15+
**Duration:** 3 minutes
16+
17+
{{< youtube-embed "" >}}
18+
19+
<div id="scout-lp-survey-anchor"></div>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: Why Testcontainers Cloud?
3+
description: Learn how Testcontainers Cloud by Docker can help you optimize integration testing.
4+
weight: 10
5+
---
6+
7+
Testcontainers Cloud is a powerful cloud-based solution designed to optimize integration testing with Testcontainers by offloading container management to the cloud. It helps developers and teams overcome the limitations of traditional local and CI-based testing, ensuring consistent environments, faster test execution, and scalable workflows. Whether you're new to Testcontainers or looking to enhance your existing setup, Testcontainers Cloud offers a seamless way to manage containerized tests, improving efficiency and reliability in your development pipeline.
8+
9+
Testcontainers Cloud provides several benefits:
10+
11+
- **Offloading to the Cloud:** Frees up local resources by shifting container management to the cloud, keeping your laptop responsive.
12+
- **Consistent Testing Environments:** Ensures that tests run in isolated, reliable environments, reducing inconsistencies across platforms from Dev to CI.
13+
- **Scalability:** Allows running large numbers of containers simultaneously without being limited by local or CI resources.
14+
- **Faster CI/CD Pipelines:** Reduces configuration bottlenecks and speeds up build times by offloading containers to multiple on-demand cloud workers with the Turbo-mode feature.
15+
16+
Testcontainers Cloud streamlines integration testing by offloading container management to the cloud, ensuring consistent environments and faster test execution resulting in reduced resource strain, making it an essential tool for improving the stability of your Testcontainers-based workflows.
17+
18+
**Duration:** 3 minutes
19+
20+
{{< youtube-embed "" >}}
21+
22+
<div id="scout-lp-survey-anchor"></div>

0 commit comments

Comments
 (0)