Commit b7aeac87 authored by Peter Parente's avatar Peter Parente

Install libxrender1 to appease matplotlib

Bite the bullet and preinstall it so that plotting libs that default
to using desktop rendering just work (matplotlib, ggplot, ...)
out of the box without having to get configuration right beforehand
(e.g., %matplotlib inline ahead of matplotlib import)

Only adds ~100k to the image size

(c) Copyright IBM Corp. 2015
parent 1011206f
...@@ -49,7 +49,6 @@ ENV SPARK_OPTS --driver-java-options=-Xms1024M --driver-java-options=-Xmx4096M - ...@@ -49,7 +49,6 @@ ENV SPARK_OPTS --driver-java-options=-Xms1024M --driver-java-options=-Xmx4096M -
# R pre-requisites # R pre-requisites
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
libxrender1 \
fonts-dejavu \ fonts-dejavu \
gfortran \ gfortran \
gcc && apt-get clean gcc && apt-get clean
......
...@@ -7,7 +7,6 @@ USER root ...@@ -7,7 +7,6 @@ USER root
# R pre-requisites # R pre-requisites
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
libxrender1 \
fonts-dejavu \ fonts-dejavu \
gfortran \ gfortran \
gcc && apt-get clean gcc && apt-get clean
......
...@@ -24,6 +24,7 @@ RUN apt-get update && apt-get install -yq --no-install-recommends \ ...@@ -24,6 +24,7 @@ RUN apt-get update && apt-get install -yq --no-install-recommends \
texlive-fonts-recommended \ texlive-fonts-recommended \
sudo \ sudo \
locales \ locales \
libxrender1 \
&& apt-get clean && apt-get clean
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \ RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen locale-gen
......
...@@ -8,7 +8,6 @@ USER root ...@@ -8,7 +8,6 @@ USER root
# R pre-requisites # R pre-requisites
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
libxrender1 \
fonts-dejavu \ fonts-dejavu \
gfortran \ gfortran \
gcc && apt-get clean gcc && apt-get clean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment