Skip to content

DrSnowbird/eclipse-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dr.SnowbirdDr.Snowbird
Dr.Snowbird
and
Dr.Snowbird
Aug 24, 2018
490d456 · Aug 24, 2018

History

38 Commits
Mar 31, 2018
Mar 31, 2018
Aug 24, 2018
Aug 22, 2018
Aug 24, 2018
Mar 31, 2018
Aug 24, 2018
Aug 13, 2018
Mar 31, 2018
Aug 13, 2018
Aug 13, 2018
Aug 13, 2018
Aug 13, 2018

Repository files navigation

eclipse-photon-docker

  • Eclipse-Photon + Java 8 JDK + Maven 3.5 + Python 3.5 + X11 (display GUI)

NOTE: This docker default is providing latest Eclipse Photon instead of Oxygen and you can change it to build other versions!!!

License Agreement

By using this image, you agree the Oracle Java JDK License. This image contains Oracle JDK 8. You must accept the Oracle Binary Code License Agreement for Java SE to use this image.

Components

  • Eclipse Phonto JEE version (you can change if by change Dockerfile)
  • java version "1.8.0_181" Java(TM) SE Runtime Environment (build 1.8.0_181-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
  • Apache Maven 3.5.3
  • Python 3.5.2
  • X11 display desktop
  • Other tools: git wget unzip vim python python-setuptools python-dev python-numpy

Run (recommended for easy-start)

Image is pulling from openkbs/eclipse-oxygen-docker

./run.sh

Build

You can build your own image locally. Note that the default build docker is "photon" version. If you want to build older Eclipse like "oxygen", you can following instruction in next section

./build.sh

Build (Older Eclipse, e.g. Oxygen)

  • Way-1: Modify the line in Dockefile as below if you use Docker-compose or Openshift CI/CD. That is, you se this way if you are not using command line ./build.sh to build container image.
## -- Eclipse version: oxygen, photon, etc.: -- ##
ENV ECLIPSE_VERSION=${ECLIPSE_VERSION:-oxygen}
  • Way-2: If you use command line "./build.sh", you can modify "./docker.env" file and then, run "./build.sh" to build image
## -- Eclipse version: oxygen, photon, etc.: -- ##
ECLIPSE_VERSION=photon

Configurations (Optional)

If you run "./run.sh" instead of "docker-compose up", you don't have to do anything as below.

  • The container uses a default "/workspace" folder.
  • The script "./run.sh" will re-use or create the local folder in your $HOME directory with the path below to map into the docker's internal "/workspace" folder.
$HOME/data_docker/eclipse-oxygen-docker/workspace

The above configuration will ensure all your projects created in the container's "/workspace" being "persistent" in your local folder, "$HOME/data_docker/eclipse-oxygen-docker/workspace", for your repetitive restart docker container.

Other docker-based IDE

Display X11 Issue

More resource in X11 display of Eclipse on your host machine's OS, please see

Other possible Issues

You might see the warning message or something similar in the launching xterm console like below, you can just ignore it. I googles around and some blogs just suggested to ignore since the IDE still functional ok.

** (eclipse:1): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-wrKH8o5rny: Connection refused

** (java:7): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-wrKH8o5rny: Connection refused