Dockerfile 2.49 KB
Newer Older
mashun1's avatar
mashun1 committed
1
2
FROM image.sourcefind.cn:5000/dcu/admin/base/jax:0.4.23-ubuntu20.04-dtk24.04.1-py3.10

mashun1's avatar
fix bug  
mashun1 committed
3
RUN apt update
mashun1's avatar
mashun1 committed
4

mashun1's avatar
fix bug  
mashun1 committed
5
RUN sudo apt install hmmer -y
mashun1's avatar
mashun1 committed
6

mashun1's avatar
fix bug  
mashun1 committed
7
RUN sudo apt install doxygen -y
mashun1's avatar
mashun1 committed
8

mashun1's avatar
fix bug  
mashun1 committed
9
WORKDIR /app
mashun1's avatar
mashun1 committed
10

mashun1's avatar
fix bug  
mashun1 committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
COPY . /app/alphafold2

# hh-suite

WORKDIR /app/softwares

RUN git clone https://github.com/soedinglab/hh-suite.git

# # for intel cpu
# RUN mkdir -p hh-suite/build && cd hh-suite/build && lscpu | grep 'Model name' | grep -q 'Intel' && cmake -DCMAKE_INSTALL_PREFIX=. .. && make -j 4 && make install || echo "not for intel"

# # RUN which hhsearch && echo "already build for intel" || echo ""

# # for others
# RUN lscpu | grep 'Model name' | grep -vq 'Intel' && cmake -DHAVE_AVX2=1 -DCMAKE_INSTALL_PREFIX=. .. && make -j 4 && make install && echo "already build for hygon or amd" || echo "not for others"

# # RUN which hhsearch
mashun1's avatar
mashun1 committed
28
29
30

# ENV PATH=/app/softwares/hh-suite/build/bin:/app/softwares/hh-suite/build/scripts:$PATH

mashun1's avatar
fix bug  
mashun1 committed
31
32
33
34
35
36
37
38
39
40
41
# RUN which hhsearch

# kalign

WORKDIR /app/softwares

RUN wget https://github.com/TimoLassmann/kalign/archive/refs/tags/v3.4.0.zip && unzip v3.4.0.zip && cd kalign-3.4.0 && mkdir build && cd build && cmake .. && make && sudo make install

# openmm

WORKDIR /app/softwares
mashun1's avatar
mashun1 committed
42

mashun1's avatar
fix bug  
mashun1 committed
43
RUN wget https://github.com/openmm/openmm/archive/refs/tags/8.0.0.zip && unzip 8.0.0.zip
mashun1's avatar
mashun1 committed
44

mashun1's avatar
fix bug  
mashun1 committed
45
# RUN mkdir build build-hip install
mashun1's avatar
mashun1 committed
46

mashun1's avatar
fix bug  
mashun1 committed
47
# RUN cd build && cmake ../openmm-8.0.0/ -D CMAKE_INSTALL_PREFIX=../install -D OPENMM_BUILD_COMMON=ON -D OPENMM_PYTHON_USER_INSTALL=ON && make && sudo make install && sudo make PythonInstall
mashun1's avatar
mashun1 committed
48

mashun1's avatar
fix bug  
mashun1 committed
49
50
# hip
WORKDIR /app/softwares
mashun1's avatar
mashun1 committed
51

mashun1's avatar
fix bug  
mashun1 committed
52
RUN git clone https://github.com/amd/openmm-hip.git
mashun1's avatar
mashun1 committed
53

mashun1's avatar
fix bug  
mashun1 committed
54
# RUN cd build-hip && cmake ../openmm-hip/ -D OPENMM_DIR=../install -D OPENMM_SOURCE_DIR=../openmm-8.0.0 -D CMAKE_INSTALL_PREFIX=../install && make && sudo make install
mashun1's avatar
mashun1 committed
55

mashun1's avatar
fix bug  
mashun1 committed
56
# ENV LD_LIBRARY_PATH=/app/softwares/build-hip/:$LD_LIBRARY_PATH
mashun1's avatar
mashun1 committed
57

mashun1's avatar
fix bug  
mashun1 committed
58
# ENV OPENMM_PLUGIN_DIR=/app/softwares/install/lib/plugins
mashun1's avatar
mashun1 committed
59

mashun1's avatar
fix bug  
mashun1 committed
60
# ENV OPENMM_FFT_BACKEND=1
mashun1's avatar
mashun1 committed
61

mashun1's avatar
fix bug  
mashun1 committed
62
# RUN python docker_test.py | grep -q 'HIP'
mashun1's avatar
mashun1 committed
63

mashun1's avatar
fix bug  
mashun1 committed
64
# pdbfixer
mashun1's avatar
mashun1 committed
65

mashun1's avatar
fix bug  
mashun1 committed
66
WORKDIR /app/softwares
mashun1's avatar
mashun1 committed
67

mashun1's avatar
fix bug  
mashun1 committed
68
RUN wget https://github.com/openmm/pdbfixer/archive/refs/tags/1.9.zip && unzip 1.9.zip && cd pdbfixer-1.9 && python setup.py install 
mashun1's avatar
mashun1 committed
69

mashun1's avatar
fix bug  
mashun1 committed
70
71
# pip
RUN ls
mashun1's avatar
mashun1 committed
72

mashun1's avatar
fix bug  
mashun1 committed
73
RUN pip install --no-cache-dir -r /app/alphafold2/requirements_dcu.txt -i https://mirrors.ustc.edu.cn/pypi/web/simple
mashun1's avatar
mashun1 committed
74

mashun1's avatar
fix bug  
mashun1 committed
75
RUN pip install dm-haiku==0.0.11 flax==0.7.1 jmp==0.0.2 tabulate==0.8.9 --no-deps jax -i https://mirrors.ustc.edu.cn/pypi/web/simple
mashun1's avatar
mashun1 committed
76

mashun1's avatar
fix bug  
mashun1 committed
77
RUN pip install orbax==0.1.6 orbax-checkpoint==0.1.6 optax==0.2.2 -i https://mirrors.ustc.edu.cn/pypi/web/simple
mashun1's avatar
mashun1 committed
78

mashun1's avatar
fix bug  
mashun1 committed
79
WORKDIR /app/alphafold2
mashun1's avatar
mashun1 committed
80

mashun1's avatar
fix bug  
mashun1 committed
81
RUN python setup.py install