From 8a24e734f878558e502c7f3d1a56f2f904bb9637 Mon Sep 17 00:00:00 2001
From: Marty Kandes <mkandes@sdsc.edu>
Date: Tue, 3 Aug 2021 21:23:22 +0000
Subject: [PATCH] First naked-singularity containers hosted on GitHub Container
 Registry

Successfully tested by pushing containers [1] built on Jetstream to
GitHub Container Registry (GHCR), pulling containers [2] hosted on
GHCR to Expanse, and then running osu_bw and osu_latency benchmarks.

[1]

export GH_PAT='<GITHUB_PERSONAL_ACCESS_TOKEN>'
singularity push --docker-login mkandes --docker-password "${GH_PAT}" \
  omb-5.6.3-ubuntu-18.04-openmpi-3.1.6.sif \
  oras://ghcr.io/mkandes/naked-singularity:omb-5.6.3-ubuntu-18.04-openmpi-3.1.6

[2]

singularity pull oras://ghcr.io/mkandes/naked-singularity:omb-5.6.3-ubuntu-18.04-openmpi-3.1.6
---
 .../omb/Singularity.omb-5.6.3-ubuntu-18.04-openmpi-3.1.6    | 6 +++---
 .../ubuntu/Singularity.ubuntu-18.04-openmpi-3.1.6           | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/definition-files/omb/Singularity.omb-5.6.3-ubuntu-18.04-openmpi-3.1.6 b/definition-files/omb/Singularity.omb-5.6.3-ubuntu-18.04-openmpi-3.1.6
index 16a0d3f..d20e933 100644
--- a/definition-files/omb/Singularity.omb-5.6.3-ubuntu-18.04-openmpi-3.1.6
+++ b/definition-files/omb/Singularity.omb-5.6.3-ubuntu-18.04-openmpi-3.1.6
@@ -1,5 +1,5 @@
-Bootstrap: shub
-From: mkandes/naked-singularity:ubuntu-18.04-openmpi-3.1.6
+Bootstrap: oras
+From: ghcr.io/mkandes/naked-singularity:ubuntu-18.04-openmpi-3.1.6
 
 %labels
 
@@ -10,7 +10,7 @@ From: mkandes/naked-singularity:ubuntu-18.04-openmpi-3.1.6
     AUTHOR_NAME Marty Kandes
     AUTHOR_EMAIL mkandes@sdsc.edu
 
-    LAST_UPDATED 20201228
+    LAST_UPDATED 20210803
 
 %setup
 
diff --git a/definition-files/ubuntu/Singularity.ubuntu-18.04-openmpi-3.1.6 b/definition-files/ubuntu/Singularity.ubuntu-18.04-openmpi-3.1.6
index 45a5562..50be8d8 100644
--- a/definition-files/ubuntu/Singularity.ubuntu-18.04-openmpi-3.1.6
+++ b/definition-files/ubuntu/Singularity.ubuntu-18.04-openmpi-3.1.6
@@ -1,5 +1,5 @@
-Bootstrap: shub
-From: mkandes/naked-singularity:ubuntu-18.04
+Bootstrap: oras
+From: ghcr.io/mkandes/naked-singularity:ubuntu-18.04
 
 %labels
 
@@ -10,7 +10,7 @@ From: mkandes/naked-singularity:ubuntu-18.04
     AUTHOR_NAME Marty Kandes
     AUTHOR_EMAIL mkandes@sdsc.edu
 
-    LAST_UPDATED 20210409
+    LAST_UPDATED 20210803
 
 %setup
 
-- 
GitLab