This guide explains how to build and configure the Bolt devcontainer.
- Open the project in Visual Studio Code
- Install the Remote - Containers extension
- Click the green "Open a Remote Window" button in the lower-left corner
- Select "Reopen in Container" from the menu
# From the project root directory
docker build \
-f .github/runners/Dockerfile.ci \
-t bolt-devcontainer:latest \
.github/runnersThe DEB_REGION argument allows you to specify a Debian mirror region to use for faster package downloads.
Example values:
us(United States)uk(United Kingdom)cn(China)
Debian's default package mirrors at deb.debian.org are supposed to automatically
redirect your client to the closest mirror when building the package. However,
sometime it doesn't work. Set the DEB_REGION image build argument if the
download of debian packages is too slow.
Usage with VS Code:
- Edit
.devcontainer/devcontainer.json - Add the build argument to the
build.argssection:"build": { "args": { "DEB_REGION": "us" } }
Usage with Docker CLI:
docker build \
-f .github/runners/Dockerfile.ci \
--build-arg DEB_REGION="us" \
-t bolt-devcontainer:latest \
.github/runnersThe https_proxy argument allows you to specify an HTTPS proxy for
network connections if you're behind a firewall.
Example value:
http://proxy.company.com:8080
Usage with VS Code:
- Edit
.devcontainer/devcontainer.json - Add the build argument to the
build.argssection:"build": { "args": { "https_proxy": "http://proxy.company.com:8080" } }
Usage with Docker CLI:
docker build \
-f .github/runners/Dockerfile.ci \
--build-arg https_proxy="http://proxy.company.com:8080" \
-t bolt-devcontainer:latest \
.github/runners