-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
33 lines (26 loc) · 1.16 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
FROM ubuntu:18.04
ENV DOWNLOAD_URL https://download.knime.org/analytics-platform/linux/knime-latest40-linux.gtk.x86_64.tar.gz
ENV INSTALLATION_DIR /usr/local
ENV KNIME_DIR $INSTALLATION_DIR/knime
ENV HOME_DIR /home/knime
# Install everything
# HACK: Install tzdata at the beginning to not trigger an interactive dialog later on
RUN apt-get update \
&& apt-get install -y software-properties-common curl \
&& apt-get install -y tzdata \
&& apt-get install -y libgtk2.0-0 libxtst6 \
&& apt-get install -y libwebkitgtk-3.0-0 \
&& apt-get install -y python python-dev python-pip \
&& apt-get install -y curl \
&& apt-get install -y r-base r-recommended
# Download KNIME
RUN curl -L "$DOWNLOAD_URL" | tar vxz -C $INSTALLATION_DIR \
&& mv $INSTALLATION_DIR/knime_* $INSTALLATION_DIR/knime
# Clean up
RUN apt-get --purge autoremove -y software-properties-common curl \
&& apt-get clean
# Install pandas and protobuf so KNIME can communicate with Python
RUN pip install pandas && pip install protobuf
# Install Rserver so KNIME can communicate with R
RUN R -e 'install.packages(c("Rserve"), repos="http://cran.rstudio.com/")'
ENTRYPOINT $KNIME_DIR/knime