-
Notifications
You must be signed in to change notification settings - Fork 1
/
remote-workspace.config.json
139 lines (139 loc) · 3.29 KB
/
remote-workspace.config.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
// Configuration "reference":
// https://github.com/makeflow/remote-workspace/blob/master/src/server/%40core/config/raw-config.ts
{
"users": [
{
"name": "vilicvane",
"email": "[email protected]",
"publicKeyFile": "users/vilicvane/id_rsa.pub"
}
],
"git": {
"identityFile": "remote-workspace-id_rsa",
"services": [
{
"type": "github",
"credentials": {
"accessToken": "[access token]"
}
},
{
"type": "gitlab",
"host": "gitlab.com",
"credentials": {
"accessToken": "[access token]"
}
}
]
},
"image": "makeflow/remote-workspace-node:latest",
"volumes": {
"shared": [
// Provide shared configuration for initialization.
{
"type": "bind",
"source": "./configs",
"target": "/root/configs"
},
// Yarn caches.
{
"type": "volume",
"source": "yarn",
"target": "/root/.yarn"
},
{
"type": "volume",
"source": "yarn-cache",
"target": "/root/.yarn-cache"
}
]
},
"templates": {
"workspaces": [
{
"name": "default",
"params": ["branch"],
"displayName": "${branch}"
},
{
"name": "makeflow-web",
"params": ["branch"],
"displayName": "${branch}",
"projects": ["makeflow-web"],
"services": ["mongo", "redis", "zookeeper"]
}
],
"projects": [
{
"name": "makeflow-web",
"params": ["branch"],
"git": {
// Currently only SSH URL is supported.
"url": "[email protected]:makeflow/makeflow-web.git",
"branch": "master",
"newBranch": "${branch}"
},
"ssh": {
"configs": [
"LocalForward 127.0.0.1:8080 127.0.0.1:8080",
"LocalForward 127.0.0.1:8088 127.0.0.1:8088"
]
},
"scripts": {
// Initialize the project, copy configuration file and create samples.
"initialize": "yarn && mkdir -p .config && cp /root/configs/makeflow-web-server.js .config/server.js && yarn build-server-program && yarn workspace server create-samples"
}
},
{
"name": "makeflow-ui",
"params": ["branch"],
"git": {
"url": "[email protected]:makeflow/makeflow-ui.git",
"branch": "master",
"newBranch": "${branch}"
},
"scripts": {
"initialize": "yarn"
}
},
{
"name": "syncable",
"params": ["branch"],
"git": {
"url": "[email protected]:makeflow/syncable.git",
"branch": "master",
"newBranch": "${branch}"
},
"scripts": {
"initialize": "yarn"
}
},
{
"name": "boring-router",
"params": ["branch"],
"git": {
"url": "[email protected]:makeflow/boring-router.git",
"branch": "master",
"newBranch": "${branch}"
},
"scripts": {
"initialize": "yarn"
}
}
],
"services": [
{
"name": "mongo",
"image": "mongo"
},
{
"name": "redis",
"image": "redis"
},
{
"name": "zookeeper",
"image": "zookeeper"
}
]
}
}