-
Notifications
You must be signed in to change notification settings - Fork 25
/
.devcontainer.json
58 lines (48 loc) · 2.26 KB
/
.devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// See https://code.visualstudio.com/docs/remote/containers#_devcontainerjson-reference
{
// General ===================================================================
// A display name for the container.
"name": "Sepomex RESTAPI",
// A command string or list of command arguments to run after the container is
// created. The commands execute from the workspaceFolder in the container.
// Use && in a string to execute multiple commands. For example,
// "yarn install" or "apt-get update && apt-get install -y git". The array
// syntax ["yarn", "install"] will invoke the command (in this case yarn)
// directly without using a shell.
//
// It fires after your source code has been mounted, so you can also run shell
// scripts from your source tree. For example:
// bash scripts/install-dev-tools.sh. Not set by default.
// "postCreateCommand": "dev-entrypoint.sh check-node-modules-owner",
// Dockerfile Compose Config =================================================
// Required. Path or an ordered list of paths to Docker Compose files relative
// to the devcontainer.json file. Using an array is useful when extending your
// Docker Compose configuration. The order of the array matters since the
// contents of later files can override values set in previous ones.
"dockerComposeFile": "docker-compose.yml",
// Required. The name of the service VS Code should connect to once running.
"service": "devcontainer",
"overrideCommand": true,
"shutdownAction": "stopCompose",
"postCreateCommand": "bin/dev-entrypoint rails db:migrate:status",
// Only bring up the services required by the development container - VSCode
// will bring up all services unless this is configured:
"runServices": [
"devcontainer" // had to add this when removing the postgres service...
],
"workspaceFolder": "/workspaces/sepomex",
// An array of extension IDs that specify the extensions to install inside the
// container when you first attach to it.
"extensions": [
"dbaeumer.vscode-eslint",
"rebornix.ruby",
"misogi.ruby-rubocop",
"castwide.solargraph",
"miguel-savignano.ruby-symbols",
"eamodio.gitlens",
"github.vscode-pull-request-github",
"github.remotehub",
"github.copilot",
"qwtel.sqlite-viewer"
]
}