mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
feat(ec2): list SUSE and Red Hat family images in the image catalog (#6193)
The EC2 image catalog carries the SUSE family (SLES, SLES for SAP, SUSE Multi-Linux Manager and openSUSE Leap) and the Red Hat family (RHEL and Rocky Linux) under their publishers' owner ids. DescribeImages finds each by owner and name.
This commit is contained in:
1 parent
9e3413980e
commit
8d73535826
4 files changed
+248
-1
No files matched your search
@@ -74,6 +74,26 @@ metadata.
|
||||
| `ami-debian12` | | `public.ecr.aws/docker/library/debian:12` |
|
||||
| `ami-alpine` | | `public.ecr.aws/docker/library/alpine:latest` |
|
||||
| `ami-0abcdef1234567893` | | `public.ecr.aws/amazonlinux/amazonlinux:2023` |
|
||||
| `ami-opensuse-leap160` | | `registry.opensuse.org/opensuse/leap:16.0` |
|
||||
| `ami-sles15sp4-byos` | | `registry.suse.com/bci/bci-base:15.4` |
|
||||
| `ami-sles15sp5-byos` | | `registry.suse.com/bci/bci-base:15.5` |
|
||||
| `ami-sles15sp6-byos` | | `registry.suse.com/bci/bci-base:15.6` |
|
||||
| `ami-sles15sp7-byos` | | `registry.suse.com/bci/bci-base:15.7` |
|
||||
| `ami-sles12sp5-byos` | | `registry.suse.com/bci/bci-base:15.7` |
|
||||
| `ami-sles-sap15sp5` | | `registry.suse.com/bci/bci-base:15.5` |
|
||||
| `ami-smlm-server51-x86-64` | | `registry.suse.com/bci/bci-base:15.7` |
|
||||
| `ami-smlm-server51-arm64` | | `registry.suse.com/bci/bci-base:15.7` |
|
||||
| `ami-smlm-proxy51-x86-64` | | `registry.suse.com/bci/bci-base:15.7` |
|
||||
| `ami-smlm-proxy51-arm64` | | `registry.suse.com/bci/bci-base:15.7` |
|
||||
| `ami-sles12sp5` | | `registry.suse.com/bci/bci-base:15.7` |
|
||||
| `ami-sles15sp5` | | `registry.suse.com/bci/bci-base:15.5` |
|
||||
| `ami-sles15sp6` | | `registry.suse.com/bci/bci-base:15.6` |
|
||||
| `ami-sles15sp7` | | `registry.suse.com/bci/bci-base:15.7` |
|
||||
| `ami-sles160` | | `registry.suse.com/bci/bci-base:16.0` |
|
||||
| `ami-rocky9` | | `public.ecr.aws/docker/library/rockylinux:9` |
|
||||
| `ami-rocky10` | | `quay.io/rockylinux/rockylinux:10` |
|
||||
| `ami-rhel8` | | `registry.access.redhat.com/ubi8/ubi:8.10` |
|
||||
| `ami-rhel9` | | `registry.access.redhat.com/ubi9/ubi:9.5` |
|
||||
|
||||
Any unrecognized AMI ID (including real AWS AMI IDs like `ami-0abc12345678`) falls back to the catalog `defaultDockerImage` (`public.ecr.aws/amazonlinux/amazonlinux:2023` by default).
|
||||
|
||||
|
||||
@@ -128,3 +128,181 @@ images:
|
||||
architecture: x86_64
|
||||
platform: windows
|
||||
creationDate: "2023-04-12T00:00:00.000Z"
|
||||
|
||||
# SUSE and Red Hat family images under their publishers' owner ids. Each runs its family's
|
||||
# base container image, or the nearest one where the family publishes none.
|
||||
- imageId: ami-opensuse-leap160
|
||||
dockerImage: registry.opensuse.org/opensuse/leap:16.0
|
||||
name: openSUSE-Leap-16-0-v20260101-hvm-ssd-x86_64
|
||||
description: openSUSE Leap 16.0
|
||||
ownerId: "679593333241"
|
||||
imageOwnerAlias: aws-marketplace
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-sles15sp4-byos
|
||||
dockerImage: registry.suse.com/bci/bci-base:15.4
|
||||
name: suse-sles-15-sp4-byos-v20260101-hvm-ssd-x86_64
|
||||
description: SUSE Linux Enterprise Server 15 SP4 (BYOS)
|
||||
ownerId: "679593333241"
|
||||
imageOwnerAlias: aws-marketplace
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-sles15sp5-byos
|
||||
dockerImage: registry.suse.com/bci/bci-base:15.5
|
||||
name: suse-sles-15-sp5-byos-v20260101-hvm-ssd-x86_64
|
||||
description: SUSE Linux Enterprise Server 15 SP5 (BYOS)
|
||||
ownerId: "679593333241"
|
||||
imageOwnerAlias: aws-marketplace
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-sles15sp6-byos
|
||||
dockerImage: registry.suse.com/bci/bci-base:15.6
|
||||
name: suse-sles-15-sp6-byos-v20260101-hvm-ssd-x86_64
|
||||
description: SUSE Linux Enterprise Server 15 SP6 (BYOS)
|
||||
ownerId: "679593333241"
|
||||
imageOwnerAlias: aws-marketplace
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-sles15sp7-byos
|
||||
dockerImage: registry.suse.com/bci/bci-base:15.7
|
||||
name: suse-sles-15-sp7-byos-v20260101-hvm-ssd-x86_64
|
||||
description: SUSE Linux Enterprise Server 15 SP7 (BYOS)
|
||||
ownerId: "679593333241"
|
||||
imageOwnerAlias: aws-marketplace
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-sles12sp5-byos
|
||||
dockerImage: registry.suse.com/bci/bci-base:15.7
|
||||
name: suse-sles-12-sp5-byos-v20260101-hvm-ssd-x86_64
|
||||
description: SUSE Linux Enterprise Server 12 SP5 (BYOS)
|
||||
ownerId: "679593333241"
|
||||
imageOwnerAlias: aws-marketplace
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-sles-sap15sp5
|
||||
dockerImage: registry.suse.com/bci/bci-base:15.5
|
||||
name: suse-sles-sap-15-sp5-v20260101-hvm-ssd-x86_64
|
||||
description: SUSE Linux Enterprise Server for SAP 15 SP5
|
||||
ownerId: "679593333241"
|
||||
imageOwnerAlias: aws-marketplace
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-smlm-server51-x86-64
|
||||
dockerImage: registry.suse.com/bci/bci-base:15.7
|
||||
name: suse-multi-linux-manager-server-5-1-v1-ltd-x86_64
|
||||
description: SUSE Multi-Linux Manager Server 5.1
|
||||
ownerId: "679593333241"
|
||||
imageOwnerAlias: aws-marketplace
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-smlm-server51-arm64
|
||||
dockerImage: registry.suse.com/bci/bci-base:15.7
|
||||
name: suse-multi-linux-manager-server-5-1-v1-ltd-arm64
|
||||
description: SUSE Multi-Linux Manager Server 5.1
|
||||
ownerId: "679593333241"
|
||||
imageOwnerAlias: aws-marketplace
|
||||
architecture: arm64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-smlm-proxy51-x86-64
|
||||
dockerImage: registry.suse.com/bci/bci-base:15.7
|
||||
name: suse-multi-linux-manager-proxy-5-1-byos-v1-x86_64
|
||||
description: SUSE Multi-Linux Manager Proxy 5.1 (BYOS)
|
||||
ownerId: "679593333241"
|
||||
imageOwnerAlias: aws-marketplace
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-smlm-proxy51-arm64
|
||||
dockerImage: registry.suse.com/bci/bci-base:15.7
|
||||
name: suse-multi-linux-manager-proxy-5-1-byos-v1-arm64
|
||||
description: SUSE Multi-Linux Manager Proxy 5.1 (BYOS)
|
||||
ownerId: "679593333241"
|
||||
imageOwnerAlias: aws-marketplace
|
||||
architecture: arm64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-sles12sp5
|
||||
dockerImage: registry.suse.com/bci/bci-base:15.7
|
||||
name: suse-sles-12-sp5-v20260101-hvm-ssd-x86_64
|
||||
description: SUSE Linux Enterprise Server 12 SP5
|
||||
ownerId: "013907871322"
|
||||
imageOwnerAlias: amazon
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-sles15sp5
|
||||
dockerImage: registry.suse.com/bci/bci-base:15.5
|
||||
name: suse-sles-15-sp5-v20260101-hvm-ssd-x86_64
|
||||
description: SUSE Linux Enterprise Server 15 SP5
|
||||
ownerId: "013907871322"
|
||||
imageOwnerAlias: amazon
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-sles15sp6
|
||||
dockerImage: registry.suse.com/bci/bci-base:15.6
|
||||
name: suse-sles-15-sp6-v20260101-hvm-ssd-x86_64
|
||||
description: SUSE Linux Enterprise Server 15 SP6
|
||||
ownerId: "013907871322"
|
||||
imageOwnerAlias: amazon
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-sles15sp7
|
||||
dockerImage: registry.suse.com/bci/bci-base:15.7
|
||||
name: suse-sles-15-sp7-v20260101-hvm-ssd-x86_64
|
||||
description: SUSE Linux Enterprise Server 15 SP7
|
||||
ownerId: "013907871322"
|
||||
imageOwnerAlias: amazon
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-sles160
|
||||
dockerImage: registry.suse.com/bci/bci-base:16.0
|
||||
name: suse-sles-16-0-v20260101-hvm-ssd-x86_64
|
||||
description: SUSE Linux Enterprise Server 16.0
|
||||
ownerId: "013907871322"
|
||||
imageOwnerAlias: amazon
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-rocky9
|
||||
dockerImage: public.ecr.aws/docker/library/rockylinux:9
|
||||
name: Rocky-9-EC2-Base-9.6-20260101.0.x86_64
|
||||
description: Rocky Linux 9
|
||||
ownerId: "792107900819"
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-rocky10
|
||||
dockerImage: quay.io/rockylinux/rockylinux:10
|
||||
name: Rocky-10-EC2-Base-10.0-20260101.0.x86_64
|
||||
description: Rocky Linux 10
|
||||
ownerId: "792107900819"
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-rhel8
|
||||
dockerImage: registry.access.redhat.com/ubi8/ubi:8.10
|
||||
name: RHEL-8.10.0_HVM-20260101-x86_64-0-Hourly2-GP3
|
||||
description: Provided by Red Hat, Inc.
|
||||
ownerId: "309956199498"
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
|
||||
- imageId: ami-rhel9
|
||||
dockerImage: registry.access.redhat.com/ubi9/ubi:9.5
|
||||
name: RHEL-9.5.0_HVM-20260101-x86_64-0-Hourly2-GP3
|
||||
description: Provided by Red Hat, Inc.
|
||||
ownerId: "309956199498"
|
||||
architecture: x86_64
|
||||
creationDate: "2026-01-01T00:00:00.000Z"
|
||||
@@ -40,7 +40,27 @@ class Ec2ImageCatalogTest {
|
||||
"ami-ubuntu2404-cloud-arm64",
|
||||
"ami-debian12",
|
||||
"ami-alpine",
|
||||
"ami-0abcdef1234567893"), imageIds);
|
||||
"ami-0abcdef1234567893",
|
||||
"ami-opensuse-leap160",
|
||||
"ami-sles15sp4-byos",
|
||||
"ami-sles15sp5-byos",
|
||||
"ami-sles15sp6-byos",
|
||||
"ami-sles15sp7-byos",
|
||||
"ami-sles12sp5-byos",
|
||||
"ami-sles-sap15sp5",
|
||||
"ami-smlm-server51-x86-64",
|
||||
"ami-smlm-server51-arm64",
|
||||
"ami-smlm-proxy51-x86-64",
|
||||
"ami-smlm-proxy51-arm64",
|
||||
"ami-sles12sp5",
|
||||
"ami-sles15sp5",
|
||||
"ami-sles15sp6",
|
||||
"ami-sles15sp7",
|
||||
"ami-sles160",
|
||||
"ami-rocky9",
|
||||
"ami-rocky10",
|
||||
"ami-rhel8",
|
||||
"ami-rhel9"), imageIds);
|
||||
|
||||
assertTrue(imageCatalog.findByIdOrAlias("ami-amazonlinux2").isPresent());
|
||||
assertTrue(imageCatalog.findByIdOrAlias("ami-amazonlinux2023").isPresent());
|
||||
|
||||
@@ -8,6 +8,8 @@ import org.junit.jupiter.api.MethodOrderer;
|
||||
import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.CsvSource;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
@@ -793,6 +795,33 @@ class Ec2IntegrationTest {
|
||||
.body("DescribeImagesResponse.imagesSet.item.architecture", everyItem(equalTo("arm64")));
|
||||
}
|
||||
|
||||
@ParameterizedTest
|
||||
@Order(9)
|
||||
@CsvSource({
|
||||
"679593333241, openSUSE-Leap-16-0-*, ami-opensuse-leap160",
|
||||
"679593333241, suse-sles-15-sp6-byos-v*-hvm-ssd-x86_64, ami-sles15sp6-byos",
|
||||
"013907871322, suse-sles-15-sp6-v*-hvm-ssd-x86_64, ami-sles15sp6",
|
||||
"792107900819, Rocky-9-EC2-Base-9*, ami-rocky9",
|
||||
"309956199498, RHEL-9.5.0_HVM-*, ami-rhel9"
|
||||
})
|
||||
void describeImagesFindsSuseAndRedHatFamilyImagesByOwnerAndName(String owner, String name, String imageId) {
|
||||
given()
|
||||
.formParam("Action", "DescribeImages")
|
||||
.formParam("Owner.1", owner)
|
||||
.formParam("Filter.1.Name", "name")
|
||||
.formParam("Filter.1.Value.1", name)
|
||||
.formParam("Filter.2.Name", "architecture")
|
||||
.formParam("Filter.2.Value.1", "x86_64")
|
||||
.header("Authorization", AUTH_HEADER)
|
||||
.when()
|
||||
.post("/")
|
||||
.then()
|
||||
.statusCode(200)
|
||||
.body("DescribeImagesResponse.imagesSet.item.size()", equalTo(1))
|
||||
.body("DescribeImagesResponse.imagesSet.item.imageId", equalTo(imageId))
|
||||
.body("DescribeImagesResponse.imagesSet.item.imageOwnerId", equalTo(owner));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(9)
|
||||
void describeImagesWithAl2023Arm64Filters() {
|
||||
|
||||
Reference in new issue
Block a user