-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevcontainer.json
87 lines (78 loc) · 2.46 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.224.2/containers/docker-existing-docker-compose
{
"name": "vscode-iris-jupyter-server devcontainer",
// Use a modified recipe to create the container
"dockerComposeFile": [
"./docker-compose.yml"
],
"service": "iris",
"workspaceFolder": "/irisdev/app",
// The next set of lines are for Codespaces
"remoteUser": "irisowner",
// Explicitly forwarding these ports prevents IRIS from starting in the container when this VS Code workspace is "reopened in a container".
// Are the lines actually needed for Codespaces?
"forwardPorts": [
//52773,
//1972
],
"postCreateCommand": "mkdir -p dist && cp intersystems-iris-native/bin/lnxubuntux64/*.so dist && npm install",
"postStartCommand": "iris start iris",
"customizations": {
"vscode": {
// This provides the elements of the connection object which require different values when connecting to the workspace within the container,
// versus those in .vscode/settings.json which apply when operating locally on the workspace files.
// We define and use a `server` so that (a) a user-level `objectscript.conn.server` property doesn't override us, and (b) so InterSystems
// Server Manager can also be used.
"settings": {
"objectscript.conn" :{
"server": "devcontainer",
"ns": "USER",
"active": true
},
"objectscript.ignoreInstallLanguageServer": true,
"intersystems.servers": {
"devcontainer": {
"username": "SuperUser",
"password": "SYS",
"webServer": {
"scheme": "http",
"host": "127.0.0.1",
"port": 52773
},
"superServer": {
"host": "127.0.0.1",
"port": 1972
}
}
},
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash",
"icon": "terminal-bash"
},
"iris": {
"path": "iris",
"args": [
"session",
"iris"
],
"overrideName": true
}
},
"terminal.integrated.defaultProfile.linux": "bash"
},
// Add the IDs of extensions we want installed when the container is created.
"extensions": [
"ms-toolsai.jupyter",
"ms-toolsai.jupyter-renderers",
"ms-python.python",
"ms-python.vscode-pylance",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"EditorConfig.EditorConfig",
"intersystems-community.objectscript-pack"
]
}
}
}