-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·35 lines (27 loc) · 1.49 KB
/
Dockerfile
File metadata and controls
executable file
·35 lines (27 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM openkbs/jdk11-mvn-py3-x11
MAINTAINER DrSnowbird "DrSnowbird@openkbs.org"
ARG BUILD_YEAR_MONTH=2020-12
ARG BUILD_VERSION=5.0.0
## ----------------------------------------------------------------------------------- ##
## ----------------------------------------------------------------------------------- ##
## ----------- Don't change below unless Eclipse download system change -------------- ##
## ----------------------------------------------------------------------------------- ##
## ----------------------------------------------------------------------------------- ##
#ARG ECLIPSE_DOWNLOAD_URL=https://mirrors.xmission.com/eclipse/modeling/mdt/papyrus/rcp/2020-12/5.0.0/papyrus-2020-12-5.0.0-linux64.tar.gz
ARG ECLIPSE_DOWNLOAD_URL=https://mirrors.xmission.com/eclipse/modeling/mdt/papyrus/rcp/${BUILD_YEAR_MONTH}/${BUILD_VERSION}/papyrus-${BUILD_YEAR_MONTH}-${BUILD_VERSION}-linux64.tar.gz
WORKDIR ${HOME}
RUN sudo wget -c ${ECLIPSE_DOWNLOAD_URL} && \
sudo tar xvf $(basename ${ECLIPSE_DOWNLOAD_URL}) && \
sudo rm $(basename ${ECLIPSE_DOWNLOAD_URL})
###########################################
#### ---- entrypoint script setup ---- ####
###########################################
COPY docker-entrypoint.sh /docker-entrypoint.sh
#RUN chmod +x /docker-entrypoint.sh
##################################
#### Set up user environments ####
##################################
USER ${USER}
WORKDIR ${HOME}
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/bin/bash", "-c", "${HOME}/Papyrus/papyrus"]