You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/guides/cpp/_index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,11 +21,11 @@ The C++ getting started guide teaches you how to create a containerized C++ appl
21
21
>
22
22
> Docker would like to thank [Pradumna Saraf](https://twitter.com/pradumna_saraf) and [Mohammad-Ali A'râbi](https://twitter.com/MohammadAliEN) for his contribution to this guide.
23
23
24
-
- Containerize and run a C++ application
24
+
- Containerize and run a C++ application using a multi-stage Docker build
25
+
- Build and run a C++ application using Docker Compose
25
26
- Set up a local environment to develop a C++ application using containers
26
27
- Configure a CI/CD pipeline for a containerized C++ application using GitHub Actions
27
28
- Deploy your containerized application locally to Kubernetes to test and debug your deployment
28
-
- Create multi-stage builds for your C++ application to optimize the size of your Docker image
29
29
30
30
After completing the C++ getting started modules, you should be able to containerize your own C++ application based on the examples and instructions provided in this guide.
Copy file name to clipboardExpand all lines: content/guides/cpp/containerize.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
2
title: Containerize a C++ application
3
-
linkTitle: Containerize your app
3
+
linkTitle: Build and run a C++ application using Docker Compose
4
4
weight: 10
5
5
keywords: C++, containerize, initialize
6
-
description: Learn how to containerize a C++ application.
6
+
description: Learn how to use Docker Compose to build and run a C++ application.
7
7
aliases:
8
8
- /language/cpp/containerize/
9
9
- /guides/language/cpp/containerize/
@@ -15,17 +15,17 @@ aliases:
15
15
16
16
## Overview
17
17
18
-
This section walks you through containerizing and running a C++ application.
18
+
This section walks you through containerizing and running a C++ application, using Docker Compose.
19
19
20
20
## Get the sample application
21
21
22
-
Clone the sample application to use with this guide. Open a terminal, change directory to a directory that you want to work in, and run the following command to clone the repository:
22
+
We're using the same sample repository that you used in the previous sections of this guide. If you haven't already cloned the repository, clone it now:
Copy file name to clipboardExpand all lines: content/guides/cpp/multistage.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Create a multi-stage build for your C++ application
3
-
linkTitle: Containerize your app
4
-
weight: 60
3
+
linkTitle: Containerize your app using a multi-stage build
4
+
weight: 5
5
5
keywords: C++, containerize, multi-stage
6
6
description: Learn how to create a multi-stage build for a C++ application.
7
7
aliases:
@@ -19,9 +19,12 @@ This section walks you through creating a multi-stage Docker build for a C++ app
19
19
A multi-stage build is a Docker feature that allows you to use different base images for different stages of the build process,
20
20
so you can optimize the size of your final image and separate build dependencies from runtime dependencies.
21
21
22
+
The standard practice for compiled languages like C++ is to have a build stage that compiles the code and a runtime stage that runs the compiled binary,
23
+
because the build dependencies are not needed at runtime.
24
+
22
25
## Get the sample application
23
26
24
-
We're using the same sample repository that you used in the previous sections of this guide. If you haven't already cloned the repository, clone it now:
27
+
Let's use a simple C++ application that prints `Hello, World!` to the terminal. To do so, clone the sample repository to use with this guide:
0 commit comments