Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docs.it4i.cz
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
SCS
docs.it4i.cz
Commits
5d7afb5d
Commit
5d7afb5d
authored
3 years ago
by
Branislav Jansik
Browse files
Options
Downloads
Patches
Plain Diff
Update singularity.md
parent
28ee91df
No related branches found
No related tags found
No related merge requests found
Pipeline
#20825
passed with warnings
3 years ago
Stage: test
Stage: build
Stage: deploy
Stage: after_test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs.it4i/software/tools/singularity.md
+25
-0
25 additions, 0 deletions
docs.it4i/software/tools/singularity.md
with
25 additions
and
0 deletions
docs.it4i/software/tools/singularity.md
+
25
−
0
View file @
5d7afb5d
...
...
@@ -68,6 +68,31 @@ Singularity container built: ubuntu.img
Cleaning up...
```
alternatively, you can create your own docker image and import it to singularity.
For example, we show how to create and run ubuntu docker image with gvim installed:
```
console
your_local_machine $
docker pull ubuntu
your_local_machine $
docker run
--rm
-it
ubuntu bash
#
apt update
#
apt
install
vim-gtk
your_local_machine $
docker ps
-a
your_local_machine $
docker commit 837a575cf8dc
your_local_machine $
docker image
ls
your_local_machine $
docker tag 4dd97cefde62 ubuntu_gvim
your_local_machine $
docker save
-o
ubuntu_gvim.tar 4dd97cefde62 ubuntu_gvim
```
copy the
`ubuntu_gvim.tar`
archive to IT4I supercomputers, convert to Singularity image and run:
```
console
$
ml Singularity
$
singularity build ubuntu_givm.img docker-archive://ubuntu_gvim.tar
$
singularity shell
-B
/usr/user/
$ID
ubuntu_gvim.img
```
Note the bind to
`/usr/user/$ID`
directory.
## Launching the Container
The interactive shell can be invoked by the
`singularity shell`
command. This is useful for development purposes. Use the
`-w | --writable`
option to make changes inside the container permanent.
...
...
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