Eclipse IDE within docker

shrivb picture shrivb · Nov 30, 2015 · Viewed 22.1k times · Source

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.

Answer

Mario Souza picture Mario Souza · Feb 4, 2018

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/.