vscode-docs/remote-release-notes/v1_71.md

40 строки
2.1 KiB
Markdown
Исходник Обычный вид История

2022-08-05 03:34:08 +03:00
# August 2022 (version 1.71)
## Development Containers (Dev Containers version 0.251.x)
2022-08-05 03:34:08 +03:00
2022-08-29 17:27:35 +03:00
### Environment variable default values
2022-08-31 00:49:36 +03:00
When using environment variables in a `devcontainer.json` file, you can now include a default value that will be used when the environment variable is not set:
2022-08-29 17:27:35 +03:00
```json
{
2022-08-31 00:49:36 +03:00
"image": "ubuntu:latest",
"remoteEnv": {
"MY_LOCAL_VAR": "${localEnv:MY_VAR:my_local_default}",
"MY_CONTAINER_VAR": "${containerEnv:MY_VAR:my_container_default}"
}
2022-08-29 17:27:35 +03:00
}
```
### Forward built-in CLI to OSS CLI
The built-in CLI `devcontainer` (or `devcontainer-insiders` for VS Code Insiders) of the Dev Containers extension now forwards to the built-in open source CLI. The `open` command and the previous CLI arguments for the `build` command are also supported.
2022-08-29 17:27:35 +03:00
2022-08-29 18:01:49 +03:00
### Features and images
As part of the [dev container specification](https://containers.dev), we recently open sourced two new repos, where we host a specific set of features and images that were previously in the [vscode-dev-containers repository](https://github.com/microsoft/vscode-dev-containers/issues/1589):
2022-08-31 00:49:36 +03:00
* [Development Container Features](https://github.com/devcontainers/features)
* [Development Containers Images](https://github.com/devcontainers/images)
2022-08-29 18:01:49 +03:00
2022-08-31 00:49:36 +03:00
You could always publish your own dev container image, and now you can publish Features as well! To get started, you can use this [Features template repository](https://github.com/devcontainers/feature-template) to create a set of Features. It includes a GitHub Actions workflow to automate the publishing process.
2022-08-29 18:01:49 +03:00
2022-08-31 00:49:36 +03:00
If you'd like your contributions to appear in the VS Code or GitHub Codespaces UI for dev container creation, you can do the following:
2022-08-29 18:02:57 +03:00
2022-08-31 00:49:36 +03:00
* Go to [devcontainers.github.io](https://github.com/devcontainers/devcontainers.github.io)
* Open a PR to modify the [collection-index.yml](https://github.com/devcontainers/devcontainers.github.io/blob/gh-pages/_data/collection-index.yml) file.
2022-08-29 18:01:49 +03:00
2022-08-31 00:49:36 +03:00
We expect the general model for distributing templates to be the same as Features - so stay tuned.
2022-08-05 03:34:08 +03:00
2022-08-31 00:49:36 +03:00
For more details on the process, you can review the [announcement issue](https://github.com/microsoft/vscode-dev-containers/issues/1589).