Skip to content
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 git submodule update instruction #11

Merged
merged 2 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ git submodule add https://github.com/pulumi/devcontainer .devcontainer
git submodule update --init --recursive
```

To update the devcontainer submodule in consuming repos:

```bash
git submodule update --remote --merge
```

After the submodule is added, you can open your project in VS Code and it will automatically detect the Dev Container configuration and prompt you to open the project in a container, or you can open the project in Github CodeSpaces.

# Github CodeSpaces
Expand Down
12 changes: 7 additions & 5 deletions devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
// - https://containers.dev/implementors/features
// - https://code.visualstudio.com/docs/getstarted/settings
{
// NOTE: remove `image` and uncomment `build` to build the image locally
//"build": {
// "dockerfile": "Dockerfile",
// "context": "."
//},
"name": "pulumi",
"build": {
"dockerfile": "Dockerfile",
"context": "."
},
"image": "ghcr.io/pulumi/devcontainer",
"customizations": {
"vscode": {
"settings": [
Expand Down Expand Up @@ -46,6 +48,6 @@
"moby": false
}
},
"remoteUser": "root",
"remoteUser": "vscode",
"runArgs": ["--network=host"]
}
Loading