Skip to content

Latest commit

 

History

History

.devcontainer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Bolt Devcontainer Setup

This guide explains how to build and configure the Bolt devcontainer.

Building the Devcontainer

Using VS Code (Recommended)

  1. Open the project in Visual Studio Code
  2. Install the Remote - Containers extension
  3. Click the green "Open a Remote Window" button in the lower-left corner
  4. Select "Reopen in Container" from the menu

Using Docker CLI

# From the project root directory
docker build \
  -f .github/runners/Dockerfile.ci \
  -t bolt-devcontainer:latest \
  .github/runners

Building Worldwide and in Corporate Networks

DEB_REGION

The 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:

  1. Edit .devcontainer/devcontainer.json
  2. Add the build argument to the build.args section:
    "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/runners

https_proxy

The 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:

  1. Edit .devcontainer/devcontainer.json
  2. Add the build argument to the build.args section:
    "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