Roël Couwenberg

Simplify Your Development Setup with Dockerised VS Code

As a developer, setting up a consistent and reproducible development environment across different machines can be a challenge. To address this, I’ve created two repositories designed to streamline this process using Docker: dockerised-vscode and dockerised-vscode-scripts. These repositories aim to provide a hassle-free way to run Visual Studio Code (VS Code) in a Docker container.

Introducing dockerised-vscode

The dockerised-vscode repository is the core of this setup. It provides a Docker image configured to run VS Code in a container, allowing you to work in a controlled environment that can be easily replicated. Here are some of the key benefits:

Example

services:
  code:
    image: pixnyb/code
    hostname: code
    ports:
      - 8000:8000
    environment:
      - VSCODE_KEYRING_PASS=password
      - GIT_GLOBAL_USER_NAME=PixNyb
      - [email protected]
    volumes:
      - /etc/localtime:/etc/localtime:ro

To get started, you can check out the dockerised-vscode repository and follow the instructions in the README.

Enhancing Functionality with dockerised-vscode-scripts

The dockerised-vscode-scripts repository is an add-on to the main dockerised-vscode repository. It contains a collection of scripts and templates tailored for specific development environments. This repository enhances the functionality of the base Docker image by providing:

You can explore the available scripts and templates in the dockerised-vscode-scripts repository.