Eclipse IDE in docker

I am doing dev on a windows machine and using docker via docker machine. Thanks to the help of @VonC, I managed to reach the folder from the windows dev folder in the docker container.

The IDE I would like to use for Java development is Eclipse. But I would not want to install the entire java system on my host machine. And since my host computer is Windows (not the X-system), I cannot use the X11 socket sharing material, as mentioned here , to install Eclipse in the container where Java is located.

So, if my code is on my main machine and the whole java subsystem is in the docker container, can Eclipse build the code? Someone who runs on a host other than Linux (preferably Windows) got an Eclipse IDE for building Java applications using a java-wood image to store all java stuff.

+9
java eclipse windows docker docker-machine
source share
4 answers

I am pretty sure that there is no way (yet?) For running graphical applications in Docker on a Windows host.

However, you can still compile inside dockers (using the Java ecosystem) and run Eclipse (or any other IDE) from your windows using volumes. But Java is embedded with Eclipse, if I'm right ... Therefore, I don’t know which IDE you could use, and don’t know how to get all your functions (the IDE is usually compiled on every line you write to graphically display a compilation error) .

In any case ... I want to say that you can use any IDE that you want to change, and any compiler that you like (or even ANT, or MAVEN or ..) to compile inside Docker.

+1
source share

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

Even when possible, someone should take care of creating new images for each version of Eclipse.

And I just raised the question "work 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

+1
source share

You can achieve this 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 in Docker.

By the way, it works in a browser.

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

+1
source share

You can set your own eclipse w32 and run builds from Docker, as explained in the Eclipse-Docker integration answer .

0
source share

All Articles