This image is based on these blog entries
- http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/
- http://www.lorenzobettini.it/2012/10/installing-eclipse-features-via-the-command-line/
Thanks to the authors :)
- Eclipse Mars (or Luna - depends on tag) for RCP and RAP developers
- Findbugs
- Checkstyle
- Database Viewer
- Memory Analyzer
- QuickREx
- Oracle JDKs 6,7 and 8
- gradle
- ant
- git
docker run -it \
--name eclipse \
-v ~/workspace/:/home/developer/workspace/ \
-e DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
joemat/docker-eclipse-for-rcp
The -v
parameter binds the directory workspace
to /home/developer/workspace
wihtin in the cotainer. You may want to adjust this parameter.
If the UI does not come up try to call xhost + localhost
before starting the container.
git clone https://github.com/joemat/docker-eclipse-for-rcp.git
cd docker-eclpse-for-rcp
# (optional: adjust UID, GUI and User in Dockerfile)
docker build -t eclipse-for-rcp .
# run the image to create a container
docker run -it \
--name eclipse \
-v ~/workspace/:/home/developer/workspace/ \
-e DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
docker-eclipse-for-rcp
docker start eclipse
The container is stopped when Eclipse is shut down.
To get a shell within the running container (e.g. for running gradle
or mvn
from the commandline) call:
docker exec -ti -u developer eclipse bash