-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support of devcontainer.user.json file #1303
base: main
Are you sure you want to change the base?
Add support of devcontainer.user.json file #1303
Conversation
@pascalbreuninger can you have a look please? |
Hi @aacebedo, thanks for the PR! If we go down that route it should probably be any devcontainer.json you have available locally without being in the same repository. What do you think? |
In fact I originally considered several approaches:
What do you think of merging the two last approaches? |
b174695
to
d3a9bec
Compare
rebased on main and test E2E tests. It is now working |
@aacebedo merging the two sounds good to me! Do you want to tackle this or should we put this on our roadmap? |
This PR adds the support of an additional file named
devcontainer.user.json
or.devcontainer.user.json
.The latter is combined with the
devcontainer.json
or the.devcontainer.json
before actually building the container.It can be useful when one wants to customize the devenv of a project without modifying the file under revision (for instance when new user specific mounts shall be added to the devenv).
Note: I used an additional dep to perform the merge between the two files (mergo)