Containers
Devcontainder.json
- devcontainer.json properties
- Environment variables. Note requires rebuilding.
"containerEnv": {
"RAILS_ENV": "test",
"MYSQL_PWD": "root"
}
Example:
".devcontainer/devcontainer.json":
{
"name": "Sandbox Container",
# "image": "mcr.microsoft.com/devcontainers/ruby",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/devcontainers-contrib/features/mysql-homebrew:1": {}
}
}
Codespaces
Default Container
Default container do not paid for storage.
Definition ID: univeral
devcontainer-info
The univeral image.
Cost
- 2-core for 1 day is
$2.80($0.18 x 2 x 8); 1 month is$56.00using 20 days
Images
- https://github.com/devcontainers/images/tree/main/src
- https://github.com/microsoft/vscode-dev-containers
Testspace
Azure
For azure-pipelines.yml:
- ubuntu-20.04
- Defined here
- MySQL
- Chrome
- Chrome Driver
- Etc
- Defined here
tip
The GitHub Actions Runner uses this image
CircleCI
For config.yml: