* Added starting files for Singularity-related KB (WIP).

This commit is contained in:
2021-08-31 11:26:46 -04:00
parent b58a2e43ef
commit 7767409735
3 changed files with 83 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
Singularity Container from Scratch: Ubuntu 20.04
================================================
Example: Ubuntu 20.04
---------------------
**Goal**: Let's get a base Ubuntu 20.04 image up and running.

View File

@@ -0,0 +1,24 @@
Basics of Singularity Def File
==============================
[20200710]
Definitive guide (the doc):
https://sylabs.io/guides/3.5/user-guide/definition_files.html
"Bootstrap" keyword
-------------------
Defines how we get the starting image
* `library`: on Sylab Cloud container library
* `docker`: Docker Hub
See: <https://sylabs.io/guides/3.5/user-guide/appendix.html#build-docker-module>
See: <https://sylabs.io/guides/3.5/user-guide/definition_files.html#preferred-bootstrap-agents>
https://cloud.sylabs.io/library

View File

@@ -0,0 +1,48 @@
Singularity: Getting Started
============================
Singularity tutorials
---------------------
<https://singularity-tutorial.github.io/>
Relevant Documentations
-----------------------
* Singularity def files:
<https://sylabs.io/guides/3.5/user-guide/definition_files.html>
Examples (templates)
--------------------
Examples of Singularity container defs:
<https://github.com/sylabs/examples>
How to build a basic Singularity container
------------------------------------------
Steps:
* create a writable container (called a sandbox)
* shell into the container with the --writable option and tinker with
it interactively
* record changes that we like in our definition file
* rebuild the container from the definition file if we break it
* rinse and repeat until we are happy with the result
* rebuild the container from the final definition file as a read-only
singularity image format (SIF) image for use in production