- Docker desktop - An application that provides a streamlined way to build, share, and run containerized applications on your local machine.
- Visual Studio Code - Open-source code editor developed by Microsoft that supports debugging, syntax highlighting, intelligent code completion, snippets, integrated version control, and a wide range of extensions for additional functionality.
- Remote Development extension for Visual Studio Code - An extension pack that allows developers to open any folder in a container, on a remote machine, or within the Windows Subsystem for Linux (WSL), and utilize the full feature set of VS Code.
- Git - A distributed version control system that tracks changes in source code during software development.
To get started with the course, follow these steps to set up your development environment and get familiar with the course content.
- Open a new terminal.
- Get the course content by cloning the course repository:
git clone https://github.com/amih90/mastering-dev-containers.git
- Open the repository in Visual Studio Code:
cd mastering-dev-containers # Open current directory in VS Code code .
- Open the file explorer or press
Ctrl+Shift+E, and get familiar with the repository layout:. ├── .devcontainer # Devcontainer files ├── .github # Configures a GitHub workflow ├── .vscode # VS Code workspace configurations ├── assets # Assets used in the documentation ├── docs # Documentation supplements ├── samples # Contains code samples │ ├── cpp # C++ sample applications | ├── dotnet # .NET sample applications | ├── python # Python sample applications ├── docker-compose.yml # Docker Compose configuration └── ...
During the course, you will be asked to perform several workshops, and samples applications can be used as a reference.
To ensure a smooth and efficient start to the course, you’ll need to pull the Docker images that will be used throughout the workshops. These images contain all the necessary dependencies for the different development environments we’ll be working with.
To pull the Docker images, open your terminal and run the following command:
docker-compose --profile base-image pullThis command will download the images defined in the docker-compose.yml file to your local machine. Make sure to run this command before starting the course begins to ensure all necessary images are readily available.
Docker Compose is a tool for defining and running multi-container Docker applications using a simple YAML file to configure all of your application's services. It allows you to start, stop, and manage complex applications with a single command, making it easier to orchestrate multiple containers.
| Name | Description |
|---|---|
| Visual Studio Code - Open Source | Visual Studio Code repository. |
| Docker Docs | Learn more about Docker. |