Eclipse - Docker integration - Stack Overflow
To do that, i think you work on a Linux platform :-)
What i do for a classic java project :
- Build a Docker image that contains a jdk and maven for example
- In Eclipse, via "Run Configurations", create a "build in Docker" configuration that launch a command like this :
docker run --rm -v <eclipse_workspace_dir>:/usr/src/myapp -w /usr/src/myapp myrepo/myimage mvn clean install
it should work.
For your continuous integration, you can use Docker Jenkins plugin to do the same or with a sh script.
Read full article from Eclipse - Docker integration - Stack Overflow
No comments:
Post a Comment