Skip to content

Commit 490d456

Browse files
Dr.SnowbirdDr.Snowbird
Dr.Snowbird
authored and
Dr.Snowbird
committed
update Dockerfile and .env
1 parent 694265b commit 490d456

File tree

3 files changed

+72
-28
lines changed

3 files changed

+72
-28
lines changed

.env

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,39 @@ GROUP_ID=1000
77
# - To ignore line, use "##" (double) in the beginning, e.g. "##VOLUMES" and "##PORTS"
88
# - To indicate that the variables for run.sh", use only one "#", e.g. "#VOLUMES" and "#PORTS"
99
#VOLUMES_LIST=".eclipse eclipse-workspace"
10-
1110
##PORTS_LIST="18080:8000 17200:7200"
1211
##PORTS_LIST="123:123/udp"
1312

14-
#### ---- ECLIPSE ---- ####
15-
16-
## -- Eclipse Download Mirror site: -- ##
17-
ECLIPSE_MIRROR_SITE_URL=http://mirror.math.princeton.edu
13+
## ------------------------------------------------------------------------------------
14+
## ---- To change to different Eclipse version: e.g., oxygen, photon, change here! ----
15+
## ------------------------------------------------------------------------------------
16+
## You need to manual input these 4 mandatory vars to hub.docker.io "automatic build to work.
1817

19-
## -- Eclipse version: oxygen, photon, etc.: -- ##
18+
## -- 1.) Eclipse version: oxygen, photon, etc.: -- ##
19+
#ECLIPSE_VERSION=oxygen
2020
ECLIPSE_VERSION=photon
2121

22-
## -- Eclipse TAR/GZ filename: -- ##
23-
#ECLIPSE_TAR=eclipse-jee-oxygen-R-linux-gtk-x86_64.tar.gz
24-
ECLIPSE_TAR=eclipse-jee-photon-R-linux-gtk-x86_64.tar.gz
22+
## -- 2.) Eclipse Type: -- ##
23+
ECLIPSE_TYPE=jee
24+
#ECLIPSE_TYPE=modeling
25+
26+
## -- 3.) Eclipse OS Build: -- ##
27+
#http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-win32-x86_64.zip
28+
#http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-win32.zip
29+
#http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-linux-gtk-x86_64.tar.gz
30+
#http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/photon/R/eclipse-model-photon-R-linux-gtk-x86_64.tar.gz
2531

26-
## -- Eclipse Download route: -- ##
27-
ECLIPSE_DOWNLOAD_ROUTE=pub/eclipse/technology/epp/downloads/release/photon/R
32+
#ECLIPSE_OS_BUILD=win32-x86_64
33+
ECLIPSE_OS_BUILD=linux-gtk-x86_64
34+
35+
## -- 4.) Eclipse Release: -- ##
36+
ECLIPSE_RELEASE=R
37+
#ECLIPSE_RELEASE=2
38+
39+
## -- 5.) Eclipse Download Mirror site: -- ##
40+
#http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/photon/R/eclipse-modeling-photon-R-linux-gtk-x86_64.tar.gz
41+
#http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/oxygen/R/eclipse-jee-oxygen-R-linux-gtk-x86_64.tar.gz
42+
#http://mirror.ibcp.fr/pub/eclipse//technology/epp/downloads/release/oxygen/2/eclipse-modeling-oxygen-2-linux-gtk-x86_64.tar.gz
43+
ECLIPSE_MIRROR_SITE_URL=http://mirror.math.princeton.edu
44+
#ECLIPSE_MIRROR_SITE_URL=http://mirror.ibcp.fr
2845

29-
## -- Eclipse Download full URL: -- ##
30-
ECLIPSE_DOWNLOAD_URL=http://mirror.math.princeton.edu/pub/eclipse//technology/epp/downloads/release/photon/R

Dockerfile

Lines changed: 41 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,63 @@ ENV ECLIPSE_WORKSPACE=${HOME}/eclipse-workspace
1313
## ---- To change to different Eclipse version: e.g., oxygen, change here! ----
1414
## ----------------------------------------------------------------------------
1515

