From 09f8bae3df40f944e2495bf3fe0ae0bde5341204 Mon Sep 17 00:00:00 2001 From: Kelly Sovacool Date: Thu, 2 May 2024 15:47:59 -0400 Subject: [PATCH] ci: attempt to install DCC 0.5.0 & python 3.5 via docker --- docker/dcc/Dockerfile | 10 +++++----- docker/dcc/environment.yml | 6 ++++++ 2 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 docker/dcc/environment.yml diff --git a/docker/dcc/Dockerfile b/docker/dcc/Dockerfile index 73a7528..461441c 100644 --- a/docker/dcc/Dockerfile +++ b/docker/dcc/Dockerfile @@ -9,11 +9,11 @@ ARG REPONAME="000000" ENV REPONAME=${REPONAME} # install DCC -ENV DCC_VERSION=0.5.0 -RUN wget https://github.com/dieterich-lab/DCC/archive/refs/tags/v${DCC_VERSION}.tar.gz -O dcc.tar.gz && \ - tar -xzvf dcc.tar.gz && \ - cd DCC-${DCC_VERSION} && \ - python setup.py install +COPY environment.yml /data2/ +ENV CONDA_ENV=dcc +RUN mamba env create -n ${CONDA_ENV} -f /data2/environment.yml && \ + echo "conda activate ${CONDA_ENV}" > ~/.bashrc +ENV PATH="/opt2/conda/envs/${CONDA_ENV}/bin:$PATH" RUN which DCC && DCC -h # Save Dockerfile in the docker diff --git a/docker/dcc/environment.yml b/docker/dcc/environment.yml new file mode 100644 index 0000000..c91b065 --- /dev/null +++ b/docker/dcc/environment.yml @@ -0,0 +1,6 @@ +channels: + - conda-forge + - bioconda +dependencies: + - python=3.5 + - bioconda::dcc=0.5.0 \ No newline at end of file