Skip to content

Commit 00079f4

Browse files
authored
Update Dockerfile
1 parent 679b716 commit 00079f4

File tree

1 file changed

+40
-25
lines changed

1 file changed

+40
-25
lines changed

Dockerfile

Lines changed: 40 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
FROM rocker/ml-gpu
2-
RUN userdel nobody
3-
RUN groupadd --gid 99 nobody
4-
RUN useradd nobody --uid 99 --home /home/nobody/ --create-home --groups nobody --gid nobody --shell /bin/bash
5-
RUN echo "nobody ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
1+
FROM rocker/ml
62

7-
ENV \
3+
USER root
84

9-
# Change the locale
10-
LANG=fr_FR.UTF-8
5+
# Install common softwares
6+
RUN apt-get -y update && \
7+
curl -s https://raw.githubusercontent.com/InseeFrLab/onyxia/main/resources/common-software-docker-images.sh | bash -s && \
8+
apt-get -y install tini && \
9+
rm -rf /var/lib/apt/lists/*
1110

11+
ENV \
12+
# Change the locale
13+
LANG=fr_FR.UTF-8 \
14+
# option for include s3 support in arrow package
15+
LIBARROW_MINIMAL=false
1216

1317
RUN \
1418
# Add Shiny support
15-
export ADD=shiny \
16-
&& bash /etc/cont-init.d/add \
17-
19+
bash /rocker_scripts/install_shiny_server.sh \
1820
# Install system librairies
1921
&& apt-get update \
2022
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apt-utils software-properties-common \
@@ -24,32 +26,35 @@ RUN \
2426
libudunits2-dev \
2527
libgdal-dev \
2628
curl \
29+
jq \
30+
bash-completion \
2731
gnupg2 \
2832
unixodbc \
2933
unixodbc-dev \
30-
odbc-postgresql \
31-
libsqliteodbc \
32-
alien \
34+
odbc-postgresql \
35+
libsqliteodbc \
36+
alien \
3337
libsodium-dev \
3438
libsecret-1-dev \
3539
libarchive-dev \
36-
libglpk-dev \
40+
libglpk-dev \
41+
# chromium \
42+
ghostscript \
43+
fontconfig \
44+
fonts-symbola \
45+
fonts-noto \
46+
fonts-freefont-ttf \
3747
&& apt-get clean \
3848
&& rm -rf /var/lib/apt/lists/* \
39-
&& wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add - \
40-
&& add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ \
41-
&& sudo apt update -y \
42-
&& apt install -y adoptopenjdk-8-hotspot \
43-
4449
# Handle localization
4550
&& cp /usr/share/zoneinfo/Europe/Paris /etc/localtime \
4651
&& sed -i -e 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen \
4752
&& dpkg-reconfigure --frontend=noninteractive locales \
4853
&& update-locale LANG=fr_FR.UTF-8
4954

55+
RUN kubectl completion bash >/etc/bash_completion.d/kubectl
5056

5157
RUN \
52-
5358
R -e "update.packages(ask = 'no')" \
5459
&& install2.r --error \
5560
RPostgreSQL \
@@ -58,8 +63,18 @@ RUN \
5863
keyring \
5964
aws.s3 \
6065
Rglpk \
61-
paws \
62-
SparkR
63-
64-
66+
paws \
67+
vaultr \
68+
arrow \
69+
&& installGithub.r \
70+
inseeFrLab/doremifasol \
71+
`# pkgs for PROPRE reproducible publications:` \
72+
rstudio/pagedown \
73+
spyrales/gouvdown \
74+
spyrales/gouvdown.fonts \
75+
&& R -e "devtools::install_github('apache/spark@v$SPARK_VERSION', subdir='R/pkg')" \
76+
&& find /usr/local/lib/R/site-library/gouvdown.fonts -name "*.ttf" -exec cp '{}' /usr/local/share/fonts \; \
77+
&& fc-cache \
78+
&& Rscript -e "gouvdown::check_fonts_in_r()"
79+
6580
VOLUME ["/home"]

0 commit comments

Comments
 (0)