Setting up Java + svn + Eclipse+ Tomcat , development environment with docker -
i started tryout docker see if helps setting our development environment , consists of
- jdk 1.6
- eclipse
- rabbitvcs
- tomcat
- mysql server
our development desktops ubuntu 16.04 . have eclipse, rabbitvcs installed on host , rest in container .
if every thing goes , developers should able download docker image . running image should give them jdk , tomcat , mysql server . developers can start using rabbitvcs check out projects .
is feasible docker ?
tl;dr
it not feasible run eclipse in host os , use jdk/jre runs in container because eclipse has dependency on jre. cannot have tomcat in 1 container , jre/jdk in container because tomcat needs jre run.
explanation
i have eclipse, rabbitvcs installed on host , rest in container....... running image should give them jdk , tomcat , mysql server
are trying use jdk running on docker container (and eclipse ide running on host os) active development? if case, it not not feasible (arguable, can remote debugging; remember, debugging different active development) . , not intend of docker. while developing, developers may need have jdk installed in host machine itself. in case, sensible thing run container mysql don't have active development there.
edit: build portable development environment
in docker-land, 1 possible solution is, have eclipse+jdk+tomcat in same docker image , mount x11 socket container can expose eclipse gui running in container host os
more read here: https://blog.jessfraz.com/post/docker-containers-on-the-desktop/
or ditch docker , go full-blown vm virtualbox, might able find pre-built images eclipse in (not sure), or can build 1 after installing required packages on base image , share amongst developers.
Comments
Post a Comment