We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e5da8a commit 313ece8Copy full SHA for 313ece8
internal/pkg/distro/distro.go
@@ -14,6 +14,7 @@ import (
14
"github.com/sylabs/singularity-mpi/internal/pkg/sys"
15
)
16
17
+// ID represents a Linux distribution
18
type ID struct {
19
// Name is the name of the Linux distribution, e.g., ubuntu
20
Name string
@@ -25,6 +26,7 @@ type ID struct {
25
26
Codename string
27
}
28
29
+// GetBaseImageLibraryURL returns the library URL to use as base image (when possible)
30
func GetBaseImageLibraryURL(linuxDistro ID, sysCfg *sys.Config) string {
31
configFile := filepath.Join(sysCfg.EtcDir, "sympi_"+linuxDistro.Name+".conf")
32
0 commit comments