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
# 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 && make install
RUN wget https://github.com/openmm/openmm/archive/refs/tags/8.0.0.zip && unzip 8.0.0.zip
# WORKDIR /app/softwares
# RUN mkdir build build-hip install
# RUN sudo apt install doxygen -y
# 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
# RUN wget https://github.com/openmm/openmm/archive/refs/tags/8.0.0.zip && unzip 8.0.0.zip && cd openmm-8.0.0 && mkdir build && cd build && cmake .. && make && sudo make install && sudo make PythonInstall
# hip
WORKDIR /app/softwares
# WORKDIR /app/softwares
RUN git clone https://github.com/amd/openmm-hip.git
# 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
# 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
mkdir-p build &&cd build && cmake -DCMAKE_INSTALL_PREFIX=. .. && make -j 8 && make install
else
echo"build for others"
cd /app/softwares/hh-suite
rm-rf build
mkdir-p build &&cd build && cmake -DHAVE_AVX2=1 -DCMAKE_INSTALL_PREFIX=. .. && make -j 8 && make install
fi
# openmm-8.0.0
echo"build openmm-8.0.0"
cd /app/softwares
rm-rf build build-hip install
mkdir build build-hip install
cd build && cmake ../openmm-8.0.0/ -DCMAKE_INSTALL_PREFIX=../install -DOPENMM_BUILD_COMMON=ON -DOPENMM_PYTHON_USER_INSTALL=ON && make &&sudo make install&&sudo make PythonInstall
# openmm-hip
cd /app/softwares
cd build-hip && cmake ../openmm-hip/ -DOPENMM_DIR=../install -DOPENMM_SOURCE_DIR=../openmm-8.0.0 -DCMAKE_INSTALL_PREFIX=../install && make &&sudo make install