Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
miniconda3-python310-pytorch-cuda11.7
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Quang tru HUYNH
miniconda3-python310-pytorch-cuda11.7
Commits
ed6aad8d
Commit
ed6aad8d
authored
2 years ago
by
Quang tru HUYNH
Browse files
Options
Downloads
Patches
Plain Diff
CI with singularity image
parent
ebeebdc8
No related branches found
No related tags found
No related merge requests found
Pipeline
#99022
failed
2 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+13
-13
13 additions, 13 deletions
.gitlab-ci.yml
README.md
+12
-0
12 additions, 0 deletions
README.md
Singularity
+22
-0
22 additions, 0 deletions
Singularity
with
47 additions
and
13 deletions
.gitlab-ci.yml
+
13
−
13
View file @
ed6aad8d
...
...
@@ -10,18 +10,18 @@ docker:
script
:
-
docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" registry-gitlab.pasteur.fr
-
export MY_TIME=`date +"%F-%H%M"`
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA"
-t "$CI_REGISTRY_IMAGE:latest"
-t "$CI_REGISTRY_IMAGE:$MY_TIME" . -f Dockerfile
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" -t "$CI_REGISTRY_IMAGE:$MY_TIME" . -f Dockerfile
-
docker push "$CI_REGISTRY_IMAGE"
#
singularity:
#
stage: build
#
image:
#
name: quay.io/singularity/singularity:v3.11.0
#
entrypoint: [""]
#
script:
#
- singularity build singularity.sif Singularity
#
- ls -lh singularity.sif
#
- singularity push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" singularity.sif oras://"$CI_REGISTRY_IMAGE":latest
#
artifacts:
#
paths:
#
- singularity.sif
singularity
:
stage
:
build
image
:
name
:
quay.io/singularity/singularity:v3.11.0
entrypoint
:
[
"
"
]
script
:
-
singularity build singularity.sif Singularity
-
ls -lh singularity.sif
-
singularity push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" singularity.sif oras://"$CI_REGISTRY_IMAGE":latest
artifacts
:
paths
:
-
singularity.sif
This diff is collapsed.
Click to expand it.
README.md
+
12
−
0
View file @
ed6aad8d
...
...
@@ -15,3 +15,15 @@
-
cuda-nsight-compute
-
nsight-compute
-
cuda-demo-suite
# usage
docker:
```
docker run -ti docker://registry-gitlab.pasteur.fr/tru/miniconda3-python310-pytorch-cuda11.7:main
```
singularity/apptainer:
```
singularity build miniconda3-python310-pytorch-cuda11.7.sif oras://registry-gitlab.pasteur.fr/tru/miniconda3-python310-pytorch-cuda11.7:latest
```
This diff is collapsed.
Click to expand it.
Singularity
0 → 100644
+
22
−
0
View file @
ed6aad8d
Bootstrap: docker
From: continuumio/miniconda3
# update conda and the OS
conda update conda && \
conda upgrade --all -y && \
apt-get update && \
apt-get -y install curl && \
DEBIAN_FRONTEND=noninteractive apt-get -y upgrade && \
DEBIAN_FRONTEND=noninteractive apt-get -y autoremove && \
DEBIAN_FRONTEND=noninteractive apt-get -y clean autoclean
# download the yml file
curl https://gitlab.pasteur.fr/tru/miniconda3-python310-pytorch-cuda11.7/-/raw/main/conda-env-export.yml > conda-env-export.yml && \
conda create --name py310-pytorch --file conda-env-export.yml && \
eval "$(conda shell.bash hook)" && \
conda activate py310-pytorch && \
conda list --explicit > /tmp/conda-list--explicit.yml
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment