fabric8io / fabric8

fabric8 is an open source microservices platform based on Docker, Kubernetes and Jenkins
http://fabric8.io/
1.76k stars 504 forks source link

Native support for javaee7 #6560

Open mphmelsen opened 7 years ago

mphmelsen commented 7 years ago

I'm in the process of setting up my first microservice using f-m-p and deploying that on openshift (Iocal setup using cdk and remote using container development platform on premise). My only option so it seems is to keep on rebuilding images if something is changing in my code. As this is very timeconsuming and so much different from hot deployment in monolithic apps that we use now, I was hoping that f-m-p would support some kind of hot deploy. Unfortunately it doesn't so my question is, can you support this?

regards

Michael

rhuss commented 7 years ago

How does you Microservice look like ? Is it a Java EE application or a fat-jar ? Do you use spring-boot ? For spring boot we have some support of hot reloading. For other setups we plan to use a layered approach where we put the dependencies in a base image and the application code into a second layer so that only the second layer needs to be transferred when something changes.

However this is still in early stages. When it gets implemented it will be part of https://github.com/fabric8io/fabric8-maven-plugin

mphmelsen commented 7 years ago

I'm running eap64 and uploaded my war in the docker image in the deployment directory. I do not use spring-boot. So how does this layering work than? does this require additional config in the dockerfile?