Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| infra:howto:apptainer_sample [2025/03/03 10:12] – remi | infra:howto:apptainer_sample [2025/03/03 10:24] (current) – remi | ||
|---|---|---|---|
| Line 72: | Line 72: | ||
| When you already have a Docker image for your job, you have several options to migrate to Apptainer : | When you already have a Docker image for your job, you have several options to migrate to Apptainer : | ||
| - | | + | ### From Dockerhub |
| + | If you have your image ready on DockerHub, then you can simply run from the server : | ||
| + | ```bash | ||
| + | apptainer build ./ | ||
| + | |||
| + | INFO: Starting build... | ||
| + | Copying blob 5a7813e071bf done | ||
| + | Copying config a04dc4851c done | | ||
| + | Writing manifest to image destination | ||
| + | 2025/03/03 11: | ||
| + | INFO: Creating SIF file... | ||
| + | INFO: Build complete: ./ | ||
| + | |||
| + | ``` | ||
| + | |||
| + | ### From local image | ||
| + | You can convert your image to an Apptainer .sif **on your local laptop** before uploading your .sif to the server : | ||
| 1. From local docker images : | 1. From local docker images : | ||
| Line 108: | Line 124: | ||
| ``` | ``` | ||
| - | * You can convert your Docker file to an Apptainer definition file using this conversion table : https:// | + | ### From Dockerfile |
| + | |||
| + | You can convert your Docker file to an Apptainer definition file using this conversion table : https:// | ||
| + | TODO: Script a converter | ||
