wcomnisky / docker-eclipse

Eclipse Docker container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running Eclipse Neon RCP inside a Docker container

Preliminary note

This image is based on these blog entries

Thanks to the authors :)

What's installed?

  • Eclipse Neon for RCP and RAP developers

Eclipse Luna available in its branch.

Plugins

  • 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.

Tools (command line, use e.g. in Wicked Shell)

  • 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.

Build the image from Dockerfile

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

Subsequent starts

docker start -ia eclipse-rcp-neon

The container is stopped when Eclipse is shut down.

Get a shell within a running container

To get a shell within the running container (e.g. for running gradle or mvnfrom the command line) call:

docker exec -ti -u developer eclipse-rcp-neon bash

Troubleshooting

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:

About

Eclipse Docker container


Languages

Language:Shell 98.4%Language:D 1.6%