Hi,

On Fri, Dec 3, 2021 at 4:55 PM Robert Munteanu <[email protected]> wrote:
> ...In the context of the upcoming Sling 12 launch we should settle on a
> recommended mechanism for launching the Sling Starter...

I don't remember us discussing jbang but it might be a good alternative.

As a demo I have setup a stub startup script [1] which you can call with

  jbang start@apache/sling-whiteboard -p 1234

After installing jbang if needed from [2], without even requiring a
JVM to be preinstalled. The right JVM version can be selected by the
script [5].

Another example [3] parses a repoinit script after downloading the
required dependencies listed in the script with //DEPS :

  echo "create path /itworks" | jbang repoinitValidator@apache/sling-whiteboard

The mapping between those jbang commands and the scripts happens via a
jbang catalog JSON file at [4].

I think this would be a nice way of creating the necessary glue to
start Sling from scratch, and the instructions fit in a tweet which I
like a lot ;-)

We'd probably create a specific repository for those scripts, so the
above commands would use sling-start instead of sling-whiteboard.

-Bertrand

[1] https://github.com/apache/sling-whiteboard/blob/master/start.java
[2] https://www.jbang.dev/download/
[3] 
https://github.com/apache/sling-whiteboard/blob/master/jbang/RepoinitValidator.java
[4] https://github.com/apache/sling-whiteboard/blob/master/jbang-catalog.json
[5] https://www.jbang.dev/documentation/guide/latest/javaversions.html

Reply via email to