Hi,
I am looking at running spring boot kie-server in unmanaged mode after going pass the development phase. In this case, I don't need to run kie-wb. This can reduce the CPU and memory resources required.
I managed to deployed the kmodule with the following code
String deploymentUnit. = "com.myteam:demo:1.0.194";
String[] gav = deploymentUnit.split(":");
unit = new KModuleDeploymentUnit(gav[0], gav[1], gav[2]);
deploymentService.deploy(unit);
I can see the following log which indicates that the kmodule was successfully deployed
kie-server_1 | 2018-02-09 09:22:57.711 INFO 5 --- [ main] o.d.c.k.builder.impl.KieRepositoryImpl : KieModule was added: ZipKieModule[releaseId=com.myteam:demo:1.0.194,file=/root/.m2/repository/com/myteam/demo/1.0.194/demo-1.0.194.jar]
However, when accessing the /rest/server/containers REST endpoint, I got the following
<response type="SUCCESS" msg="List of created containers">
</response>
Any idea?
Also, how can I specify the container Id for the deployed kmodule? No such method in deploymentService. I believe I need that as most of rest call requires container Id or deployment Id to be specified.
Regards,'
--Nick