|
最近优化了一下之前的docker镜像,用了比较轻量的alpine镜像,也再一次将之前的发布的release版本缩减了接近一半左右,性能经过在自己的笔记本上测试发现并没有性能损失,下面这个链接是用的新版的gromacs-2022.4版本和cp2k-2022.1的联用软件,提供有需要的人,使用方法和之前一样没什么区别,个人也对slurm的脚本进行了修改,dockerfile的文件提供到下面,应该是还存在着优化的空间吧,希望各位老师可以提供意见,谢谢!
- # GROMACS_CP2K_Singularity VERSION
- # MIT LICENSE
- # Copyright (c) 2022 CondaPereira <https://github.com/CondaPereira>
- FROM alpine:3.12
- # AUTHOR ZeKai Shen
- ENV DEBIAN_FRONTEND=noninteractive
- WORKDIR /opt/gromacs-cp2k
- COPY . /opt/gromacs-cp2k/
- RUN set -x; buildDeps='cmake g++ gfortran build-base perl coreutils bash libexecinfo-dev libexecinfo openblas-dev lapack-dev wget git zlib-dev gsl-dev vim python3 py3-pip openssh linux-headers' \
- && sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
- && apk update \
- && apk upgrade \
- && apk add --no-cache -U $buildDeps \
- && ln -s /usr/bin/python3 /usr/bin/python \
- && pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple \
- && chmod +x shfmt_v3.2.2_linux_amd64 \
- && ln -s /opt/gromacs-cp2k/shfmt_v3.2.2_linux_amd64 /usr/bin/shfmt
- # WE'D BETTER RUN THIS SCRIPTS WITHOUT CACHES AS FOLLOWS
- # docker build --no-caches -t your_docker_name
复制代码
下载链接:https://pan.baidu.com/s/1f83zZsAmskoGZzDLscM4YQ?pwd=6666
提取码:6666
之后会上传到github |
|