This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phovea_product.schema.json
173 lines (173 loc) · 5.64 KB
/
phovea_product.schema.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
"$id": "phovea_product",
"type": "array",
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"items": {
"$id": "phovea_product/items",
"type": "object",
"required": [
"type",
"repo"
],
"properties": {
"type": {
"$id": "phovea_product/items/properties/type",
"type": "string",
"title": "the type of product to build",
"default": "",
"examples": [
"web",
"service",
"api"
]
},
"name": {
"$id": "phovea_product/items/properties/name",
"type": "string",
"title": "name of the repo",
"default": "guesses from the repository",
"examples": [
"ordino",
"server"
]
},
"label": {
"$id": "phovea_product/items/properties/label",
"type": "string",
"title": "product label and docker image label",
"default": "=name",
"examples": [
"ordino",
"server"
]
},
"repo": {
"$id": "phovea_product/items/properties/repo",
"type": "string",
"title": "repository to use",
"description": "either a full git url or in the form <GithubAccount>/<repo>",
"default": "",
"examples": [
"Caleydo/ordino"
]
},
"symlink": {
"$id": "phovea_product/items/properties/symlink",
"type": "string",
"title": "location relative to the product directory which contains the clone repository",
"description": "Note symbolic links will be created to ensure the proper structure",
"default": "",
"examples": [
"../myclone"
]
},
"branch": {
"$id": "phovea_product/items/properties/branch",
"type": "string",
"title": "the branch, tag, or sha1 commit to use",
"default": "master",
"examples": [
"master",
"v1.2.3",
"dc7486a472a987a2f6a38cd18b9b069487f1a4c8",
"develop"
]
},
"additional": {
"$id": "phovea_product/items/properties/additional",
"type": "array",
"description": "additional repositories that should be included in the build",
"items": {
"$id": "phovea_product/items/properties/additional/items",
"type": "object",
"required": [
"nane",
"repo"
],
"properties": {
"name": {
"$id": "phovea_product/items/properties/additional/items/properties/name",
"type": "string",
"title": "name of the repo",
"default": "",
"examples": [
"phovea_core"
]
},
"repo": {
"$id": "phovea_product/items/properties/additional/items/properties/repo",
"type": "string",
"title": "repository to use",
"description": "either a full git url or in the form <GithubAccount>/<repo>",
"default": "",
"examples": [
"Caleydo/ordino"
]
},
"symlink": {
"$id": "phovea_product/items/properties/symlink",
"type": "string",
"title": "location relative to the product directory which contains the clone repository",
"description": "Note symbolic links will be created to ensure the proper structure",
"default": "",
"examples": [
"../myclone"
]
},
"branch": {
"$id": "phovea_product/items/properties/additional/items/properties/branch",
"type": "string",
"title": "the branch, tag, or sha1 commit to use",
"default": "master",
"examples": [
"master",
"v1.2.3",
"dc7486a472a987a2f6a38cd18b9b069487f1a4c8",
"develop"
]
}
}
}
},
"data": {
"$id": "phovea_product/items/properties/data",
"type": "array",
"description": "a list of data files that should be included in /phovea/_data of the server build",
"items": {
"$id": "phovea_product/items/properties/data/items",
"type": "object",
"properties": {
"name": {
"$id": "phovea_product/items/properties/data/items/properties/name",
"type": "string",
"title": "name to store the file as",
"default": "derived from url or repo"
},
"url": {
"$id": "phovea_product/items/properties/data/items/properties/url",
"type": "string",
"title": "url to a file to download",
"description": "if the file doesn't start with http... it is assumed that the file is relative to https://s3.eu-central-1.amazonaws.com/phovea-data-packages/",
"default": "",
"examples": [
"test.h5",
"https://test.com/test.txt"
]
},
"repo": {
"$id": "phovea_product/items/properties/data/items/properties/repo",
"type": "string",
"title": "repository to clone that contains a data directory, the /data directory is cloned to /phovea/_data/<reponame>",
"description": "either a full git url or in the form <GithubAccount>/<repo>",
"default": "",
"examples": [
"Caleydo/ordino"
]
}
}
}
}
}
}
}