16-
## -- Eclipse Download Mirror site: -- ##
17-
ARG ECLIPSE_MIRROR_SITE_URL=${ECLIPSE_MIRROR_SITE_URL:-http://mirror.math.princeton.edu}
16+
## -- 1.) Eclipse version: oxygen, photon, etc.: -- ##
17+
ARG ECLIPSE_VERSION=${ECLIPSE_VERSION:-photon}
18+
ENV ECLIPSE_VERSION=${ECLIPSE_VERSION}
19+
20+
## -- 2.) Eclipse Type: -- ##
21+
ARG ECLIPSE_TYPE=${ECLIPSE_TYPE:-jee}
22+
#ARG ECLIPSE_TYPE=${ECLIPSE_TYPE:-modeling}
1823

19-
## -- Eclipse version: oxygen, photon, etc.: -- ##
20-
ENV ECLIPSE_VERSION=${ECLIPSE_VERSION:-photon}
24+
## -- 4.) Eclipse Release: -- ##
25+
ARG ECLIPSE_RELEASE=${ECLIPSE_RELEASE:-R}
26+
#ARG ECLIPSE_RELEASE=${ECLIPSE_RELEASE:-2}
2127

28+
## -- 5.) Eclipse Download Mirror site: -- ##
29+
#http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-win32-x86_64.zip
30+
#http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-win32.zip
31+
#http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-linux-gtk-x86_64.tar.gz
32+
#ARG ECLIPSE_OS_BUILD=${ECLIPSE_OS_BUILD:-win32-x86_64}
33+
ARG ECLIPSE_OS_BUILD=${ECLIPSE_OS_BUILD:-linux-gtk-x86_64}
34+
35+
## -- 4.) Eclipse Download Mirror site: -- ##
36+
#http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-linux-gtk-x86_64.tar.gz
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+
ARG ECLIPSE_MIRROR_SITE_URL=${ECLIPSE_MIRROR_SITE_URL:-http://mirror.math.princeton.edu}
39+
40+
## ----------------------------------------------------------------------------------- ##
2241
## ----------------------------------------------------------------------------------- ##
2342
## ----------- Don't change below unless Eclipse download system change -------------- ##
2443
## ----------------------------------------------------------------------------------- ##
44+
## ----------------------------------------------------------------------------------- ##
2545
## -- Eclipse TAR/GZ filename: -- ##
26-
#ARG ECLIPSE_TAR=${ECLIPSE_TAR:-eclipse-jee-oxygen-R-linux-gtk-x86_64.tar.gz}
27-
ARG ECLIPSE_TAR=${ECLIPSE_TAR:-eclipse-jee-${ECLIPSE_VERSION}-R-linux-gtk-x86_64.tar.gz}
46+
#ARG ECLIPSE_TAR=${ECLIPSE_TAR:-eclipse-jee-photon-R-linux-gtk-x86_64.tar.gz}
47+
ARG ECLIPSE_TAR=${ECLIPSE_TAR:-eclipse-${ECLIPSE_TYPE}-${ECLIPSE_VERSION}-${ECLIPSE_RELEASE}-${ECLIPSE_OS_BUILD}.tar.gz}
2848

2949
## -- Eclipse Download route: -- ##
30-
ARG ECLIPSE_DOWNLOAD_ROUTE=${ECLIPSE_DOWNLOAD_ROUTE:-pub/eclipse/technology/epp/downloads/release/${ECLIPSE_VERSION}/R}
50+
ARG ECLIPSE_DOWNLOAD_ROUTE=${ECLIPSE_DOWNLOAD_ROUTE:-pub/eclipse/technology/epp/downloads/release/${ECLIPSE_VERSION}/${ECLIPSE_RELEASE}}
3151

3252
## -- Eclipse Download full URL: -- ##
33-
## e.g.: http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/oxygen/R/
3453
## e.g.: http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/photon/R/
35-
ARG ECLIPSE_DOWNLOAD_URL=${ECLIPSE_DOWNLOAD_URL:-"${ECLIPSE_MIRROR_SITE_URL}/${ECLIPSE_DOWNLOAD_ROUTE}"}
54+
## e.g.: http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/photon/R/
55+
ARG ECLIPSE_DOWNLOAD_URL=${ECLIPSE_DOWNLOAD_URL:-${ECLIPSE_MIRROR_SITE_URL}/${ECLIPSE_DOWNLOAD_ROUTE}}
3656

3757
## http://ftp.osuosl.org/pub/eclipse/technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-linux-gtk-x86_64.tar.gz
38-
## http://mirror.math.princeton.edu/pub/eclipse//technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-linux-gtk-x86_64.tar.gz
39-
## http://mirror.math.princeton.edu/pub/eclipse//technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-linux-gtk-x86_64.tar.gz
40-
58+
## http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-linux-gtk-x86_64.tar.gz
59+
## http://mirror.math.princeton.edu/pub/eclipse/technology/epp/downloads/release/photon/R/eclipse-modeling-photon-R-linux-gtk-x86_64.tar.gz
4160
WORKDIR /opt
42-
#RUN sudo wget -c http://mirror.math.princeton.edu/pub/eclipse//technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-linux-gtk-x86_64.tar.gz && \
4361
RUN sudo wget -c ${ECLIPSE_DOWNLOAD_URL}/${ECLIPSE_TAR} && \
4462
sudo tar xvf ${ECLIPSE_TAR} && \
4563
sudo rm ${ECLIPSE_TAR}
46-
64+
65+
#################################
66+
#### Install Eclipse Plugins ####
67+
#################################
68+
# ... add Eclipse plugin - installation here (see example in https://github.com/DrSnowbird/papyrus-sysml-docker)
69+
70+
##################################
71+
#### Set up user environments ####
72+
##################################
4773
VOLUME ${ECLIPSE_WORKSPACE}
4874
VOLUME ${HOME}/.eclipse
4975

@@ -53,3 +79,4 @@ RUN mkdir -p ${HOME}/.eclipse ${ECLIPSE_WORKSPACE} &&\
5379
USER ${USER_NAME}
5480
WORKDIR ${ECLIPSE_WORKSPACE}
5581
CMD ["/opt/eclipse/eclipse"]
82+

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33

44
* Eclipse-Photon + Java 8 JDK + Maven 3.5 + Python 3.5 + X11 (display GUI)
55

6-
# NOTE: This docker now is providing latest Eclipse Photon instead of Oxygen!!!
6+
# NOTE: This docker default is providing latest Eclipse Photon instead of Oxygen and you can change it to build other versions!!!
77

88
# License Agreement
99
By using this image, you agree the [Oracle Java JDK License](http://www.oracle.com/technetwork/java/javase/terms/license/index.html).
1010
This image contains [Oracle JDK 8](http://www.oracle.com/technetwork/java/javase/downloads/index.html). You must accept the [Oracle Binary Code License Agreement for Java SE](http://www.oracle.com/technetwork/java/javase/terms/license/index.html) to use this image.
1111

1212
# Components
13+
* Eclipse Phonto JEE version (you can change if by change Dockerfile)
1314
* java version "1.8.0_181"
1415
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
1516
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
@@ -56,6 +57,7 @@ The above configuration will ensure all your projects created in the container's
5657

5758
# Other docker-based IDE
5859
* [openkbs/eclipse-oxygen-docker](https://hub.docker.com/r/openkbs/eclipse-oxygen-docker/)
60+
* [openkbs/papyrus-sysml-docker](https://hub.docker.com/r/openkbs/papyrus-sysml-docker/)
5961
* [openkbs/netbeans](https://hub.docker.com/r/openkbs/netbeans/)
6062
* [openkbs/scala-ide-docker](https://hub.docker.com/r/openkbs/scala-ide-docker/)
6163
* [openkbs/pycharm-docker](https://hub.docker.com/r/openkbs/pycharm-docker/)

0 commit comments

Comments
 (0)