Skip to content
Snippets Groups Projects
Commit 4fa1eecf authored by Quang tru HUYNH's avatar Quang tru HUYNH
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #152882 passed with stage
in 29 minutes and 10 seconds
build:
image: docker:24
stage: build
before_script:
- i=0; while [ "$i" -lt 12 ]; do docker info && break; sleep 5; i=$(( i + 1 )) ; done
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- export MY_TIME=`date +"%F-%H%M"`
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" -t "$CI_REGISTRY_IMAGE:latest" -t "$CI_REGISTRY_IMAGE:$MY_TIME" --build-arg="BUILD_OPTIONS=$OPTIONS" -f ./Dockerfile .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME"
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA"
- docker push "$CI_REGISTRY_IMAGE:latest"
- docker push "$CI_REGISTRY_IMAGE:main"
- docker push "$CI_REGISTRY_IMAGE:$MY_TIME"
FROM debian:12
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN <<EOF bash
set -ex
# pulled from Singularity recipe:
apt-get update
DEBIAN_FRONTEND=noninteractive \
apt-get install -y wget cmake python3-numpy python3-setuptools doxygen swig cython3 software-properties-common git jq python3-pip openmpi-bin libopenmpi-dev
mkdir /opt/cuda-toolkit
cd /opt/cuda-toolkit
## CUDA
wget https://developer.download.nvidia.com/compute/cuda/12.4.1/local_installers/cuda-repo-debian12-12-4-local_12.4.1-550.54.15-1_amd64.deb
dpkg -i cuda-repo-debian12-12-4-local_12.4.1-550.54.15-1_amd64.deb && \
rm cuda-repo-debian12-12-4-local_12.4.1-550.54.15-1_amd64.deb
cp /var/cuda-repo-debian12-12-4-local/cuda-*-keyring.gpg /usr/share/keyrings/
apt-get update
apt-get -y install cuda-toolkit-12-4
apt-get autoremove
apt-get autoclean
apt-get clean
# cleanup cuda sources
rm -r /var/cuda-repo-debian12-12-4-local /etc/apt/sources.list.d//cuda-debian12-12-4-local.list
# cleanup build
rm -rf /opt/openmm
EOF
This diff is collapsed.
# building a debian 12 based openmpi cuda 12.4.1 (docker-debian12-openmpi-cuda-12.4.1)
[![pipeline status](https://gitlab.pasteur.fr/tru/docker-debian12-openmpi-cuda-12.4.1/badges/main/pipeline.svg)](https://gitlab.pasteur.fr/tru/docker-debian12-openmpi-cuda-12.4.1/-/commits/main)
Tru <tru@pasteur.fr>
(toy) docker image produced available at `registry-gitlab.pasteur.fr/tru/docker-debian12-openmpi-cuda-12.4.1:latest`
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment