alphafold
alphafold copied to clipboard
Failed to build docker on Step 16/19 - patch issue
I'm using a nvidia-gpu-cloud-image on GCP with all the specifications given in the readme. When I run
docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi
I see the expected output.
Building docker failed the first time, and when I tried restarting I get this error:
Sending build context to Docker daemon 12.69MB
Step 1/19 : ARG CUDA=11.0
Step 2/19 : FROM nvidia/cuda:${CUDA}-base
---> 2ec708416bb8
Step 3/19 : ARG CUDA
---> Using cache
---> 3cd6e5d7aef1
Step 4/19 : SHELL ["/bin/bash", "-c"]
---> Using cache
---> 657140758d4a
Step 5/19 : RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential cmake cuda-command-line-tools-${CUDA/./-} git hmmer kalign tzdata wget && rm -rf /var/lib/apt/lists/*
---> Using cache
---> d2d4f3239339
Step 6/19 : RUN git clone --branch v3.3.0 https://github.com/soedinglab/hh-suite.git /tmp/hh-suite && mkdir /tmp/hh-suite/build
---> Using cache
---> a080135b9366
Step 7/19 : WORKDIR /tmp/hh-suite/build
---> Using cache
---> 51cca5fbe9a6
Step 8/19 : RUN cmake -DCMAKE_INSTALL_PREFIX=/opt/hhsuite .. && make -j 4 && make install && ln -s /opt/hhsuite/bin/* /usr/bin && rm -rf /tmp/hh-suite
---> Using cache
---> ca9d782a9cf7
Step 9/19 : RUN wget -q -P /tmp https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda && rm /tmp/Miniconda3-latest-Linux-x86_64.sh
---> Using cache
---> b0be57ee6667
Step 10/19 : ENV PATH="/opt/conda/bin:$PATH"
---> Using cache
---> bb0f01a8e0ce
Step 11/19 : RUN conda update -qy conda && conda install -y -c conda-forge openmm=7.5.1 cudatoolkit==${CUDA}.3 pdbfixer pip
---> Using cache
---> 5b8200c0a89d
Step 12/19 : COPY . /app/alphafold
---> Using cache
---> 88f827ee547a
Step 13/19 : RUN wget -q -P /app/alphafold/alphafold/common/ https://git.scicore.unibas.ch/schwede/openstructure/-/raw/7102c63615b64735c4941278d92b554ec94415f8/modules/mol/alg/src/stereo_chemical_props.txt
---> Using cache
---> e11c50f82963
Step 14/19 : RUN pip3 install --upgrade pip && pip3 install -r /app/alphafold/requirements.txt && pip3 install --upgrade jax jaxlib==0.1.69+cuda${CUDA/./} -f https://storage.googleapis.com/jax-releases/jax_releases.html
---> Using cache
---> bb6bb12e43ad
Step 15/19 : WORKDIR /opt/conda/lib/python3.8/site-packages
---> Using cache
---> 47ea4f7f278b
Step 16/19 : RUN patch -p0 < /app/alphafold/docker/openmm.patch
---> Running in ffae81eced58
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: simtk/openmm/app/topology.py
|===================================================================
|--- simtk.orig/openmm/app/topology.py
|+++ simtk/openmm/app/topology.py
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
The command '/bin/bash -c patch -p0 < /app/alphafold/docker/openmm.patch' returned a non-zero code: 1
Any idea what may be going wrong?
answer can be found in #36, @unode mentioned using /opt/conda/lib/python3.9 instead of /opt/conda/lib/python3.8
Thank you, this fixed it.
Hi @durrantmm , is this GCP instance with AlphaFold2 pre-built in it available somewhere? Thanks in advance.