Eclipse Integration - Docker

I am looking for a way to integrate Docker containers with the Eclipse platform. I would like to run the entire build / test / debug command inside the containers and use the same containers in the continuous integration assembly and then in the production process.

The easiest way I looked was to simply set up a custom command, but besides the permission problem (the docker should work as sudo / root), it does not give me all the flexibility of real integration.

Any ideas on how to best act?

+7
eclipse docker
source share
5 answers

this is not a complete answer to your question, but we (the JBoss Tools team) started working on it, and here are some blogs on what we can do today and where we are with the tools of the Eclipse dock.

http://tools.jboss.org/blog/2015-03-02-getting-started-with-docker-and-wildfly.html

http://tools.jboss.org/blog/2015-03-03-docker-and-wildfly-2.html

http://tools.jboss.org/blog/2015-03-30-Eclipse_Docker_Tooling.html

+2
source share

For this, I think you are working on the Linux platform :-)

What am I doing for a classic java project:

  • Create a Docker image that contains jdk and maven, for example
  • In Eclipse, through “Run Configurations”, create a “build in Docker” configuration that runs the following command:
    docker run --rm -v <eclipse_workspace_dir>:/usr/src/myapp -w /usr/src/myapp myrepo/myimage mvn clean install

he should work.

For your continuous integration, you can use the Docker Jenkins plugin to do the same or with a sh script.

+2
source share

There is Docker Tooling for Eclipse , this update site is available (you also need to add this update site , as of now).

0
source share

Try Eclipse-Che https://eclipse.org/che/ You can install it as starting Docker.

0
source share

enter image description here These links were very useful to me:

https://github.com/docker/labs/blob/master/developer-tools/java-debugging/Eclipse-README.md

https://github.com/docker/labs/blob/master/developer-tools/java/chapters/ch07-eclipse.adoc

https://docs.docker.com/samples/

It's all about the tutorial: Debugging Java applications in Docker , Installing Docker Tooling in Eclipse You can also watch a quick video explaining the key steps at https://www.youtube.com/watch?v=XmhEZiS26os

To configure remote debugging in Eclipse, click Run> Debug Configurations ...

Tomcat, for example, supports remote debugging of the Java Platform debugger architecture (JPDA). Verify that remote debugging was enabled when the tomcat image (registration-webserver) was created.

-one
source share

All Articles