|
| 1 | +{ |
| 2 | + "type": "object", |
| 3 | + "properties": { |
| 4 | + "service": { |
| 5 | + "description": "Configuration properties for the Pluto.jl notebook", |
| 6 | + "type": "object", |
| 7 | + "properties": { |
| 8 | + "name": { |
| 9 | + "description": "Display name.", |
| 10 | + "type": "string", |
| 11 | + "default": "plutojl", |
| 12 | + "x-form": { |
| 13 | + "hidden": true |
| 14 | + }, |
| 15 | + "x-generated": { |
| 16 | + "type": "appID", |
| 17 | + "scope": "plutojl" |
| 18 | + } |
| 19 | + }, |
| 20 | + "cpus": { |
| 21 | + "description": "CPU shares to allocate to this marathon instance.", |
| 22 | + "type": "number", |
| 23 | + "default": 0.1, |
| 24 | + "minimum": 0.1 |
| 25 | + }, |
| 26 | + "mem": { |
| 27 | + "description": "Memory (in MB) to allocate to this marathon instance.", |
| 28 | + "type": "number", |
| 29 | + "default": 2048, |
| 30 | + "minimum": 1024 |
| 31 | + } |
| 32 | + }, |
| 33 | + "required": ["name", "cpus", "mem"] |
| 34 | + }, |
| 35 | + "script": { |
| 36 | + "type": "object", |
| 37 | + "description": "scripts", |
| 38 | + "properties": { |
| 39 | + "uri": { |
| 40 | + "type": "string", |
| 41 | + "description": "uri of a .sh file that will be executed at runtime", |
| 42 | + "default": "" |
| 43 | + } |
| 44 | + } |
| 45 | + }, |
| 46 | + "init": { |
| 47 | + "description": "Init parameters", |
| 48 | + "type": "object", |
| 49 | + "properties": { |
| 50 | + "global": { |
| 51 | + "type": "string", |
| 52 | + "description": "initialization script", |
| 53 | + "default": "", |
| 54 | + "x-form": { |
| 55 | + "hidden": true |
| 56 | + }, |
| 57 | + "x-generated": { |
| 58 | + "type": "initScript", |
| 59 | + "scope": "plutojl" |
| 60 | + } |
| 61 | + } |
| 62 | + } |
| 63 | + }, |
| 64 | + "networking": { |
| 65 | + "description": "Networking-related configuration properties for Pluto.jl on DC/OS.", |
| 66 | + "type": "object", |
| 67 | + "properties": { |
| 68 | + "network-name": { |
| 69 | + "description": "Name of the container network to use", |
| 70 | + "type": "string", |
| 71 | + "default": "dcos", |
| 72 | + "x-form": { |
| 73 | + "hidden": true |
| 74 | + }, |
| 75 | + "x-generated": { |
| 76 | + "type": "containerNetworkName", |
| 77 | + "scope": "plutojl" |
| 78 | + } |
| 79 | + }, |
| 80 | + "virtual-host": { |
| 81 | + "description": "The virtual host address to configure for integration with Marathon-lb for port 0.", |
| 82 | + "type": "string", |
| 83 | + "x-form": { |
| 84 | + "hidden": true |
| 85 | + }, |
| 86 | + "x-generated": { |
| 87 | + "type": "externalDNS", |
| 88 | + "scope": "plutojl", |
| 89 | + "name": "ihm" |
| 90 | + } |
| 91 | + }, |
| 92 | + "https-redirect": { |
| 93 | + "description": "Whether Marathon-lb should redirect HTTP traffic to HTTPS. This requires 'virtual-host' to be set. By default, this is false.", |
| 94 | + "type": "boolean", |
| 95 | + "default": true |
| 96 | + }, |
| 97 | + "whitelist": { |
| 98 | + "type": "object", |
| 99 | + "description": "IP protection", |
| 100 | + "properties": { |
| 101 | + "enable": { |
| 102 | + "type": "boolean", |
| 103 | + "title": "Enable IP protection", |
| 104 | + "description": "Only the configured set of IPs will be able to reach the service", |
| 105 | + "default": true |
| 106 | + }, |
| 107 | + "ip": { |
| 108 | + "type": "string", |
| 109 | + "description": "the white list of IP is whitespace", |
| 110 | + "title": "Whitelist of IP", |
| 111 | + "x-form": { |
| 112 | + "value": "{{user.ip}}" |
| 113 | + } |
| 114 | + } |
| 115 | + } |
| 116 | + } |
| 117 | + }, |
| 118 | + "required": ["virtual-host", "https-redirect"] |
| 119 | + }, |
| 120 | + "git": { |
| 121 | + "description": "Git user configuration", |
| 122 | + "type": "object", |
| 123 | + "properties": { |
| 124 | + "name": { |
| 125 | + "type": "string", |
| 126 | + "description": "user name for git", |
| 127 | + "default": "", |
| 128 | + "x-form": { |
| 129 | + "value": "{{git.name}}", |
| 130 | + "readonly": false |
| 131 | + } |
| 132 | + }, |
| 133 | + "email": { |
| 134 | + "type": "string", |
| 135 | + "description": "user email for git", |
| 136 | + "default": "", |
| 137 | + "x-form": { |
| 138 | + "value": "{{git.email}}", |
| 139 | + "readonly": false |
| 140 | + } |
| 141 | + }, |
| 142 | + "cache": { |
| 143 | + "type": "string", |
| 144 | + "description": "duration in seconds of the credentials cache duration", |
| 145 | + "default": "", |
| 146 | + "x-form": { |
| 147 | + "value": "{{git.credentials_cache_duration}}", |
| 148 | + "readonly": false |
| 149 | + } |
| 150 | + } |
| 151 | + } |
| 152 | + }, |
| 153 | + "vault": { |
| 154 | + "description": "Configuration of vault client", |
| 155 | + "type": "object", |
| 156 | + "properties": { |
| 157 | + "token": { |
| 158 | + "description": "token vault", |
| 159 | + "type": "string", |
| 160 | + "x-form": { |
| 161 | + "value": "{{vault.VAULT_TOKEN}}" |
| 162 | + } |
| 163 | + }, |
| 164 | + "url": { |
| 165 | + "description": "url of vault server", |
| 166 | + "type": "string", |
| 167 | + "x-form": { |
| 168 | + "value": "{{vault.VAULT_ADDR}}" |
| 169 | + } |
| 170 | + }, |
| 171 | + "mount": { |
| 172 | + "description": "mount of the v2 secret engine", |
| 173 | + "type": "string", |
| 174 | + "x-form": { |
| 175 | + "value": "{{vault.VAULT_MOUNT}}" |
| 176 | + } |
| 177 | + }, |
| 178 | + "directory": { |
| 179 | + "description": "top level directory", |
| 180 | + "type": "string", |
| 181 | + "x-form": { |
| 182 | + "value": "{{vault.VAULT_TOP_DIR}}" |
| 183 | + } |
| 184 | + }, |
| 185 | + "secret": { |
| 186 | + "description": "the path of the secret to convert into a list of environment variables", |
| 187 | + "type": "string", |
| 188 | + "default": "" |
| 189 | + } |
| 190 | + } |
| 191 | + }, |
| 192 | + "s3": { |
| 193 | + "description": "Configuration of temporary identity", |
| 194 | + "type": "object", |
| 195 | + "properties": { |
| 196 | + "accessKeyId": { |
| 197 | + "description": "AWS Access Key", |
| 198 | + "type": "string", |
| 199 | + "x-form": { |
| 200 | + "value": "{{s3.AWS_ACCESS_KEY_ID}}" |
| 201 | + } |
| 202 | + }, |
| 203 | + "endpoint": { |
| 204 | + "description": "AWS S3 Endpoint", |
| 205 | + "type": "string", |
| 206 | + "x-form": { |
| 207 | + "value": "{{s3.AWS_S3_ENDPOINT}}" |
| 208 | + } |
| 209 | + }, |
| 210 | + "defaultRegion": { |
| 211 | + "description": "AWS S3 default region", |
| 212 | + "type": "string", |
| 213 | + "x-form": { |
| 214 | + "value": "{{s3.AWS_DEFAULT_REGION}}" |
| 215 | + } |
| 216 | + }, |
| 217 | + "secretAccessKey": { |
| 218 | + "description": "AWS S3 secret access key", |
| 219 | + "type": "string", |
| 220 | + "x-form": { |
| 221 | + "value": "{{s3.AWS_SECRET_ACCESS_KEY}}" |
| 222 | + } |
| 223 | + }, |
| 224 | + "sessionToken": { |
| 225 | + "description": "AWS S3 session Token", |
| 226 | + "type": "string", |
| 227 | + "x-form": { |
| 228 | + "value": "{{s3.AWS_SESSION_TOKEN}}" |
| 229 | + } |
| 230 | + }, |
| 231 | + "expiration": { |
| 232 | + "description": "Temporary identity expiration date", |
| 233 | + "type": "string", |
| 234 | + "x-form": { |
| 235 | + "value": "{{s3.AWS_EXPIRATION}}" |
| 236 | + } |
| 237 | + } |
| 238 | + } |
| 239 | + } |
| 240 | + }, |
| 241 | + |
| 242 | + "required": ["service", "networking"] |
| 243 | +} |
0 commit comments