Skip to content

Commit f9f8f8a

Browse files
DrSnowbirdDrSnowbird
DrSnowbird
authored and
DrSnowbird
committed
updated Eclipse version 2021-03
1 parent 6500a89 commit f9f8f8a

File tree

3 files changed

+31
-39
lines changed

3 files changed

+31
-39
lines changed

.env

+8-11
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,26 @@ GROUP_ID=1000
1818
## -- 1.) Eclipse version: oxygen, photon, etc.: -- ##
1919
#ECLIPSE_VERSION=oxygen
2020
#ECLIPSE_VERSION=photon
21-
ECLIPSE_VERSION=2019-06
21+
ECLIPSE_VERSION=2021-03
2222

2323
## -- 2.) Eclipse Type: -- ##
2424
ECLIPSE_TYPE=jee
2525
#ECLIPSE_TYPE=modeling
2626

2727
## -- 3.) Eclipse OS Build: -- ##
28-
#http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-win32-x86_64.zip
29-
#http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-win32.zip
3028
#http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-linux-gtk-x86_64.tar.gz
3129
#http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/photon/R/eclipse-model-photon-R-linux-gtk-x86_64.tar.gz
32-
33-
#ECLIPSE_OS_BUILD=win32-x86_64
30+
#ECLIPSE_OS_BUILD
3431
ECLIPSE_OS_BUILD=linux-gtk-x86_64
3532

3633
## -- 4.) Eclipse Release: -- ##
3734
ECLIPSE_RELEASE=R
38-
#ECLIPSE_RELEASE=2
3935

4036
## -- 5.) Eclipse Download Mirror site: -- ##
41-
#http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/photon/R/eclipse-modeling-photon-R-linux-gtk-x86_64.tar.gz
42-
#http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/oxygen/R/eclipse-jee-oxygen-R-linux-gtk-x86_64.tar.gz
43-
#http://mirror.ibcp.fr/pub/eclipse//technology/epp/downloads/release/oxygen/2/eclipse-modeling-oxygen-2-linux-gtk-x86_64.tar.gz
44-
ECLIPSE_MIRROR_SITE_URL=http://mirror.math.princeton.edu
45-
#ECLIPSE_MIRROR_SITE_URL=http://mirror.ibcp.fr
37+
## http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/photon/R/eclipse-modeling-photon-R-linux-gtk-x86_64.tar.gz
38+
## http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/oxygen/R/eclipse-jee-oxygen-R-linux-gtk-x86_64.tar.gz
39+
## http://mirror.ibcp.fr/pub/eclipse//technology/epp/downloads/release/oxygen/2/eclipse-modeling-oxygen-2-linux-gtk-x86_64.tar.gz
40+
## https://mirror.umd.edu/eclipse/technology/epp/downloads/release/2021-03/R/eclipse-modeling-2021-03-R-linux-gtk-x86_64.tar.gz
41+
## ECLIPSE_MIRROR_SITE_URL=https://mirror.math.princeton.edu
42+
ECLIPSE_MIRROR_SITE_URL=https://mirror.umd.edu/
4643

Dockerfile

+5-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ARG ECLIPSE_OS_BUILD=${ECLIPSE_OS_BUILD:-linux-gtk-x86_64}
3434
#http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/photon/R/eclipse-modeling-photon-R-linux-gtk-x86_64.tar.gz
3535
## https://mirror.umd.edu/eclipse/technology/epp/downloads/release/2021-03/R/eclipse-modeling-2021-03-R-linux-gtk-x86_64.tar.gz
3636

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

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

