Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
conda-container-howto
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
conda-container-howto
Commits
c87413d3
Commit
c87413d3
authored
3 years ago
by
Quang tru HUYNH
Browse files
Options
Downloads
Patches
Plain Diff
singularity build example
parent
6ee8829b
No related branches found
No related tags found
No related merge requests found
Pipeline
#65819
passed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
02-singularity.md
+40
-0
40 additions, 0 deletions
02-singularity.md
with
40 additions
and
0 deletions
02-singularity.md
+
40
−
0
View file @
c87413d3
...
@@ -109,6 +109,46 @@ PYTHONNOUSERSITE=1
...
@@ -109,6 +109,46 @@ PYTHONNOUSERSITE=1
export PYTHONNOUSERSITE
export PYTHONNOUSERSITE
```
```
## Full example output on the gpulab
```
[tru@adm pythonnet]$ wget https://gitlab.pasteur.fr/tru/conda-container-howto/-/
raw/main/Singularity
--2021-09-23 14:06:00-- https://gitlab.pasteur.fr/tru/conda-container-howto/-/raw/main/Singularity
Resolving gitlab.pasteur.fr (gitlab.pasteur.fr)... 157.99.21.44
Connecting to gitlab.pasteur.fr (gitlab.pasteur.fr)|157.99.21.44|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 769 [text/plain]
Saving to: ‘Singularity’
100%[======================================>] 769 --.-K/s in 0s
2021-09-23 14:06:00 (115 MB/s) - ‘Singularity’ saved [769/769]
[tru@adm pythonnet]$ sudo singularity build b.sif Singularity INFO: Starting build...
Getting image source signatures
Copying blob 2d473b07cdd5 [--------------------------------------] 0.0b / 0.0b
Copying config 6d42e44a9f done
Writing manifest to image destination
<...>
#
# To activate this environment, use
#
# $ conda activate pythonnet
#
# To deactivate an active environment, use
#
# $ conda deactivate
INFO: Adding environment to container
INFO: Creating SIF file...
INFO: Build complete: b.sif
[tru@adm pythonnet]$ ./b.sif
Singularity> eval "$(conda shell.bash hook)"
(base) Singularity> conda activate pythonnet
(pythonnet) Singularity> python -c 'import clr'
(pythonnet) Singularity>
```
Now you just need to distribute your container... to whoever/wherever.
## Caveats
## Caveats
-
adding to base and adding a new pythonnet env are different things...
-
adding to base and adding a new pythonnet env are different things...
...
...
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