-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
145 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
# syntax = docker/dockerfile:1.4 | ||
|
||
# Copyright 2021 DeepMind Technologies Limited | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# Extended by Valentin Maurer <[email protected]> | ||
# Using base image with BARD dependencies! | ||
ARG CUDA=11.8.0 | ||
#FROM nvidia/cuda:${CUDA}-cudnn8-runtime-ubuntu20.04 | ||
FROM registry.git.embl.de/grp-cbbcs/abcdesktop-apps/base-image:ubuntu22-cuda-11-8 | ||
ARG CUDA | ||
|
||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
RUN apt update -y && apt upgrade -y | ||
RUN apt install -y --reinstall libp11-kit0 libffi7 | ||
RUN apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ | ||
build-essential \ | ||
cmake \ | ||
cuda-command-line-tools-$(cut -f1,2 -d- <<< ${CUDA//./-}) \ | ||
kalign \ | ||
tzdata \ | ||
wget \ | ||
bc \ | ||
openssh-client \ | ||
konsole \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& apt-get autoremove -y \ | ||
&& apt-get clean | ||
|
||
RUN wget -q -P /tmp https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh \ | ||
&& bash /tmp/Miniforge3-Linux-x86_64.sh -b -p /opt/conda \ | ||
&& rm /tmp/Miniforge3-Linux-x86_64.sh | ||
ENV PATH="/opt/conda/bin:$PATH" | ||
ENV LD_LIBRARY_PATH="/opt/conda/lib:$LD_LIBRARY_PATH" | ||
|
||
RUN conda install --solver=classic -y \ | ||
conda-forge::conda-libmamba-solver \ | ||
conda-forge::libmamba \ | ||
conda-forge::libmambapy \ | ||
conda-forge::libarchive \ | ||
conda-forge::git | ||
|
||
RUN conda install -y -c conda-forge -c bioconda --solver classic \ | ||
openmm==8.0 \ | ||
cudatoolkit==${CUDA_VERSION} \ | ||
pdbfixer==1.9 \ | ||
kalign2 \ | ||
importlib_metadata \ | ||
modelcif \ | ||
pip \ | ||
hmmer \ | ||
hhsuite \ | ||
python=3.10 \ | ||
&& conda clean --all --force-pkgs-dirs --yes | ||
|
||
RUN conda install -y -c nvidia cuda-nvcc --solver classic | ||
|
||
#COPY . /app/alphafold | ||
#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 | ||
|
||
#RUN mkdir -p /root/.ssh && chmod 700 /root/.ssh | ||
##RUN ssh-keyscan github.com >> /root/.ssh/known_hosts | ||
##RUN pip3 install git+https://github.com/KosinskiLab/AlphaPulldown.git@main | ||
#RUN apt-get update && apt-get install -y git openssl | ||
#RUN git config --global url."https://github.com/".insteadOf "[email protected]:" | ||
#RUN pip3 install git+https://github.com/KosinskiLab/AlphaPulldown.git@main | ||
|
||
#RUN pip3 install --upgrade pip --no-cache-dir \ | ||
# && pip3 install --upgrade --no-cache-dir \ | ||
# -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple \ | ||
# pytest \ | ||
# jax==0.4.23 \ | ||
# jaxlib==0.4.23+cuda11.cudnn86 \ | ||
# -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html | ||
|
||
#RUN chmod u+s /sbin/ldconfig.real | ||
|
||
RUN mkdir -p /root/.ssh && chmod 700 /root/.ssh | ||
RUN apt-get update && apt-get install -y git openssl | ||
RUN git config --global url."https://github.com/".insteadOf "[email protected]:" | ||
RUN pip3 install git+https://github.com/KosinskiLab/AlphaPulldown.git@main | ||
|
||
RUN pip3 install --upgrade pip --no-cache-dir \ | ||
&& pip3 install --upgrade --no-cache-dir \ | ||
pytest | ||
RUN pip3 install torch==2.5.1+cu118 --extra-index-url https://download.pytorch.org/whl/cu118 | ||
|
||
RUN git clone https://github.com/dptech-corp/Uni-Core.git | ||
WORKDIR /Uni-Core | ||
|
||
RUN pip3 install . | ||
RUN chmod u+s /sbin/ldconfig.real | ||
|
||
|
||
LABEL oc.icon="alphafold.svg" | ||
LABEL oc.icondata="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI4MHB4IiBoZWlnaHQ9IjI4MHB4IiBzdHlsZT0ic2hhcGUtcmVuZGVyaW5nOmdlb21ldHJpY1ByZWNpc2lvbjsgdGV4dC1yZW5kZXJpbmc6Z2VvbWV0cmljUHJlY2lzaW9uOyBpbWFnZS1yZW5kZXJpbmc6b3B0aW1pemVRdWFsaXR5OyBmaWxsLXJ1bGU6ZXZlbm9kZDsgY2xpcC1ydWxlOmV2ZW5vZGQiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KPGc+PHBhdGggc3R5bGU9Im9wYWNpd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4yNjIgMjAyLjQwNCwyNjMuMjYyIDIwMC41LDI2My41QyAyMDEuMjYyLDI2MS43MzggMjAyLjU5NiwyNjAuNzM4IDIwNC41LDI2MC41IFoiLz48L2c+CjxnPjxwYXRoIHN0eWxlPSJvcGFjaXR5OjAuNzI1IiBmaWxsPSIjOGVhOGVhIiBkPSJNIDE5OS41LDI2NC41IEMgMTk5Ljg0MiwyNjUuMzM4IDIwMC41MDgsMjY1LjY3MiAyMDEuNSwyNjUuNUMgMTk5LjM2LDI2Ni45MDUgMTk3LjAyNiwyNjcuNzM4IDE5NC41LDI2OEMgMTk1Ljg0NiwyNjYuMzMxIDE5Ny41MTMsMjY1LjE2NCAxOTkuNSwyNjQuNSBaIi8+PC9nPgo8L3N2Zz4K" | ||
LABEL oc.keyword="AlphaLink" | ||
LABEL oc.cat="development" | ||
LABEL oc.desktopfile="org.kde.konsole.desktop" | ||
LABEL oc.launch="af1.konsole" | ||
LABEL oc.template="abcdesktopio/oc.template.ubuntu.nvidia.22.04" | ||
LABEL oc.name="af1" | ||
LABEL oc.displayname="AlphaLink" | ||
LABEL oc.path="/usr/bin/konsole" | ||
#LABEL oc.args="--hold -e bash --rcfile" | ||
LABEL oc.type=app | ||
LABEL oc.showinview="dock" | ||
LABEL oc.rules="{\"homedir\":{\"default\":true}}" | ||
LABEL oc.acl="{\"permit\":[\"all\"]}" | ||
|
||
RUN if [ -d /usr/share/icons ] && [ -x /composer/safelinks.sh ] && [ -d /usr/share/icons ]; then cd /usr/share/icons; /composer/safelinks.sh; fi | ||
RUN if [ -d /usr/share/pixmaps ] && [ -x /composer/safelinks.sh ] && [ -d /usr/share/pixmaps ]; then cd /usr/share/pixmaps; /composer/safelinks.sh; fi | ||
ENV APPNAME "af1" | ||
ENV APPBIN "/usr/bin/konsole" | ||
ENV APP "/usr/bin/konsole" | ||
#ENV ARGS "--hold -e bash --rcfile /usr/local/bin/startide.sh" | ||
ENV LD_LIBRARY_PATH "/opt/conda:/usr/local/nvidia/lib:/usr/local/nvidia/lib64", | ||
ENV NVIDIA_DRIVER_CAPABILITIES "compute,utility" | ||
|
||
|
||
RUN mkdir -p /run/user/ | ||
RUN chmod 777 /run/user | ||
RUN mkdir -p /etc/localaccount | ||
RUN for f in passwd shadow group gshadow ; do if [ -f /etc/$f ] ; then cp /etc/$f /etc/localaccount; rm -f /etc/$f; ln -s /etc/localaccount/$f /etc/$f; fi; done | ||
|
||
|
||
CMD [ "/composer/appli-docker-entrypoint.sh" ] | ||
|
||
|
||
|
||
|
||
#ENTRYPOINT ["bash"] |