Skip to content

Commit

Permalink
add docker images to downloads page
Browse files Browse the repository at this point in the history
  • Loading branch information
FoggyMtnDrifter committed Apr 7, 2024
1 parent 6800442 commit 269102e
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/[locale]/download/components/DefaultImage/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface VersionItem {
currentVersion: string;
plannedEol: string;
downloadOptions: DownloadOption[];
links: Links[];
links?: Links[];
}

interface DefaultImageCardProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ interface VersionItem {
currentVersion: string;
plannedEol: string;
downloadOptions: DownloadOption[];
links: Links[];
links?: Links[];
}

interface DownloadCardProps {
Expand Down Expand Up @@ -88,7 +88,7 @@ const VersionPicker: React.FC<DownloadCardProps> = ({ versions }) => {
</div>
{/* Links */}
<div className="mt-4 sm:flex grid grid-cols-2 sm:gap-4">
{version.links.map((link, index) => (
{version.links?.map((link, index) => (
<a
key={index}
href={link.link}
Expand Down
136 changes: 132 additions & 4 deletions app/[locale]/download/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const DownloadPage = () => {
{
versionName: `${t("cards.defaultImages.x86_64.r8.versionName")}`,
versionId: "rocky-8",
currentVersion: "v8.4",
currentVersion: "v8.9",
plannedEol: `${t("cards.defaultImages.x86_64.r8.plannedEol")}`,
downloadOptions: [
{
Expand Down Expand Up @@ -170,7 +170,7 @@ const DownloadPage = () => {
{
versionName: `${t("cards.defaultImages.x86_64.r8.versionName")}`,
versionId: "rocky-8",
currentVersion: "v8.4",
currentVersion: "v8.9",
plannedEol: `${t("cards.defaultImages.x86_64.r8.plannedEol")}`,
downloadOptions: [
{
Expand All @@ -187,6 +187,46 @@ const DownloadPage = () => {
},
]}
/>
<DefaultImageCard
title={t("cards.container.title")}
titleTooltip={false}
titleTooltipButtonLink=""
titleTooltipButtonLabel=""
versions={[
{
versionName: `${t("cards.defaultImages.x86_64.r9.versionName")}`,
versionId: "rocky-9",
currentVersion: "v9.3",
plannedEol: `${t("cards.defaultImages.x86_64.r9.plannedEol")}`,
downloadOptions: [
{
label: `${t("cards.container.downloadOptions.fullImage")}`,
link: "https://hub.docker.com/layers/library/rockylinux/9/images/sha256-45cc42828cc5ceeffa3a9b4f6363fb582fac3ab91f77bf403daa067f8f049f96?context=explore",
},
{
label: `${t("cards.container.downloadOptions.minimalImage")}`,
link: "https://hub.docker.com/layers/library/rockylinux/9-minimal/images/sha256-2cf09800dfe5f0b55fd8960675ce9345ff325827f9977a7e9e01348da50d2a22?context=explore",
},
],
},
{
versionName: `${t("cards.defaultImages.x86_64.r8.versionName")}`,
versionId: "rocky-8",
currentVersion: "v8.9",
plannedEol: `${t("cards.defaultImages.x86_64.r8.plannedEol")}`,
downloadOptions: [
{
label: `${t("cards.container.downloadOptions.fullImage")}`,
link: "https://hub.docker.com/layers/library/rockylinux/8/images/sha256-69cecc7163282ad83e27b739fe8473b7c56e280e83827dcda60e5d37102457f1?context=explore",
},
{
label: `${t("cards.container.downloadOptions.minimalImage")}`,
link: "https://hub.docker.com/layers/library/rockylinux/8-minimal/images/sha256-87784fa4b10033267a335350072288daa1197145315ce29a6996fa5f148d095a?context=explore",
},
],
},
]}
/>
</div>
</TabsContent>
<TabsContent value="aarch64">
Expand Down Expand Up @@ -251,7 +291,7 @@ const DownloadPage = () => {
{
versionName: `${t("cards.defaultImages.x86_64.r8.versionName")}`,
versionId: "rocky-8",
currentVersion: "v8.4",
currentVersion: "v8.9",
plannedEol: `${t("cards.defaultImages.x86_64.r8.plannedEol")}`,
downloadOptions: [
{
Expand Down Expand Up @@ -315,7 +355,7 @@ const DownloadPage = () => {
{
versionName: `${t("cards.defaultImages.x86_64.r8.versionName")}`,
versionId: "rocky-8",
currentVersion: "v8.4",
currentVersion: "v8.9",
plannedEol: `${t("cards.defaultImages.x86_64.r8.plannedEol")}`,
downloadOptions: [
{
Expand All @@ -332,6 +372,46 @@ const DownloadPage = () => {
},
]}
/>
<DefaultImageCard
title={t("cards.container.title")}
titleTooltip={false}
titleTooltipButtonLink=""
titleTooltipButtonLabel=""
versions={[
{
versionName: `${t("cards.defaultImages.x86_64.r9.versionName")}`,
versionId: "rocky-9",
currentVersion: "v9.3",
plannedEol: `${t("cards.defaultImages.x86_64.r9.plannedEol")}`,
downloadOptions: [
{
label: `${t("cards.container.downloadOptions.fullImage")}`,
link: "https://hub.docker.com/layers/library/rockylinux/9/images/sha256-ae32ae7f54215074bd0400dd82a4d543f8bc7d7d4b205563aa50f638dd20b335?context=explore",
},
{
label: `${t("cards.container.downloadOptions.minimalImage")}`,
link: "https://hub.docker.com/layers/library/rockylinux/9-minimal/images/sha256-f28cf6f0ad919341be4c41ee31f3a27851bc82a47b1430aa4ba263d992ff8f03?context=explore",
},
],
},
{
versionName: `${t("cards.defaultImages.x86_64.r8.versionName")}`,
versionId: "rocky-8",
currentVersion: "v8.9",
plannedEol: `${t("cards.defaultImages.x86_64.r8.plannedEol")}`,
downloadOptions: [
{
label: `${t("cards.container.downloadOptions.fullImage")}`,
link: "https://hub.docker.com/layers/library/rockylinux/8/images/sha256-be879ad24fd5387ed135b99ebf0622c323afab20ff7f1967d6f06e5dbf07ee31?context=explore",
},
{
label: `${t("cards.container.downloadOptions.minimalImage")}`,
link: "https://hub.docker.com/layers/library/rockylinux/8-minimal/images/sha256-46c797fad395827bf7d861a3c1c5b87c4e737ea1b6df13da58ee7a3478065bc5?context=explore",
},
],
},
]}
/>
</div>
</TabsContent>
<TabsContent value="ppc64le">
Expand Down Expand Up @@ -421,6 +501,30 @@ const DownloadPage = () => {
},
]}
/>
<DefaultImageCard
title={t("cards.container.title")}
titleTooltip={false}
titleTooltipButtonLink=""
titleTooltipButtonLabel=""
versions={[
{
versionName: `${t("cards.defaultImages.x86_64.r9.versionName")}`,
versionId: "rocky-9",
currentVersion: "v9.3",
plannedEol: `${t("cards.defaultImages.x86_64.r9.plannedEol")}`,
downloadOptions: [
{
label: `${t("cards.container.downloadOptions.fullImage")}`,
link: "https://hub.docker.com/layers/library/rockylinux/9/images/sha256-200abd84e3fdd2b9b691f5ac4630dbb21837a4f7e0edf4424b7a08d81be3805c?context=explore",
},
{
label: `${t("cards.container.downloadOptions.minimalImage")}`,
link: "https://hub.docker.com/layers/library/rockylinux/9-minimal/images/sha256-e64e70d4fe1d619b45f1dff7948d8c4cb7840ddce3015cd64890f3ea70a475bd?context=explore",
},
],
},
]}
/>
</div>
</TabsContent>
<TabsContent value="s390x">
Expand Down Expand Up @@ -510,6 +614,30 @@ const DownloadPage = () => {
},
]}
/>
<DefaultImageCard
title={t("cards.container.title")}
titleTooltip={false}
titleTooltipButtonLink=""
titleTooltipButtonLabel=""
versions={[
{
versionName: `${t("cards.defaultImages.x86_64.r9.versionName")}`,
versionId: "rocky-9",
currentVersion: "v9.3",
plannedEol: `${t("cards.defaultImages.x86_64.r9.plannedEol")}`,
downloadOptions: [
{
label: `${t("cards.container.downloadOptions.fullImage")}`,
link: "https://hub.docker.com/layers/library/rockylinux/9/images/sha256-e4e211cc4ed838ab9842b9243e0e969defcd83e07c52e2f6cded0e9438a3fecd?context=explore",
},
{
label: `${t("cards.container.downloadOptions.minimalImage")}`,
link: "https://hub.docker.com/layers/library/rockylinux/9-minimal/images/sha256-224e0c52f257564a4dcaac65a8e0057714b6192b1fad5674adef5884f0f64437?context=explore",
},
],
},
]}
/>
</div>
</TabsContent>
</Tabs>
Expand Down
13 changes: 11 additions & 2 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,13 @@
"aarch64": "ARM (aarch64)",
"ppc64le": "PowerPC (ppc64le)",
"s390x": "IBM Z (s390x)",
"container": "Docker (OCI)",
"shortened": {
"x86_64": "x86_64",
"aarch64": "aarch64",
"ppc64le": "ppc64le",
"s390x": "s390x"
"s390x": "s390x",
"container": "OCI"
}
},
"selectVersion": "Select a version:",
Expand Down Expand Up @@ -207,7 +209,7 @@
"cloudProviders": {
"title": "Cloud Providers",
"aws": {
"name": "Amazon Web Services",
"name": "AWS AMI",
"drawerTitle": "AWS AMI Images",
"table": {
"version": "Version",
Expand All @@ -223,6 +225,13 @@
"downloadOptions": {
"qcow2": "QCOW2 Image"
}
},
"container": {
"title": "Docker (OCI) Images",
"downloadOptions": {
"fullImage": "Full Image",
"minimalImage": "Minimal Image"
}
}
}
}
Expand Down

0 comments on commit 269102e

Please sign in to comment.