diff options
author | Samruddhi Khandale <samruddhikhandale@github.com> | 2023-03-04 15:35:00 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-05 00:35:00 +0100 |
commit | ade3c5d40c1f2bd534d85424a878f1d28b9352f4 (patch) | |
tree | e6c80e63c5aa3d9090636b3015c388a535411e6a /.devcontainer/devcontainer.json | |
parent | 82a6cf401244e0cc51bb5fa2aa20e58b9996a640 (diff) |
Updates dev container and adds doc for getting started with GitHub Codespaces (#23872)
Diffstat (limited to '.devcontainer/devcontainer.json')
-rw-r--r-- | .devcontainer/devcontainer.json | 38 |
1 files changed, 15 insertions, 23 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 6ac6993ee..d628fd1bd 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,30 +1,13 @@ +// For more details, see https://aka.ms/devcontainer.json. { "name": "Mastodon", "dockerComposeFile": "docker-compose.yml", "service": "app", - "workspaceFolder": "/mastodon", - - // Configure tool-specific properties. - "customizations": { - // Configure properties specific to VS Code. - "vscode": { - // Set *default* container specific settings.json values on container create. - "settings": {}, - - // Add the IDs of extensions you want installed when the container is created. - "extensions": [ - "EditorConfig.EditorConfig", - "dbaeumer.vscode-eslint", - "rebornix.Ruby", - "webben.browserslist" - ] - } - }, + "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", + // Features to add to the dev container. More info: https://containers.dev/features. "features": { - "ghcr.io/devcontainers/features/sshd:1": { - "version": "latest" - } + "ghcr.io/devcontainers/features/sshd:1": {} }, // Use 'forwardPorts' to make a list of ports inside the container available locally. @@ -33,7 +16,16 @@ // Use 'postCreateCommand' to run commands after the container is created. "postCreateCommand": ".devcontainer/post-create.sh", + "waitFor": "postCreateCommand", - // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. - "remoteUser": "vscode" + // Configure tool-specific properties. + "customizations": { + // Configure properties specific to VS Code. + "vscode": { + // Set *default* container specific settings.json values on container create. + "settings": {}, + // Add the IDs of extensions you want installed when the container is created. + "extensions": ["EditorConfig.EditorConfig", "webben.browserslist"] + } + } } |