software/theia: Simplify embedded SR options
Xavier Thompson authored
Remove existing "embedded instance" options:
- `embedded-sr`
- `embedded-sr-type`
- `embedded-instance-parameters`

Instead introduce `one-time-embedded-instance` option:
- Only taken into account when Theia is instantiated the first time.
- Content should be a JSON object with:
  - 'software-url': string of the software URL
  - 'software-type': (optional) string of the software type
  - 'instance-parameters': (optional) JSON object

If the option is non-empty:
- Theia will attempt once to:
  - Parse the JSON content
  - Create a supply/request script
  - Call the script
- A promise will check whether the script was successfully called.

If the promise fails forever, e.g. because of ill-formed JSON, emptying
the option will remove the promise. Editing the option after the first
time will have no effect, whether the promise succeded or not.
8cb2f7d7
Name Last commit Last update
.husky pre-commit hook: version up and python3 support
component Fix indentation/spacing of some inline options
slapos Clean up slapos.recipe.template
software software/theia: Simplify embedded SR options
stack Fix indentation/spacing of some inline options
.editorconfig .editorconfig: extends to python files as well
.gitignore Ignore file generated by update-rc
MANIFEST.in cleanup: README and CHANGES files where renamed.
README.rst [slapconfiguration] Recipe reads partitions resource file (tests included)
README.software.rst doc: Update file extension and clean up unused files
README.update-hash.rst slapos: Provide update-hash README
format-json format-json: python3 support
package-lock.json pre-commit hook: version up and python3 support
package.json package.json: also configure git update-hash-mergetool
release-cookbook Add script to release slapos.cookbook
release-sr release-sr: Fix usage for various cases
schema.json *: reformat json with format-json
setup.py Release slapos.cookbook (1.0.238)
sla.schema.json *: reformat json with format-json
update-hash update-hash: python3 support
update-hash-mergetool tools: a simple git.mergetool for working with buildout.hash.cfg
update-rc update-rc: Update origin before playing with it
validate-schema Add validate-schema: A slapos descriptor schema validator.