Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse IDE within docker

I do dev on a Windows machine and using docker via docker-machine. Due to help from @VonC was able to achieve folder share from windows dev folder to docker container.

The IDE I would like to use for Java development is Eclipse. But I would not like to install the whole java system on my host machine. And since my host machine is Windows (not an X system), can't use the X11 socket sharing stuff as mentioned here to install Eclipse into the container where Java resides.

So, if my code resides in my host machine and whole java subsystem is within the docker container, would Eclipse be able to build the code? Has anyone working on a non-Linux (preferably Windows) host got Eclipse IDE to build java applications using a java docker image to hold all things java.

like image 640
shrivb Avatar asked Nov 30 '15 06:11

shrivb


2 Answers

Take a look at https://github.com/fgrehm/docker-eclipse (authored by the same person as blog post)

Even when it is possible someone should care about making new images for every Eclipse version.

And I have just raised issue "run on Windows" #7 https://github.com/fgrehm/docker-eclipse/issues/7

Also see https://rgrunber.wordpress.com/2016/01/26/eclipse-inside-a-docker-container/ about using VNC

like image 78
Paul Verest Avatar answered Sep 30 '22 06:09

Paul Verest


You can achieve this behavior by using eclipse che:

https://hub.docker.com/r/eclipse/che/

Eclipse Che is a next-generation cloud IDE and workspace server that can run anywhere Docker runs.

By the way, it runs in a browser.

Another alternative is cloud9: https://docs.c9.io/docs/.

like image 44
Mario Souza Avatar answered Sep 30 '22 05:09

Mario Souza