Skip to content
Edit this page View source of this page

Dev Container

The Dev Container gives contributors a shared Linux development environment. VS Code connects to the container so your terminal and development tools run in the same environment as other contributors using this setup.

Configuration in this template

  • .devcontainer/devcontainer.json tells the Dev Containers extension to build from the local Dockerfile and run bash scripts/setup.sh after creating the container.
  • .devcontainer/Dockerfile starts from the Ubuntu 26.04 Dev Containers base, adds mise, uv, Python, and tmux, and configures mise activation in Bash and Zsh.
  • scripts/setup.sh changes to the repository root, trusts mise.toml, and installs the tools declared there.

Open or rebuild the container

Follow Set up your environment to open it in VS Code. After changing the Dockerfile or the Dev Container configuration, use Dev Containers: Rebuild Container in the Command Palette. In a container terminal, run mise current to see the selected tools. Use Dev Containers: Show Container Log if the image build or setup command fails.

Customize the environment

Put OS packages needed by everyone using the container in the Dockerfile. Use mise.toml for shared command-line tools that should also work in local development. Review lifecycle commands in devcontainer.json before adding setup work that should run whenever a container is created. Developing inside a container