Commit cb40e46f authored by Xavier Thompson's avatar Xavier Thompson

software/theia: Add switch-softwaretype

This defers the rendering of `instance-theia.cfg.in` to the instance
creation time instead of the software installation time, which will
allow buildout sections to be added based on the instance parameters.

See merge request !981
parent 7ae4d31a
...@@ -13,9 +13,13 @@ ...@@ -13,9 +13,13 @@
# section inheritance (< = ...) are NOT supported (but you should really # section inheritance (< = ...) are NOT supported (but you should really
# not need these here). # not need these here).
[instance-theia]
filename = instance-theia.cfg.jinja.in
md5sum = a5a7db274eb11c022a12142fabc9a355
[instance] [instance]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = bfd488ba023f505be25d947ec830bab3 md5sum = eb4ee219603da65b748cb912685b9b17
[yarn.lock] [yarn.lock]
filename = yarn.lock filename = yarn.lock
......
This diff is collapsed.
This diff is collapsed.
...@@ -22,6 +22,7 @@ extends = ...@@ -22,6 +22,7 @@ extends =
parts = parts =
theia-wrapper theia-wrapper
slapos-cookbook slapos-cookbook
instance-theia
instance instance
# default for slapos-standalone # default for slapos-standalone
...@@ -323,6 +324,10 @@ template = ...@@ -323,6 +324,10 @@ template =
#!/bin/sh #!/bin/sh
exec ${nodejs:location}/bin/node ${theia:location}/node_modules/.bin/theia-open "$@" exec ${nodejs:location}/bin/node ${theia:location}/node_modules/.bin/theia-open "$@"
[instance-theia]
<= template-base
output = ${buildout:directory}/instance-theia.cfg.jinja
[instance] [instance]
<= template-base <= template-base
output = ${buildout:directory}/instance.cfg output = ${buildout:directory}/instance.cfg
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment