microsoft / vscode-dev-containers

NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
https://aka.ms/vscode-remote
MIT License
4.72k stars 1.41k forks source link

enhanced official command line #1638

Closed loynoir closed 1 year ago

loynoir commented 1 year ago

Relates to: Remote - Containers

Feat

According to my memory, there is > install devcontainer cli, but that CLI only have open, and without build, if I remeber correctly.

Provide enhanced official command line for devcontainer for automation.

$ ls .devcontainer/devcontainer.json
.devcontainer/devcontainer.json
$ devcontainer vscode build
Run initialcommand
...
Start: Run: docker build
Step 1: FROM
Step 2: RUN xxx
Step 3: RUN xxx
...

Reason

Thirdparty CLI devcontainer build does not run initialcommand by default.

Related