Skip to content

Commit

Permalink
Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
AngryMaciek committed Mar 8, 2024
1 parent 470a5b0 commit fd12393
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ WORKDIR warlock
COPY . .

RUN apt-get update && apt-get upgrade -y \
&& apt-get install -y locales \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8

##### INSTALL MAMBA + BUILD CONDA ENV #####
##### INSTALL MAMBA + BUILD MAIN CONDA ENV #####
RUN \
conda install mamba -c conda-forge --yes \
&& mamba env create --file environment.yml \
Expand All @@ -50,3 +52,8 @@ RUN \
-o resources/demon_model/bin/demon \
-I /opt/conda/envs/warlock/include \
-lm

##### GENERATE INTERNAL ENVS & INSTALL DEPS #####
RUN \
chmod +x prepare-environments.sh \
&& bash -c 'CONDA_PREFIX="/opt/conda/envs/warlock" ./prepare-environments.sh'
2 changes: 1 addition & 1 deletion prepare-environments.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# exit at a first command that exits with a !=0 status
set -eo pipefail

snakemake \
$CONDA_PREFIX/bin/snakemake \
--snakefile="workflow/Snakefile" \
--configfile="tests/localtest/config-template.yml" \
--config workflow_repo_path="$PWD" workflow_analysis_outdir="$PWD/tests/localtest/output" \
Expand Down

0 comments on commit fd12393

Please sign in to comment.