|
43 | 43 | "external":true,
|
44 | 44 | "icon":"/icon/zed.svg",
|
45 | 45 | "order":5
|
| 46 | +}, |
| 47 | +// Reproduce `code-server` app here from the code-server |
| 48 | +// feature so that we can set the correct folder and order. |
| 49 | +// Currently, the order cannot be specified via option because |
| 50 | +// we parse it as a number whereas variable interpolation |
| 51 | +// results in a string. Additionally we set health check which |
| 52 | +// is not yet set in the feature. |
| 53 | +{ |
| 54 | +"slug":"code-server", |
| 55 | +"displayName":"code-server", |
| 56 | +"url":"http://${localEnv:FEATURE_CODE_SERVER_OPTION_HOST:127.0.0.1}:${localEnv:FEATURE_CODE_SERVER_OPTION_PORT:8080}/?folder=${containerWorkspaceFolder}", |
| 57 | +"openIn":"${localEnv:FEATURE_CODE_SERVER_OPTION_APPOPENIN:slim-window}", |
| 58 | +"share":"${localEnv:FEATURE_CODE_SERVER_OPTION_APPSHARE:owner}", |
| 59 | +"icon":"/icon/code.svg", |
| 60 | +"group":"${localEnv:FEATURE_CODE_SERVER_OPTION_APPGROUP:Web Editors}", |
| 61 | +"order":3, |
| 62 | +"healthCheck": { |
| 63 | +"url":"http://${localEnv:FEATURE_CODE_SERVER_OPTION_HOST:127.0.0.1}:${localEnv:FEATURE_CODE_SERVER_OPTION_PORT:8080}/healthz", |
| 64 | +"interval":5, |
| 65 | +"threshold":2 |
| 66 | +} |
46 | 67 | }
|
47 | 68 | ]
|
48 | 69 | }
|
49 | 70 | },
|
50 | 71 | "mounts": [
|
| 72 | +"source=coder-coder-devcontainer-home,target=/home/coder", |
51 | 73 | // Mount the entire home because conditional mounts are not supported.
|
52 | 74 | // See: https://github.com/devcontainers/spec/issues/132
|
53 | 75 | "source=${localEnv:HOME},target=/mnt/home/coder,type=bind,readonly"
|
|