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 Neon for RCP and RAP developers
Eclipse Luna available in its branch.
- Findbugs¹
- Checkstyle¹
- Database Viewer¹
- Memory Analyzer¹
- QuickREx¹
- M2Eclipse (Tycho)
- E(fx)clipse
¹ Available but commented. The image must be built again using the Dockerfile with the specific parameters and/or uncommented lines to have the feature.
- Oracle JDKs 7 and 8
- Gradle¹
- Ant
- Git
¹ Available but commented. The image must be built again using the Dockerfile with the specific parameters and/or uncommented lines to have the feature.
git clone https://github.com/guedressel/docker-eclipse.git
cd docker-eclipse
# (optional: adjust UID, GUI and User in Dockerfile)
docker build -t eclipse-rcp:neon .
# run the image to create a container
docker run -it \
--name eclipse-rcp-neon \
-v ~/workspace/:/home/developer/workspace/ \
-e DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
eclipse-rcp:neon
docker start -ia eclipse-rcp-neon
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 command line) call:
docker exec -ti -u developer eclipse-rcp-neon bash
If the UI does not come up and the following message appears:
No protocol specified
Eclipse: Cannot open display:
Try to call the following before starting the container. X server connection uses a local socket /tmp/.X11-unix
and such direct access is disabled.
xhost +local: