leborchuk commented on PR #13:
URL:
https://github.com/apache/cloudberry-devops-release/pull/13#issuecomment-2778221268
> Have you considered slimming the image using ubuntu:jammy-minimal?
There is no jammy-minimal on docker.io )
```
skopeo list-tags docker://docker.io/library/ubuntu
{
"Repository": "docker.io/library/ubuntu",
"Tags": [
...
"22.04",
"22.10",
...
"jammy",
"jammy-20211029",
"jammy-20211122",
"jammy-20220101",
"jammy-20220130",
"jammy-20220301",
"jammy-20220315",
"jammy-20220404",
"jammy-20220421",
"jammy-20220428",
"jammy-20220531",
"jammy-20220801",
"jammy-20220815",
"jammy-20221003",
"jammy-20221020",
"jammy-20221101",
"jammy-20221130",
"jammy-20230126",
"jammy-20230301",
"jammy-20230308",
"jammy-20230425",
"jammy-20230522",
"jammy-20230605",
"jammy-20230624",
"jammy-20230804",
"jammy-20230816",
"jammy-20230916",
"jammy-20231004",
"jammy-20231128",
"jammy-20231211.1",
"jammy-20240111",
"jammy-20240125",
"jammy-20240212",
"jammy-20240227",
"jammy-20240405",
"jammy-20240416",
"jammy-20240427",
"jammy-20240530",
"jammy-20240627.1",
"jammy-20240808",
"jammy-20240911.1",
"jammy-20250126",
```
The reason is that there is no need for jammy-minimal, here is the size of
the images (not all, but interested ones)
```
xifos@xifos-dev-bionic:~/git/cloudberry-devops/images/docker/cbdb/test/ubuntu22.04$
docker images
REPOSITORY TAG IMAGE ID CREATED
SIZE
ubuntu 22.04 a24be041d957 2 months ago
77.9MB
ubuntu jammy a24be041d957 2 months ago
77.9MB
ubuntu 22.10 692eb4a905c0 21 months ago
70.3MB
```
Compare it with the build/test container size:
```
xifos@xifos-dev-bionic:~/git/cloudberry-devops/images/docker/cbdb/test/ubuntu22.04$
docker images
REPOSITORY TAG IMAGE ID CREATED
SIZE
cloudberry-db-build-env latest 693ae32596fc 20 minutes ago
1.43GB
cloudberry-db-test-env latest 62f2e7df33d6 About an hour ago
286MB
cbdb-main rockylinux9 7ee3e45c3ee1 4 months ago
1.89GB
rockylinux/rockylinux 9 bb8a97547d22 4 months ago
234MB
```
When compared to the size of a build container, a difference of a few
megabytes is negligible.
Guys here
https://askubuntu.com/questions/1455012/where-can-i-find-ubuntu-minimal-22-04-docker-image
also came to the similar conclusion.
According to the https://canonical.com/blog/minimal-ubuntu-released minimal
image actually is 22.04 LTS image
They sad:
> Tiny container base image
> The 29MB Docker image for Minimal Ubuntu 18.04 LTS serves as a highly
efficient container starting point, and allows developers to deploy multicloud
containerized applications faster. For modern Docker workflows with Kubernetes,
the minimal Ubuntu image provides a balance of compatibility, familiarity,
performance and size. This is the standard Ubuntu 18.04 LTS image on the Docker
Hub.
So I switched from jammy to 22.04 base image (but they have the same image
id, I don't think it matters)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]