Skip to content

Commit

Permalink
Merge pull request #5 from ohsu-comp-bio/cm4ai
Browse files Browse the repository at this point in the history
CM4AI Image
  • Loading branch information
quinnwai authored Apr 16, 2024
2 parents 1d503d3 + 4c86242 commit e181597
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions cm4ai/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# use base image
FROM quay.io/ohsu-comp-bio/bridge2ai-jupyter:restricted-gpu-root

# return to non-root user
USER $NB_UID
WORKDIR /home/$NB_USER

# create environments
RUN git clone --recurse-submodules https://github.com/wadeschulz/b2ai-f2f.git
RUN cd b2ai-f2f && conda env create -f hpa_densenet.yml
RUN cd b2ai-f2f && conda env create -f perturbseq.yml
RUN cd b2ai-f2f && conda env create -f pipeline.yml

# additional cellmap pipeline setup from readme
SHELL ["conda", "run", "-n", "cm4ai-pipeline", "/bin/bash", "-c"]
RUN cd b2ai-f2f/cellmaps_pipeline \
&& make dist \
&& pip install dist/cellmaps_pipeline*whl

RUN conda init bash && exec bash
3 changes: 3 additions & 0 deletions cm4ai/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CM4AI

Docker file for CM4AI. Builds off `restricted-gpu-root` image, reverting use back to non-root privileges. Creates individual conda environments for hpa_densenet, perturbseq, and cellmaps pipeline.

0 comments on commit e181597

Please sign in to comment.