-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
63 lines (45 loc) · 1.93 KB
/
Dockerfile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM openkbs/jdk11-mvn-py3-x11
MAINTAINER DrSnowbird "[email protected]"
## ---- USER_NAME is defined in parent image: openkbs/jdk-mvn-py3-x11 already ----
ENV USER_NAME=${USER_NAME:-developer}
ENV HOME=/home/${USER_NAME}
#########################################################
#### ---- Build ARG and RUN ENV ----
#########################################################
ARG PRODUCT=${PRODUCT:-knime}
ENV PRODUCT=knime
ENV WORKSPACE=${HOME}/workspace
ARG PRODUCT_VERSION=${PRODUCT_VERSION:-4.4.1}
ENV PRODUCT_VERSION=${PRODUCT_VERSION}
ARG PRODUCT_DIR=${PRODUCT_DIR:-knime_${PRODUCT_VERSION}}
ENV PRODUCT_DIR=${PRODUCT_DIR}
ARG PRODUCT_EXE=${PRODUCT_EXE:-knime}
ENV PRODUCT_EXE=${PRODUCT_EXE}
ARG INSTALL_BASE=${INSTALL_BASE:-/opt}
ENV INSTALL_BASE=${INSTALL_BASE}
####################################
#### ---- Install product: ---- ####
####################################
## --- Product Version specific ---
# ENV DOWNLOAD_URL=https://download.knime.org/analytics-platform/linux/knime_4.2.2.linux.gtk.x86_64.tar.gz
# ENV DOWNLOAD_URL=https://download.knime.org/analytics-platform/linux/knime-latest-linux.gtk.x86_64.tar.gz
ENV DOWNLOAD_URL=https://download.knime.org/analytics-platform/linux/${PRODUCT}_${PRODUCT_VERSION}.linux.gtk.x86_64.tar.gz
WORKDIR ${INSTALL_BASE}
#### ---- Install for application ----
RUN sudo wget -q -c ${DOWNLOAD_URL} && \
sudo tar xvf $(basename ${DOWNLOAD_URL}) && \
sudo rm $(basename ${DOWNLOAD_URL} )
#########################################
#### ---- Addition Libs/Plugins ---- ####
#########################################
## -- hub.docker build having issue; temporarily remove these two lines --
#RUN sudo apt-get update -y && \
# sudo apt-get install -y libwebkitgtk-3.0-0
VOLUME ${WORKSPACE}
#### ---- Environment for running application ----
USER ${USER_NAME}
ENV WORKSPACE=${HOME}/workspace
USER ${USER_NAME}
WORKDIR ${WORKSPACE}
CMD "${INSTALL_BASE}/${PRODUCT_DIR}/${PRODUCT_EXE}"
#CMD "firefox"