Hi Steinar,
To be honest, I didn’t know Heroku.
If Heroku is able to run Java, I don’t see why we won’t be able to run karaf.
It’s basically, what pax exam is doing.
It would be even simpler with Karaf5 as we have the Karaf main:
KarafConfig config = KarafConfig.builder()
.homeDirectory("karaf")
.dataDirectory("karaf/data")
.cacheDirectory("karaf/data/cache")
.build();
karaf = Karaf.build(config);
karaf.init();
karaf.addExtension("mvn:org.apache.karaf.extensions/log/5.0.0-SNAPSHOT");
karaf.addModule("file:my-app.jar");
So, we can do that in "code" and let heroku build it and run it.
We already have a full story with Kubenetes (I blogged about that, and I’m
preparing a blog about Karaf5).
I think we can prepare a heroku use case if it’s useful.
Regards
JB
> Le 7 mars 2021 à 10:23, Steinar Bang <[email protected]> a écrit :
>
> Has anyone here run karaf on heroku?
> Or rather: has anyone here run applications in karaf on heroku?
>
> Seems like it should be possible from the Java on heroku documentation?
> Seems like the jigzaw puzzle parts all are in place, or almost all are
> in place...?
> https://devcenter.heroku.com/articles/java-support
>
> If you can get a karaf pulled in by "mvn install" (which happens in my
> karaf projects, to use in the integration test), fix the configuration
> to add an extra feature, or two, to load, and provide heroku with the
> proper start point to start karaf, then everything basically should
> start and run:
>
> Not sure how to provide the start point to start karaf? With a
> Procfile, maybe...?
> https://devcenter.heroku.com/articles/procfile
>
> One benefit, from my point of view, would be that heroku can run your
> application built from the head of your branch, i.e. the newest
> SNAPSHOT, without adding a snapshot repository.
>