-
Notifications
You must be signed in to change notification settings - Fork 10
/
templates.cpp
60 lines (51 loc) · 2.83 KB
/
templates.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#include "templates.h"
static TemplateHash examples;
TemplateHash &getTemplates()
{
TemplateHash hash;
if (!examples.empty()) {
return examples;
}
// Distro
hash["almalinux"] = Template("almalinux", "AlmaLinux", "https://almalinux.org");
hash["alpine"] = Template("alpine", "Alpine", "https://alpinelinux.org");
hash["archlinux"] = Template("archlinux", "Arch", "https://archlinux.org");
hash["debian"] = Template("debian", "Debian", "https://debian.org");
hash["fedora"] = Template("fedora", "Fedora", "https://fedoraproject.org");
hash["opensuse"] = Template("opensuse", "openSUSE", "https://opensuse.org");
hash["rocky"] = Template("rocky", "Rocky", "https://rockylinux.org");
hash["ubuntu"] = Template("ubuntu", "Ubuntu", "https://ubuntu.com");
hash["centos"] = Template("centos", "CentOS", "https://www.centos.org/centos-linux/");
hash["flatcar"] = Template("flatcar", "Flatcar", "https://flatcar.org");
hash["tinycore"] = Template("tinycore", "TinyCore", "http://tinycorelinux.net/");
hash["buildroot"] = Template("buildroot", "Buildroot", "https://buildroot.org/");
hash["centos-stream"] =
Template("centos-stream", "CentOS Stream", "https://www.centos.org/centos-stream/");
hash["fedora-coreos"] =
Template("fedora-coreos", "Fedora CoreOS", "https://fedoraproject.org/coreos/");
hash["opensuse-leap"] = Template("opensuse-leap", "openSUSE Leap", "https://www.opensuse.org/");
hash["opensuse-tumbleweed"] =
Template("opensuse-tumbleweed", "openSUSE Tumbleweed", "https://www.opensuse.org/");
// Container engines
hash["default"] = Template("default", "Default", "https://containerd.io");
hash["docker"] = Template("docker", "Docker", "https://docker.com");
hash["podman"] = Template("podman", "Podman", "https://podman.io");
hash["singularity"] = Template("singularity", "Singularity", "https://singularity.hpcng.org");
hash["apptainer"] = Template("apptainer", "Apptainer", "https://apptainer.org");
// Container orchestration
hash["k3s"] = Template("k3s", "Kubernetes (k3s)", "https://k3s.io");
hash["k8s"] = Template("k8s", "Kubernetes (k8s)", "https://k8s.io");
hash["nomad"] = Template("nomad", "Nomad", "https://nomadproject.io");
hash["faasd"] = Template("faasd", "Faasd", "https://openfaas.com");
hash["centos-stream"].setLogo("stream.png");
hash["fedora-coreos"].setLogo("coreos.png");
hash["opensuse-leap"].setLogo("leap.png");
hash["opensuse-leap"].setYaml("opensuse.yaml");
hash["opensuse-tumbleweed"].setLogo("tumbleweed.png");
hash["opensuse-tumbleweed"].setYaml("experimental/opensuse-tumbleweed.yaml");
hash["default"].setLogo("nerd-face.png");
hash["docker"].setLogo("whale.png");
hash["faasd"].setLogo("openfaas.png");
examples = hash;
return examples;
}