instance-input-schema.json 3.78 KB
Newer Older
1
{
2
  "$schema": "https://json-schema.org/draft/2019-09/schema",
3
  "description": "Parameters to instantiate Theia",
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
  "$defs": {
    "instance-parameters": {
      "type": "object",
      "properties": {
        "autorun": {
          "title": "Automatically Run Software/Instance",
          "description": "The option used to pilot automatic build and run of software and instances hosted inside Theia. When 'running', build and run is done automatically in the background. When 'stopped' build and run processes are stopped and need to be run manually. When 'user-controlled', the user can manage it directly in the local supervisord. ",
          "type": "string",
          "enum": [
            "running",
            "stopped",
            "user-controlled"
          ],
          "default": "running"
        },
        "initial-embedded-instance": {
          "title": "Initial Embedded Instance Configuration",
          "description": "One-shot optional JSON preconfiguration for an embedded instance. Only applied once when Theia is instantiated. Changing this option afterward will have no effect.",
          "type": "string",
          "textarea": true,
          "examples": [
            "{\"software-url\": \"~/srv/project/slapos/software/html5as-base/software.cfg\"}",
            "{\"software-url\": \"~/srv/project/slapos/software/html5as/software.cfg\", \"software-type\": \"replicate\", \"instance-parameters\": {\"replicate-quantity\": 3}}"
          ]
        },
        "forward-slapos-frontend-requests": {
          "title": "Forward Frontend Requests in the Embedded SlapOS",
          "description": "Embedded SlapOS instance by default forwards frontend requests as shared instances attached to the Theia instance, so that HTTP frontends can be allocated for services. This behavior can be disabled, in that case frontends will not be allocated.",
          "type": "string",
          "enum": [
            "enabled",
            "disabled"
          ],
          "default": "enabled"
        },
        "frontend-guid": {
          "title": "Frontend Instance ID",
          "description": "Unique identifier of the frontend instance, like \"SOFTINST-11031\".",
          "type": "string"
        },
        "frontend-sr": {
          "title": "Frontend Software URL",
          "description": "Software Release URL of the frontend instance, like \"http://example.com/path/to/software.cfg\".",
          "type": "string",
          "format": "uri",
          "default": "http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg"
        },
        "frontend-sr-type": {
          "title": "Frontend Software Type",
          "description": "Type of the frontend instance, like \"frontend\".",
          "type": "string",
55
          "default": "default"
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
        },
        "additional-frontend-guid": {
          "title": "Additional Frontend Instance ID",
          "description": "Unique identifier of the additional frontend instance, like \"SOFTINST-11031\", if empty won't be requested.",
          "type": "string"
        },
        "additional-frontend-sr": {
          "title": "Additional Frontend Software URL",
          "description": "Software Release URL of the frontend instance, like \"http://example.com/path/to/software.cfg\".",
          "type": "string",
          "format": "uri",
          "default": "http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg"
        },
        "additional-frontend-sr-type": {
          "title": "Additional Frontend Software Type",
          "description": "Type of the frontend instance, like \"frontend\".",
          "type": "string",
73
          "default": "default"
74 75
        }
      }
76
    }
77 78 79 80 81 82 83
  },
  "unevaluatedProperties": false,
  "allOf": [
    {
      "$ref": "#/$defs/instance-parameters"
    }
  ]
84
}