Skip to content

Commit

Permalink
updated Eclipse version 2021-03
Browse files Browse the repository at this point in the history
  • Loading branch information
DrSnowbird authored and DrSnowbird committed Jul 28, 2021
1 parent 6500a89 commit f9f8f8a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 39 deletions.
19 changes: 8 additions & 11 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,26 @@ GROUP_ID=1000
## -- 1.) Eclipse version: oxygen, photon, etc.: -- ##
#ECLIPSE_VERSION=oxygen
#ECLIPSE_VERSION=photon
ECLIPSE_VERSION=2019-06
ECLIPSE_VERSION=2021-03

## -- 2.) Eclipse Type: -- ##
ECLIPSE_TYPE=jee
#ECLIPSE_TYPE=modeling

## -- 3.) Eclipse OS Build: -- ##
#http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-win32-x86_64.zip
#http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-win32.zip
#http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-linux-gtk-x86_64.tar.gz
#http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/photon/R/eclipse-model-photon-R-linux-gtk-x86_64.tar.gz

#ECLIPSE_OS_BUILD=win32-x86_64
#ECLIPSE_OS_BUILD
ECLIPSE_OS_BUILD=linux-gtk-x86_64

## -- 4.) Eclipse Release: -- ##
ECLIPSE_RELEASE=R
#ECLIPSE_RELEASE=2

## -- 5.) Eclipse Download Mirror site: -- ##
#http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/photon/R/eclipse-modeling-photon-R-linux-gtk-x86_64.tar.gz
#http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/oxygen/R/eclipse-jee-oxygen-R-linux-gtk-x86_64.tar.gz
#http://mirror.ibcp.fr/pub/eclipse//technology/epp/downloads/release/oxygen/2/eclipse-modeling-oxygen-2-linux-gtk-x86_64.tar.gz
ECLIPSE_MIRROR_SITE_URL=http://mirror.math.princeton.edu
#ECLIPSE_MIRROR_SITE_URL=http://mirror.ibcp.fr
## http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/photon/R/eclipse-modeling-photon-R-linux-gtk-x86_64.tar.gz
## http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/oxygen/R/eclipse-jee-oxygen-R-linux-gtk-x86_64.tar.gz
## http://mirror.ibcp.fr/pub/eclipse//technology/epp/downloads/release/oxygen/2/eclipse-modeling-oxygen-2-linux-gtk-x86_64.tar.gz
## https://mirror.umd.edu/eclipse/technology/epp/downloads/release/2021-03/R/eclipse-modeling-2021-03-R-linux-gtk-x86_64.tar.gz
## ECLIPSE_MIRROR_SITE_URL=https://mirror.math.princeton.edu
ECLIPSE_MIRROR_SITE_URL=https://mirror.umd.edu/

7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ARG ECLIPSE_OS_BUILD=${ECLIPSE_OS_BUILD:-linux-gtk-x86_64}
#http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/photon/R/eclipse-modeling-photon-R-linux-gtk-x86_64.tar.gz
## https://mirror.umd.edu/eclipse/technology/epp/downloads/release/2021-03/R/eclipse-modeling-2021-03-R-linux-gtk-x86_64.tar.gz

