Skip to content

Commit

Permalink
remove timing code
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneknapp committed Nov 15, 2023
1 parent 30fc0d7 commit 60f5257
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions deployments/biology/image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ RUN apt-get update -qq --yes && \
wget \
vim \
tini \
locales \
time > /dev/null
locales > /dev/null

RUN echo "${LC_ALL} UTF-8" > /etc/locale.gen && \
locale-gen
Expand Down Expand Up @@ -170,10 +169,11 @@ USER ${NB_USER}
COPY environment.yml /tmp/
COPY infra-requirements.txt /tmp/

RUN echo "/srv/conda/condabin/mamba env update -p ${CONDA_DIR} -f /tmp/environment.yml" | /usr/bin/time -f "User\t%U\nSys\t%S\nReal\t%E\nCPU\t%P" /usr/bin/bash
RUN echo "/srv/conda/condabin/mamba clean -afy" | /usr/bin/time -f "User\t%U\nSys\t%S\nReal\t%E\nCPU\t%P" /usr/bin/bash
RUN echo "jupyter contrib nbextensions install --sys-prefix --symlink" | /usr/bin/time -f "User\t%U\nSys\t%S\nReal\t%E\nCPU\t%P" /usr/bin/bash
RUN echo "jupyter nbextensions_configurator enable --sys-prefix" | /usr/bin/time -f "User\t%U\nSys\t%S\nReal\t%E\nCPU\t%P" /usr/bin/bash
RUN mamba env update -p ${CONDA_DIR} -f /tmp/environment.yml && \
mamba clean -afy

RUN jupyter contrib nbextensions install --sys-prefix --symlink && \
jupyter nbextensions_configurator enable --sys-prefix

# Set CRAN mirror to rspm before we install anything
COPY Rprofile.site /usr/lib/R/etc/Rprofile.site
Expand All @@ -183,24 +183,24 @@ COPY rsession.conf /etc/rstudio/rsession.conf
COPY file-locks /etc/rstudio/file-locks

# Install IRKernel
RUN echo "/usr/bin/r -e \"install.packages('IRkernel', version='1.2')\"" | /usr/bin/time -f "User\t%U\nSys\t%S\nReal\t%E\nCPU\t%P" /usr/bin/bash
RUN echo "/usr/bin/r -e \"IRkernel::installspec(prefix='${CONDA_DIR}')\"" | /usr/bin/time -f "User\t%U\nSys\t%S\nReal\t%E\nCPU\t%P" /usr/bin/bash
RUN r -e "install.packages('IRkernel', version='1.2')" && \
r -e "IRkernel::installspec(prefix='${CONDA_DIR}')"

# Install R packages, cleanup temp package download location
COPY install.R /tmp/install.R
RUN echo "/usr/bin/r /tmp/install.R" | /usr/bin/time -f "User\t%U\nSys\t%S\nReal\t%E\nCPU\t%P" /usr/bin/bash
RUN rm -rf /tmp/downloaded_packages/ /tmp/*.rds
RUN r /tmp/install.R && \
rm -rf /tmp/downloaded_packages/ /tmp/*.rds

# install bio1b packages
COPY bio1b-packages.bash /tmp/bio1b-packages.bash
RUN echo "bash /tmp/bio1b-packages.bash" | /usr/bin/time -f "User\t%U\nSys\t%S\nReal\t%E\nCPU\t%P" /usr/bin/bash
RUN bash /tmp/bio1b-packages.bash

# install ib134L packages
COPY ib134-packages.bash /tmp/ib134-packages.bash
RUN bash /tmp/ib134-packages.bash

# install ccb293 packages
COPY ccb293-packages.bash /tmp/ccb293-packages.bash
RUN echo "bash /tmp/ccb293-packages.bash" | /usr/bin/time -f "User\t%U\nSys\t%S\nReal\t%E\nCPU\t%P" /usr/bin/bash
RUN bash /tmp/ccb293-packages.bash

ENTRYPOINT ["tini", "--"]

0 comments on commit 60f5257

Please sign in to comment.