Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
gobikrishnan-s3141 authored Jan 7, 2025
1 parent 7d1c2a0 commit c20826e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Py.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
python3-dev \
python3-pip \
vim \
wget \
curl \
git \
libopenblas-dev \
gfortran \
pkg-config \
zlib1g-dev \
libhdf5-dev\
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# user (for better security, don't run as root)
RUN groupadd bioinfo && useradd -m -G bioinfo pymonk
Expand All @@ -43,7 +43,7 @@ WORKDIR ~/analysis && chown -R bioinfo:pymonk ~/analysis
# jupyter

# python
CMD ["python3"]
ENTRYPOINT ["python3"]
# (or, if you want to use jupyter notebook)
# jupyter notebook
#EXPOSE 8888
Expand Down
18 changes: 13 additions & 5 deletions R.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@
FROM ubuntu:latest
# FROM r-base:latest [debian based R-image by rocker community]

# avoids prompting during installation
ENV DEBIAN_FRONTEND=noninteractive

# install system dep
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential\
cmake \
clang \
llvm \
clang-tools \
lldb \
lld \
libomp-dev \
curl \
r-base \
r-base-dev \
libcurl4-openssl-dev \
Expand All @@ -22,11 +29,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libpng-dev \
libtiff5-dev \
libjpeg-dev \
&& rm -rf /var/lib/apt/lists/*
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

## set up env to use clang (experimental)
#ENV CC=clang
#ENV CXX=clang++
ENV CC=clang
ENV CXX=clang++

# install core & required R pkgs
RUN R -e "install.packages(c( \
Expand Down Expand Up @@ -57,7 +65,7 @@ RUN mkdir -p ~/analysis
WORKDIR ~/analysis && chown -R rmonk:bioinfo ~/analysis

# R
CMD ["R"]
ENTRYPOINT ["R"]

#(or)
# rserver
Expand Down
6 changes: 3 additions & 3 deletions bsh.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libopenblas-dev \
gfortran \
pkg-config \
libhdf5-dev\
&& rm -rf /var/lib/apt/lists/*
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# user
RUN groupadd bioinfo && useradd -m -G bioinfo bmonk
Expand All @@ -26,4 +26,4 @@ RUN mkdir -p ~/analysis
WORKDIR ~/analysis && chown -R bmonk:bioinfo ~/analysis

# launch a shell
CMD ["sh"]
ENTRYPOINT ["sh"]
2 changes: 1 addition & 1 deletion sh.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ RUN mkdir ~/scripts
WORKDIR ~/scripts

#shell
CMD ["sh"]
ENTRYPOINT ["sh"]

0 comments on commit c20826e

Please sign in to comment.