#ARG ECLIPSE_MIRROR_SITE_URL=${ECLIPSE_MIRROR_SITE_URL:-http://mirror.math.princeton.edu/pub/}
#ARG ECLIPSE_MIRROR_SITE_URL=${ECLIPSE_MIRROR_SITE_URL:-https://mirror.math.princeton.edu/pub/}
ARG ECLIPSE_MIRROR_SITE_URL=${ECLIPSE_MIRROR_SITE_URL:-https://mirror.umd.edu/}

## ----------------------------------------------------------------------------------- ##
Expand All @@ -43,6 +43,7 @@ ARG ECLIPSE_MIRROR_SITE_URL=${ECLIPSE_MIRROR_SITE_URL:-https://mirror.umd.edu/}
## ----------------------------------------------------------------------------------- ##
## ----------------------------------------------------------------------------------- ##
## -- Eclipse TAR/GZ filename: -- ##
#ARG ECLIPSE_TAR=${ECLIPSE_TAR:-eclipse-jee-photon-R-linux-gtk-x86_64.tar.gz}
ARG ECLIPSE_TAR=${ECLIPSE_TAR:-eclipse-${ECLIPSE_TYPE}-${ECLIPSE_VERSION}-${ECLIPSE_RELEASE}-${ECLIPSE_OS_BUILD}.tar.gz}

## -- Eclipse Download route: -- ##
Expand All @@ -67,6 +68,7 @@ RUN sudo wget -q -c --no-check-certificate ${ECLIPSE_DOWNLOAD_URL}/${ECLIPSE_TAR
#### Install Eclipse Plugins ####
#################################
# ... add Eclipse plugin - installation here (see example in https://github.com/DrSnowbird/papyrus-sysml-docker)

# (Ubutnu 20.0.04 having issue with this)
#RUN sudo apt-get update -y && sudo apt-get install -y libwebkitgtk-3.0-0

Expand All @@ -79,7 +81,8 @@ VOLUME ${HOME}/.eclipse
RUN mkdir -p ${HOME}/.eclipse ${ECLIPSE_WORKSPACE} &&\
sudo chown -R ${USER_NAME}:${USER_NAME} ${ECLIPSE_WORKSPACE} ${HOME}/.eclipse

USER ${USER_NAME}
USER ${USER}
WORKDIR ${ECLIPSE_WORKSPACE}

CMD ["/opt/eclipse/eclipse"]

44 changes: 18 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
# Eclipse '2020-06' IDE Docker Container + OpenJDK Java 8 (1.8.0_252) JDK + Maven 3.6 + Python 3.6/2.7 + pip 19 + node 12 + npm 6 + Gradle 5.6 + X11 (Desktop)
# Eclipse '2021-03' IDE Docker Container + OpenJDK Java 11 + Maven 3 + Python 3 + pip 21 + node 16 + npm 7 + Gradle 6 + X11 (Desktop)
[![](https://images.microbadger.com/badges/image/openkbs/eclipse-photon-docker.svg)](https://microbadger.com/images/openkbs/eclipse-photon-docker "Get your own image badge on microbadger.com") [![](https://images.microbadger.com/badges/version/openkbs/eclipse-photon-docker.svg)](https://microbadger.com/images/openkbs/eclipse-photon-docker "Get your own version badge on microbadger.com")

# NOTE: This docker default is providing latest Eclipse '2020-06' (Latest) instead of Photon, Oxygen and you can change it to build other versions using '.env' file !!!
* For any plugin of Eclipse, e.g., BPMN2, etc., you will use Eclipse Marketplace to install once you are inside the Containr's Eclipse -- we are retiring all other specialty versions of Eclipse, e.g., eclipse-uml-docker, etc.

* NOTE: This docker default is providing latest Eclipse '2021-03' (Latest) instead of Photon, Oxygen and you can change it to build other versions using '.env' file !!!

# Components
* Eclipse '2020-06' JEE version (you can change if by change Dockerfile)
* Eclipse '2021-03' the latest Modeling or JEE version (you can change if by change .env and then use './build.sh' to build locally)
* Base Components (e.g., Maven, Java, NodeJS, etc.)
* See [openkbs/jdk-mvn-py3](https://github.com/DrSnowbird/jdk-mvn-py3/blob/master/README.md#Components)
* See [openkbs/jdk-mvn-py3 - Components](https://github.com/DrSnowbird/jdk-mvn-py3/blob/master/README.md#Components)
* See [openkbs/jdk-mvn-py3 - Releases Information](https://github.com/DrSnowbird/jdk-mvn-py3/blob/master/README.md#Releases-information)

# Run (recommended for easy-start)
Image is pulling from openkbs/eclipse-photon-docker
Image is pulling from openkbs/eclipse-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
Note that the default build docker is "latest" version.
If you want to build older Eclipse like "photon", "oxygen", you can following instruction in next section
```
./build.sh
```

# Build (Older Eclipse, e.g. Photon, Oxygen)
Two ways (at least) to build:
### Way-1 (**Recommended**):
If you use command line "'**./build.sh**'", you can modify "'**./.env**' (old filename ./docker.env)" file and then, run "./build.sh" to build image
If you use command line "'**./build.sh**'", you can modify "'**./.env**' (old filename ./.env)" file and then, run "./build.sh" to build image
```
## -- Eclipse versions: photon, oxygen, etc.: -- ##
ECLIPSE_VERSION=photon
Expand All @@ -34,9 +37,9 @@ ECLIPSE_VERSION=oxygen
```
Then,
```
./build/sh
./build.sh
```
### Way-2:
### Way-2: (not recommended - to avoid breaking Dockerfile!)
Modify the line in '**./Dockefile**' as below if you use '**docker-compose**' or Openshift CI/CD. That is, you are not using command line '**./build.sh**' to build container image.
```
## -- Eclipse versions: photon, oxygen, etc.: -- ##
Expand All @@ -48,13 +51,13 @@ Then,
```
docker-compose up -d
```
# Configurations (Optional)
# Configurations (Optional - mostly you don't have to do this!)
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-photon-docker/workspace
$HOME/data_docker/eclipse-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-photon-docker/workspace", for your repetitive restart docker container.

Expand All @@ -73,12 +76,9 @@ This project provides simple host volumes. For using more advanced storage solut
* [Dockerfiles (CentOS, Fedora, Red Hat) for GlusterFS ](https://github.com/gluster/gluster-containers)
* [GlusterFS Quickstart](https://docs.gluster.org/en/latest/Quick-Start-Guide/Quickstart/)
* [Two Days of Pain or How I Deployed GlusterFS Cluster to Kubernetes](https://blog.lwolf.org/post/how-i-deployed-glusterfs-cluster-to-kubernetes/)

# See Also - docker-based IDE
* [openkbs/atom-docker](https://hub.docker.com/r/openkbs/atom-docker/)
* [openkbs/eclipse-oxygen-docker](https://hub.docker.com/r/openkbs/eclipse-oxygen-docker/)
* [openkbs/eclipse-photon-docker](https://hub.docker.com/r/openkbs/eclipse-photon-docker/)
* [openkbs/eclipse-photon-vnc-docker](https://hub.docker.com/r/openkbs/eclipse-photon-vnc-docker/)
# See Also - Other docker-based IDE
er/)
* [openkbs/eclipse-docker-vnc](https://hub.docker.com/r/openkbs/eclipse-docker-vnc/)
* [openkbs/intellj-docker](https://hub.docker.com/r/openkbs/intellij-docker/)
* [openkbs/intellj-vnc-docker](https://hub.docker.com/r/openkbs/intellij-vnc-docker/)
* [openkbs/knime-vnc-docker](https://hub.docker.com/r/openkbs/knime-vnc-docker/)
Expand Down Expand Up @@ -106,14 +106,6 @@ More resource in X11 display of Eclipse on your host machine's OS, please see
* [X11 Display problem](https://askubuntu.com/questions/871092/failed-to-connect-to-mir-failed-to-connect-to-server-socket-no-such-file-or-di)
* [X11 Display with Xhost](http://www.ethicalhackx.com/fix-gtk-warning-cannot-open-display/)

# 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 googled around and some blogs just suggested to ignore since the IDE is 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
```
# Releases information
* See [openkbs/jdk-mvn-py3](https://github.com/DrSnowbird/jdk-mvn-py3/blob/master/README.md#Releases-information)

0 comments on commit f9f8f8a

Please sign in to comment.