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

master
Wirawan Purwanto 3 years ago
parent b58a2e43ef
commit 7767409735
  1. 11
      singularity/20200710.Build-Ubuntu-20-04.md
  2. 24
      singularity/20200710.Singularity-def-basics.md
  3. 48
      singularity/20200710.Singularity-get-started.md

@ -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.

@ -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

@ -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
Loading…
Cancel
Save