devcontainers / devcontainers/spec

Allow cross-platform/per system initializeCommand definition

Open
#347 10 comments 15 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
5.7k
Forks
496
PR merge metrics
No merged PRs in 30d

Description

Not sure if it's the most proper repo to report this (if not, please redirect), but would be nice if there was a way to define `initializeCommand` per system in any way, so that the setup is truly cross-system. For example:
```
"initializeCommand": {
"windows": "rd /s /q somedir",
"linux": "rm -rf somedir",
"macos": "..."
}
```

Use case example: https://stackoverflow.com/questions/77199011/how-to-create-a-cross-platform-initializecommand-for-visual-studio-codes-dev-co (copying proper .env file before container launch).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.