Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

genopred Dockerfile #241

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
all: hello.sif gwas.sif python3.sif r.sif
all: hello.sif gwas.sif python3.sif r.sif genopred.sif

%.sif: dockerfiles/%/Dockerfile
scripts/build_docker.sh $* && \
Expand Down
34 changes: 34 additions & 0 deletions docker/dockerfiles/genopred/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# gwas container
FROM 'ubuntu:20.04'

ENV TZ=Europe
ENV DEBIAN_FRONTEND noninteractive

# Essential tools
WORKDIR /tmp
COPY /scripts/apt_get_essential.sh .
RUN bash apt_get_essential.sh && \
rm apt_get_essential.sh

WORKDIR /tmp
COPY /scripts/install_mambaforge.sh .
RUN bash install_mambaforge.sh && \
rm install_mambaforge.sh

WORKDIR /tools/GenoPred
RUN git clone --depth 1 --branch v2.2.0 https://github.com/opain/GenoPred.git .

RUN conda env update -f /tools/GenoPred/pipeline/envs/pipeline.yaml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [hadolint] <DL3059> reported by reviewdog 🐶
Multiple consecutive RUN instructions. Consider consolidation.


# set env variables
RUN echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate genopred" >> ~/.bashrc

RUN /bin/bash -c ". activate genopred && cd /tools/GenoPred/pipeline && snakemake --restart-times 3 -j 1 --use-conda --conda-frontend mamba get_dependencies"

# cleanup for smaller image size
RUN mamba clean -a -y

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [hadolint] <DL3059> reported by reviewdog 🐶
Multiple consecutive RUN instructions. Consider consolidation.

RUN pip cache purge

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [hadolint] <DL3059> reported by reviewdog 🐶
Multiple consecutive RUN instructions. Consider consolidation.


WORKDIR /tools

Loading