DRAFT :: Enhancement: solve issue #29255 - Change docker image from CentOS to Ubuntu20.04 #29374
DRAFT :: Enhancement: solve issue #29255 - Change docker image from CentOS to Ubuntu20.04 #29374dsmello wants to merge 3 commits intoelastic:masterfrom
Conversation
Changes Notes: To migratre from CentOS to Ubuntu, the following changes are needed: - atk -> libatk1.0-0 - gtk -> GTK3 is installed by default REMOVED - gdk -> libgdk-pixbuf2.0-dev - xrandr -> x11-xserver-utils - pango -> libpango-1.0-0 - libXcomposite -> libxcomposite-dev - libXcursor -> libxcursor-dev - libXdamage -> libxdamage-dev - libXext -> libxext-dev - libXi -> libxi-dev - libXtst -> libxtst-dev - libXScrnSaver -> libxss-dev - libXrandr -> libxrandr-dev - GConf2 -> libgconf2-4 - alsa-lib -> libasound2 - gtk3 -> GTK3 is installed by default REMOVED - ipa-gothic-fonts -> fonts-ipafont-gothic - xorg-x11-fonts-100dpi -> xfonts-100dpi - xorg-x11-fonts-75dpi -> xfonts-75dpi - xorg-x11-utils -> x11-utils - xorg-x11-fonts-cyrillic -> xfonts-cyrillic - xorg-x11-fonts-Type1 -> GET at xfonts-base - xorg-x11-fonts-misc -> xfonts-base
|
❌ Author of the following commits did not sign a Contributor Agreement: Please, read and sign the above mentioned agreement if you want to contribute to this project |
|
This pull request does not have a backport label. Could you fix it @dsmello? 🙏
NOTE: |
❕ Build Aborted
Expand to view the summary
Build stats
🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
| RUN for iter in {1..10}; do microdnf update -y && microdnf install -y shadow-utils jq && microdnf clean all && exit_code=0 && break || exit_code=$? && echo "microdnf error: retry $iter in 10s" && sleep 10; done; (exit $exit_code) | ||
| {{- else }} | ||
| # Installing jq needs to be installed after epel-release and cannot be in the same yum install command. | ||
| RUN case $(arch) in aarch64) YUM_FLAGS="-x bind-license";; esac; \ |
There was a problem hiding this comment.
The YUM_FLAGS was not requested when running ubuntu
| (exit $exit_code) | ||
| {{- end }} | ||
|
|
||
| ## Changes Notes: To migratre from CentOS to Ubuntu, the following changes are needed: |
There was a problem hiding this comment.
Those are all packages migrated from CentOs to Ubuntu related
There was a problem hiding this comment.
Is this temporarily for discussion or you plane to level this in here?
There was a problem hiding this comment.
Hello @ruflin, this is for temporary discussion, I'll try to find where I add them to a changelog for future notes. 😸
|
run elasticsearch-ci/docs |
|
/test |
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
| # alsa-lib -> libasound2 | ||
| # gtk3 -> GTK3 is installed by default REMOVED | ||
| # ipa-gothic-fonts -> fonts-ipafont-gothic | ||
| # xorg-x11-fonts-100dpi -> xfonts-100dpi |
There was a problem hiding this comment.
@jsoriano @andrewkroh Do you remember what requires the xorg dependencies?
There was a problem hiding this comment.
Blind guess: abrt-xorg.
The abrt-xorg service collects and processes information about crashes of the X.Org server.
There was a problem hiding this comment.
That must be a dependency required by Synthetics.
There was a problem hiding this comment.
Ah, I missed the part below that it is only included in the "complete" image. Good to know it is not in the standard image.
@andrewvc FYI
|
|
||
| RUN for iter in {1..10}; do \ | ||
| apt update -y && \ | ||
| apt install --no-install-recommends --yes jq && \ |
There was a problem hiding this comment.
You need to add DEBIAN_FRONTEND=noninteractive in front of the apt install command here.
So it should be come:
DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends --yes jq
| exit_code=0 && break || exit_code=$? && echo "yum error: retry $iter in 10s" && sleep 10; \ | ||
| RUN apt update -y && \ | ||
| for iter in {1..10}; do \ | ||
| apt install --no-install-recommends --yes libatk1.0-0 libgdk-pixbuf2.0-dev x11-xserver-utils libpango-1.0-0 libxcomposite-dev libxcursor-dev libxdamage-dev \ |
There was a problem hiding this comment.
Same here add the DEBIAN_FRONTEND=noninteractive
|
Closing in favor of #29681 |
What does this PR do?
Chage the docker image from CentOS to Ubuntu20.04 and update the RUN commands.
Why is it important?
Closes #29255
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Author's Checklist
How to test this PR locally
I don't know, will be tested at pipeline due the scale
Related issues