Skip to content

Commit

Permalink
add Mahesh notes
Browse files Browse the repository at this point in the history
  • Loading branch information
CormacKinsella committed Jun 11, 2024
1 parent a0701df commit af69a88
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apptainer/apptainer.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ From: debian:12.5-slim

- You can also share a .def file, however consider that some tags on docker hub refer to rolling releases, e.g. `latest`. If you want future builds of the container to be identical, try to find a static tag, e.g. a github commit tag

- In addition, using commands from package managers like `apt-get update` in the .def will make the container less reproducible, as the package versions will change over time

- By default Apptainer/Singularity loads certain directories such as `$HOME` (see below), and this means local packages (e.g. Python, R, etc.) can be picked up and loaded instead of the ones in the container. To prevent this, do [something like this](https://github.com/nf-core/tools/blob/930ece572bf23b68c7a7c5259e918a878ba6499e/nf_core/pipeline-template/nextflow.config#L212-L221).

## Other useful things to know:

### Mount binding
Expand All @@ -103,6 +107,10 @@ From: debian:12.5-slim
- There is a "sandbox container" feature which is editable, and it works like a file system within your file system
- When you are ready for a production container, you can convert the sandbox container to a regular container, though it would be preferable to rebuild from a definition file, so that there is a record of what was done

::: {.callout-tip}
It's advisable to use many small containers (minimal container for a single process/tool) rather than large inclusive containers.
:::

## Seqera containers resource

- [Seqera containers resource](https://seqera.io/containers)
Expand Down

0 comments on commit af69a88

Please sign in to comment.