-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
68 lines (53 loc) · 2.08 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
63
64
65
66
67
68
# For finding latest versions of the base image see
# https://github.com/SwissDataScienceCenter/renkulab-docker
ARG RVERSION=4.0.0
ARG RENKU_BASE_IMAGE=renku/renkulab-r:${RVERSION}-0.7.4
FROM ${RENKU_BASE_IMAGE}
# Uncomment and adapt if code is to be included in the image
# COPY src /code/src
# Install system requirements
USER root
RUN apt-get -y update && \
apt-get clean && \
apt-get install -y --no-install-recommends \
apt-utils \
libncurses5-dev \
libncursesw5-dev \
parallel \
libgit2-dev \
tk-dev \
openssh-client \
sshpass
# Install the Array Power Tools (APT) for microarray data processing
RUN wget https://downloads.thermofisher.com/APT/APT_2.11.3/apt_2.11.3_linux_64_bit_x86_binaries.zip -P /tmp/ && \
unzip /tmp/apt_2.11.3_linux_64_bit_x86_binaries.zip -d /opt && \
rm /tmp/apt_2.11.3_linux_64_bit_x86_binaries.zip && \
chmod 755 /opt/apt_2.11.3_linux_64_bit_x86_binaries/bin/*
# Add user to the sudoers
RUN adduser ${NB_USER} sudo && \
echo "${NB_USER} ALL=(ALL:ALL) ALL" >> /etc/sudoers
USER ${NB_USER}
# install the R dependencies
COPY install.R /tmp/
COPY renv.lock /home/rstudio/renv.lock
RUN R -f /tmp/install.R
## Clean up the /home/rstudio directory to avoid confusion in nested R projects
RUN rm /home/rstudio/.Rprofile; rm /home/rstudio/renv.lock
## Create a symbolic link to the renv directory at startup
USER root
RUN echo "ln -s /home/rstudio/renv /home/rstudio/fasted_bxd_study_microarray_data_preparation/renv" >> /post-init.sh
USER ${NB_USER}
# install the python dependencies
COPY requirements.txt /tmp/
RUN pip3 install -r /tmp/requirements.txt
# RENKU_VERSION determines the version of the renku CLI
# that will be used in this image. To find the latest version,
# visit https://pypi.org/project/renku/#history.
ARG RENKU_VERSION=0.14.1
########################################################
# Do not edit this section and do not add anything below
RUN if [ -n "$RENKU_VERSION" ] ; then \
pipx uninstall renku && \
pipx install --force renku==${RENKU_VERSION} \
; fi
########################################################