You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
upCmd.Flags().StringArrayVar(&cmd.IDEOptions, "ide-option", []string{}, "IDE option in the form KEY=VALUE")
114
129
upCmd.Flags().StringVar(&cmd.DevContainerImage, "devcontainer-image", "", "The container image to use, this will override the devcontainer.json value in the project")
115
130
upCmd.Flags().StringVar(&cmd.DevContainerPath, "devcontainer-path", "", "The path to the devcontainer.json relative to the project")
131
+
upCmd.Flags().StringArrayVar(&cmd.ExtraDevContainerPaths, "extra-devcontainer-path", []string{}, "The path to additional devcontainer.json files to override original devcontainer.json")
116
132
upCmd.Flags().StringArrayVar(&cmd.ProviderOptions, "provider-option", []string{}, "Provider option in the form KEY=VALUE")
117
133
upCmd.Flags().BoolVar(&cmd.Reconfigure, "reconfigure", false, "Reconfigure the options for this workspace. Only supported in DevPod Pro right now.")
118
134
upCmd.Flags().BoolVar(&cmd.Recreate, "recreate", false, "If true will remove any existing containers and recreate them")
Copy file name to clipboardExpand all lines: docs/pages/developing-in-workspaces/create-a-workspace.mdx
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,11 @@ Upon successful creation, DevPod will make the development container available t
13
13
A workspace is defined through a `devcontainer.json`. If DevPod can't find one, it will automatically try to guess the programming language of your project and provide a fitting template.
14
14
:::
15
15
16
+
:::info
17
+
It is possible to override a 'devcontainer.json' with specific user settings such as mounts by creating a file named 'devcontainer.user.json' in the same directory as the 'devcontainer.json' of the workspace.
18
+
This can be useful when customization of a versioned devcontainer is needed.
19
+
:::
20
+
16
21
### Via DevPod Desktop Application
17
22
18
23
Navigate to the 'Workspaces' view and click on the 'Create' button in the title. Enter the git repository you want to work on or select a local folder.
@@ -34,7 +39,7 @@ Under the hood, the Desktop Application will call the CLI command `devpod up REP
34
39
:::
35
40
36
41
:::info Note
37
-
You can set the location of your devpod home by passing the `--devpod-home={home_path}` flag,
42
+
You can set the location of your devpod home by passing the `--devpod-home={home_path}` flag,
38
43
or by setting the env var `DEVPOD_HOME` to your desired home directory.
39
44
40
45
This can be useful if you are having trouble with a workspace trying to mount to a windows location when it should be mounting to a path inside the WSL VM.
@@ -107,7 +112,7 @@ DevPod will create the following `.devcontainer.json`:
107
112
108
113
If you have a local container running, you can create a workspace from it by running:
109
114
```
110
-
devpod up my-workspace --source container:$CONTAINER_ID
115
+
devpod up my-workspace --source container:$CONTAINER_ID
111
116
```
112
117
113
118
This only works with the `docker` provider.
@@ -148,4 +153,4 @@ Navigate to the 'Workspaces' view and press on the 'More Options' button on the
148
153
Run the following command to reset an existing workspace:
SSHAuthSockIDstring`json:"sshAuthSockID,omitempty"`// ID to use when looking for SSH_AUTH_SOCK, defaults to a new random ID if not set (only used for browser IDEs)
0 commit comments