4849
## -- Eclipse Download route: -- ##
@@ -67,6 +68,7 @@ RUN sudo wget -q -c --no-check-certificate ${ECLIPSE_DOWNLOAD_URL}/${ECLIPSE_TAR
6768
#### Install Eclipse Plugins ####
6869
#################################
6970
# ... add Eclipse plugin - installation here (see example in https://github.com/DrSnowbird/papyrus-sysml-docker)
71+
7072
# (Ubutnu 20.0.04 having issue with this)
7173
#RUN sudo apt-get update -y && sudo apt-get install -y libwebkitgtk-3.0-0
7274

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

82-
USER ${USER_NAME}
84+
USER ${USER}
8385
WORKDIR ${ECLIPSE_WORKSPACE}
86+
8487
CMD ["/opt/eclipse/eclipse"]
8588

README.md

+18-26
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
1-
# 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)
1+
# Eclipse '2021-03' IDE Docker Container + OpenJDK Java 11 + Maven 3 + Python 3 + pip 21 + node 16 + npm 7 + Gradle 6 + X11 (Desktop)
22
[![](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")
33

4-
# 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 !!!
4+
* 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.
5+
6+
* 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 !!!
57

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

1114
# Run (recommended for easy-start)
12-
Image is pulling from openkbs/eclipse-photon-docker
15+
Image is pulling from openkbs/eclipse-docker
1316
```
1417
./run.sh
1518
```
1619

1720
# Build
1821
You can build your own image locally.
19-
Note that the default build docker is "photon" version.
20-
If you want to build older Eclipse like "oxygen", you can following instruction in next section
22+
Note that the default build docker is "latest" version.
23+
If you want to build older Eclipse like "photon", "oxygen", you can following instruction in next section
2124
```
2225
./build.sh
2326
```
2427

2528
# Build (Older Eclipse, e.g. Photon, Oxygen)
2629
Two ways (at least) to build:
2730
### Way-1 (**Recommended**):
28-
If you use command line "'**./build.sh**'", you can modify "'**./.env**' (old filename ./docker.env)" file and then, run "./build.sh" to build image
31+
If you use command line "'**./build.sh**'", you can modify "'**./.env**' (old filename ./.env)" file and then, run "./build.sh" to build image
2932
```
3033
## -- Eclipse versions: photon, oxygen, etc.: -- ##
3134
ECLIPSE_VERSION=photon
@@ -34,9 +37,9 @@ ECLIPSE_VERSION=oxygen
3437
```
3538
Then,
3639
```
37-
./build/sh
40+
./build.sh
3841
```
39-
### Way-2:
42+
### Way-2: (not recommended - to avoid breaking Dockerfile!)
4043
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.
4144
```
4245
## -- Eclipse versions: photon, oxygen, etc.: -- ##
@@ -48,13 +51,13 @@ Then,
4851
```
4952
docker-compose up -d
5053
```
51-
# Configurations (Optional)
54+
# Configurations (Optional - mostly you don't have to do this!)
5255
If you run "./run.sh" instead of "docker-compose up", you don't have to do anything as below.
5356

5457
* The container uses a default "/workspace" folder.
5558
* 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.
5659
```
57-
$HOME/data_docker/eclipse-photon-docker/workspace
60+
$HOME/data_docker/eclipse-docker/workspace
5861
```
5962
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.
6063

@@ -73,12 +76,9 @@ This project provides simple host volumes. For using more advanced storage solut
7376
* [Dockerfiles (CentOS, Fedora, Red Hat) for GlusterFS ](https://github.com/gluster/gluster-containers)
7477
* [GlusterFS Quickstart](https://docs.gluster.org/en/latest/Quick-Start-Guide/Quickstart/)
7578
* [Two Days of Pain or How I Deployed GlusterFS Cluster to Kubernetes](https://blog.lwolf.org/post/how-i-deployed-glusterfs-cluster-to-kubernetes/)
76-
77-
# See Also - docker-based IDE
78-
* [openkbs/atom-docker](https://hub.docker.com/r/openkbs/atom-docker/)
79-
* [openkbs/eclipse-oxygen-docker](https://hub.docker.com/r/openkbs/eclipse-oxygen-docker/)
80-
* [openkbs/eclipse-photon-docker](https://hub.docker.com/r/openkbs/eclipse-photon-docker/)
81-
* [openkbs/eclipse-photon-vnc-docker](https://hub.docker.com/r/openkbs/eclipse-photon-vnc-docker/)
79+
# See Also - Other docker-based IDE
80+
er/)
81+
* [openkbs/eclipse-docker-vnc](https://hub.docker.com/r/openkbs/eclipse-docker-vnc/)
8282
* [openkbs/intellj-docker](https://hub.docker.com/r/openkbs/intellij-docker/)
8383
* [openkbs/intellj-vnc-docker](https://hub.docker.com/r/openkbs/intellij-vnc-docker/)
8484
* [openkbs/knime-vnc-docker](https://hub.docker.com/r/openkbs/knime-vnc-docker/)
@@ -106,14 +106,6 @@ More resource in X11 display of Eclipse on your host machine's OS, please see
106106
* [X11 Display problem](https://askubuntu.com/questions/871092/failed-to-connect-to-mir-failed-to-connect-to-server-socket-no-such-file-or-di)
107107
* [X11 Display with Xhost](http://www.ethicalhackx.com/fix-gtk-warning-cannot-open-display/)
108108

109-
# Other possible Issues
110-
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.
111-
```
112-
** (eclipse:1): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-wrKH8o5rny: Connection refused
113-
114-
** (java:7): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-wrKH8o5rny: Connection refused
115-
116-
```
117109
# Releases information
118110
* See [openkbs/jdk-mvn-py3](https://github.com/DrSnowbird/jdk-mvn-py3/blob/master/README.md#Releases-information)
119111

0 commit comments

Comments
 (0)