Closed KHaack closed 6 years ago
@KHaack, does the chatbot application work properly when run in a docker containers. Cause in this version of code, the chatbot references to resource directories via path src/main/resources. But this was not available inside docker containers as it is packaged as an executable jar.
The fix was to load the resources via Spring classpath.
Since we only need a bare minimum java to run our application, can we use a slim version of the docker base image found in https://hub.docker.com/_/openjdk/ , cause if we take a standard java image, each docker image for each microservice will be around 700 MB or so, which creates lot of bandwadith usage for each commit as finally the intention is to use run them as part of travis CI for each pull request.
yeah i was looking for a config file, where can i find it? then i would use the mvn profiles for configuration. :)
the problem with the java version is, that there is no supported java 9 version anymore. you will find there only 8 and 10 :P oracle canceled the supported in march '18 and since then its hard to find java 9.
@KHaack I think @guru5590 modified the code of chatbot in his branch to change to using class path to solve the src/main/resources problem. Because chatbot causes some issues with any user input inside a docker.
@guru5590 Can you please point to the files?
Hi Kevin,
Can we introduce a yaml config file, for all the environment variables like the docker base image, ports (if needed dependencies between microservices). Then we could read it via java code or the deployment scripts.
We can use open jdk images instead of oracle jdk. The good thing would be openjdk comes security patches Instead of we needing to manage it in oracle jdk. And there is lot more open source maintenance on these images.
I think I have use openjdk9-slim version. It’s in the ci-deployment branch under playbooks folder.
Thanks, Guru
On Sun 8. Jul 2018 at 11:51, Kevin Haack notifications@github.com wrote:
yeah i was looking for an config file, where can i find it? then i would use the mvn profiles for configuration. :)
the problem with the java version is, that there is no supported java 9 version anymore. you will find there only 8 and 10 :P oracle canceled the supported in march '18 and since then its hard to find java 9.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/dice-group/sask/pull/71#issuecomment-403276038, or mute the thread https://github.com/notifications/unsubscribe-auth/AHcXu36zWvZmxPP6buKh9Ko2GQr4goysks5uEdYngaJpZM4VGUau .
Prashanth it’s in ci-deployment branch. @kevin can we meet tomorrow in the project. Actually there are many things we can reuse among our code, instead of rewriting the same.
Thanks, Guru
On Sun 8. Jul 2018 at 15:16, Prashanth notifications@github.com wrote:
@KHaack https://github.com/KHaack I think @guru5590 https://github.com/guru5590 modified the code of chatbot in his branch to change to using class path to solve the src/main/resources problem. Because chatbot causes some issues with any user input inside a docker.
@guru5590 https://github.com/guru5590 Can you please point to the files needed to be merged here?
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/dice-group/sask/pull/71#issuecomment-403287153, or mute the thread https://github.com/notifications/unsubscribe-auth/AHcXuxsrmK3y93OQeAOAQOuRzlBsoYLEks5uEgYrgaJpZM4VGUau .
I think openjdk is not longer available in version 9.
And I think we shouldnt make bigger changes then this. I can merge this little chatbot changes. Then we are ready, everything else is documented in the wiki :) but we can talk tomorrow :)
@KHaack , I had added the changes needed for dockerizing chatbot application.
@prasanthhs , if the changes are fine, please merge it to master
Setup the project for docker support. In addition to the
windows
andlinux
profiles, we introduceddocker
andlocal
.For example, if you want to run the eureka-server on your local windows machine you can use the following command:
If you want to build a Docker container from a microservice, use the following command: You need to run this command on a linux machine
To run a docker container use:
This works for all microservices.
In addition, the docker run command from fuseki and hadoop are slightly different from the local ones.