Skip to content

Commit

Permalink
working docker setup
Browse files Browse the repository at this point in the history
  • Loading branch information
vineetbansal committed Aug 24, 2024
1 parent b728a26 commit f219674
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
6 changes: 4 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
FROM continuumio/miniconda3

RUN apt-get update && apt-get install -y build-essential
RUN apt-get install -y zlib1g-dev libbz2-dev liblzma-dev

# Install and use mamba (faster) instead of conda
# RUN conda install -n base --override-channels -c conda-forge mamba 'python_abi=*=*cp*'
RUN conda install python=3.10 pip
RUN conda install -c conda-forge -c bioconda guidescan
RUN conda install python=3.10 pip --yes
RUN conda install -c conda-forge -c bioconda guidescan --yes
RUN pip install "guidescanpy[dev] @ git+https://github.com/pritykinlab/guidescanpy.git"

RUN mkdir /snakemake
Expand Down
14 changes: 7 additions & 7 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
condition: service_healthy
volumes:
- guidescan_data:/data
command: snakemake --use-conda --cores 1 --config output_dir="/data" max_kmers=1000 organisms=[\"sacCer3\"] enzymes=[\"cas9\"]
command: snakemake --use-conda --conda-frontend conda --cores 1 --config output_dir="/data" max_kmers=1000 organisms=[\"sacCer3\"] enzymes=[\"cas9\"]
environment:
- GUIDESCAN_GUIDESCAN_DB=postgresql+psycopg2://${POSTGRES_USER}:${POSTGRES_PASSWORD}@guidescan_db/${POSTGRES_DB}

Expand All @@ -48,8 +48,8 @@ services:
- GUIDESCAN_CELERY_BROKER=redis://guidescan_redis
- GUIDESCAN_CELERY_BACKEND=redis://guidescan_redis
- GUIDESCAN_GUIDESCAN_DB=postgresql+psycopg2://${POSTGRES_USER}:${POSTGRES_PASSWORD}@guidescan_db/${POSTGRES_DB}
- BAM_PATH=/data/databases/
- INDEX_PATH=/data/indices/
- GUIDESCAN_BAM_PATH=/data/databases/
- GUIDESCAN_INDEX_PATH=/data/indices/
extra_hosts:
- "host.docker.internal:172.17.0.1"

Expand All @@ -68,8 +68,8 @@ services:
- GUIDESCAN_CELERY_BROKER=redis://guidescan_redis
- GUIDESCAN_CELERY_BACKEND=redis://guidescan_redis
- GUIDESCAN_GUIDESCAN_DB=postgresql+psycopg2://${POSTGRES_USER}:${POSTGRES_PASSWORD}@guidescan_db/${POSTGRES_DB}
- BAM_PATH=/data/databases/
- INDEX_PATH=/data/indices/
- GUIDESCAN_BAM_PATH=/data/databases/
- GUIDESCAN_INDEX_PATH=/data/indices/
extra_hosts:
- "host.docker.internal:172.17.0.1"

Expand All @@ -90,8 +90,8 @@ services:
- GUIDESCAN_CELERY_BROKER=redis://guidescan_redis
- GUIDESCAN_CELERY_BACKEND=redis://guidescan_redis
- GUIDESCAN_GUIDESCAN_DB=postgresql+psycopg2://${POSTGRES_USER}:${POSTGRES_PASSWORD}@guidescan_db/${POSTGRES_DB}
- BAM_PATH=/data/databases/
- INDEX_PATH=/data/indices/
- GUIDESCAN_BAM_PATH=/data/databases/
- GUIDESCAN_INDEX_PATH=/data/indices/
extra_hosts:
- "host.docker.internal:172.17.0.1"

Expand Down

0 comments on commit f219674

Please sign in to comment.