Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile for rockylinux-9 #54

Merged
merged 2 commits into from
May 19, 2023

Conversation

kun-lu20
Copy link
Contributor

This PR aims to add a centos-stream9 based Dockerfile to this repository since the existing RHEL clone based Dockerfiles don't support s390x cpu.

By using quay.io/centos/centos:stream9 as the base image, mozjs78-devel can be easily installed via yum, which solves the issue discussed in apache/couchdb#4154.

After applying the code change, couchdbci-centos:9-erlang-24.3.4.10 s390x docker image could be successfully built on an Intel VM via qemu. This change works for other archs as well.

@kun-lu20
Copy link
Contributor Author

Below is the multi-arch image build log:

root@fellator1:~/couchdb-ci# ./build.sh buildx-platform centos-9
stream9: Pulling from centos/centos
Digest: sha256:06cfbf69d99f47f45f327d18fec086509ca0c74afdb178fb8c5bc45184454cc0
Status: Image is up to date for quay.io/centos/centos:stream9
quay.io/centos/centos:stream9
[+] Building 4609.9s (52/52) FINISHED                                                                                                                             
 => [internal] load build definition from centos-9                                                                                                           0.1s
 => => transferring dockerfile: 2.33kB                                                                                                                       0.0s
 => [internal] load .dockerignore                                                                                                                            0.1s
 => => transferring context: 111B                                                                                                                            0.0s
 => [linux/s390x internal] load metadata for docker.io/library/eclipse-temurin:11                                                                            4.4s
 => [linux/ppc64le internal] load metadata for docker.io/library/eclipse-temurin:11                                                                          4.3s
 => [linux/s390x internal] load metadata for quay.io/centos/centos:stream9                                                                                   4.5s
 => [linux/arm64 internal] load metadata for docker.io/library/eclipse-temurin:11                                                                            4.3s
 => [linux/arm64 internal] load metadata for quay.io/centos/centos:stream9                                                                                   4.3s
 => [linux/amd64 internal] load metadata for docker.io/library/eclipse-temurin:11                                                                            4.3s
 => [linux/ppc64le internal] load metadata for quay.io/centos/centos:stream9                                                                                 4.3s
 => [linux/amd64 internal] load metadata for quay.io/centos/centos:stream9                                                                                   4.3s
 => [linux/ppc64le stage-0 1/9] FROM quay.io/centos/centos:stream9@sha256:06cfbf69d99f47f45f327d18fec086509ca0c74afdb178fb8c5bc45184454cc0                   4.1s
 => => resolve quay.io/centos/centos:stream9@sha256:06cfbf69d99f47f45f327d18fec086509ca0c74afdb178fb8c5bc45184454cc0                                         0.1s
 => => sha256:acbfed5a963fc10f7b97a2519a1851bcff06176f9725f10ff1c1e0fc046910b8 62.62MB / 62.62MB                                                             2.2s
 => => extracting sha256:acbfed5a963fc10f7b97a2519a1851bcff06176f9725f10ff1c1e0fc046910b8                                                                    4.1s
 => [internal] load build context                                                                                                                            0.3s
 => => transferring context: 44.26kB                                                                                                                         0.0s
 => [linux/arm64 stage-0 1/9] FROM quay.io/centos/centos:stream9@sha256:06cfbf69d99f47f45f327d18fec086509ca0c74afdb178fb8c5bc45184454cc0                     3.5s
 => => resolve quay.io/centos/centos:stream9@sha256:06cfbf69d99f47f45f327d18fec086509ca0c74afdb178fb8c5bc45184454cc0                                         0.2s
 => => sha256:4be61340d3b5aa5aa9de8a3941500a3441daa5f6975d8abde171cb8143450abe 55.84MB / 55.84MB                                                             2.0s
 => => extracting sha256:4be61340d3b5aa5aa9de8a3941500a3441daa5f6975d8abde171cb8143450abe                                                                    3.5s
 => FROM docker.io/library/eclipse-temurin:11@sha256:ca0b84e21fd1cd10341f28c0b431c60f1e0ad631d2d691f6ee9ddeeb3ed2099b                                        0.2s
 => => resolve docker.io/library/eclipse-temurin:11@sha256:ca0b84e21fd1cd10341f28c0b431c60f1e0ad631d2d691f6ee9ddeeb3ed2099b                                  0.2s
 => => sha256:8155e7321f13547f8d4bdfc62e7dc04aae6e3e066ba1bbb1bf4b72769fd935d8 176B / 176B                                                                   0.4s
 => => sha256:8997e04dbe1638ee26389666b46b587fa624baf176a5dc5d0e1ea5e37dda5e13 13.32MB / 13.32MB                                                             0.9s
 => => sha256:db2d6e6a60359cff39933855d5a870568a10c8155592b4ed7f61c5ae8c356a4c 180.54MB / 180.54MB                                                           4.2s
 => => sha256:f6a63d8cd043e76933823b18cbb7057a55bb4d66d64639c81e15a4700c101582 35.71MB / 35.71MB                                                             1.4s
 => => extracting sha256:f6a63d8cd043e76933823b18cbb7057a55bb4d66d64639c81e15a4700c101582                                                                    1.9s
 => => extracting sha256:8997e04dbe1638ee26389666b46b587fa624baf176a5dc5d0e1ea5e37dda5e13                                                                    1.2s
 => => extracting sha256:db2d6e6a60359cff39933855d5a870568a10c8155592b4ed7f61c5ae8c356a4c                                                                    3.7s
 => => extracting sha256:8155e7321f13547f8d4bdfc62e7dc04aae6e3e066ba1bbb1bf4b72769fd935d8                                                                    0.2s
 => FROM docker.io/library/eclipse-temurin:11@sha256:ca0b84e21fd1cd10341f28c0b431c60f1e0ad631d2d691f6ee9ddeeb3ed2099b                                        0.1s
 => => resolve docker.io/library/eclipse-temurin:11@sha256:ca0b84e21fd1cd10341f28c0b431c60f1e0ad631d2d691f6ee9ddeeb3ed2099b                                  0.2s
 => => sha256:81c802eddb5d5cb0f6ec07e32a6c092dda066b75d9d1c86574e22591a0abcad0 173B / 173B                                                                   0.2s
 => => sha256:a0d15bf58470b4715f865202619881f85cfc50649707d9013c4a15c562ab654b 195.33MB / 195.33MB                                                           3.7s
 => => sha256:f3f60f415e9a03eed88bd5dd5268c841cde08dacf16911a3ef1e4e0fcdd76568 28.39MB / 28.39MB                                                             0.7s
 => => sha256:89fb3595122d1cb6fffe722e2624c3c89b00776b393256a5444af56ceda691cf 12.46MB / 12.46MB                                                             0.6s
 => => extracting sha256:f3f60f415e9a03eed88bd5dd5268c841cde08dacf16911a3ef1e4e0fcdd76568                                                                    1.7s
 => => extracting sha256:89fb3595122d1cb6fffe722e2624c3c89b00776b393256a5444af56ceda691cf                                                                    0.9s
 => => extracting sha256:a0d15bf58470b4715f865202619881f85cfc50649707d9013c4a15c562ab654b                                                                    3.4s
 => => extracting sha256:81c802eddb5d5cb0f6ec07e32a6c092dda066b75d9d1c86574e22591a0abcad0                                                                    0.1s
 => [linux/s390x stage-0 1/9] FROM quay.io/centos/centos:stream9@sha256:06cfbf69d99f47f45f327d18fec086509ca0c74afdb178fb8c5bc45184454cc0                     3.5s
 => => resolve quay.io/centos/centos:stream9@sha256:06cfbf69d99f47f45f327d18fec086509ca0c74afdb178fb8c5bc45184454cc0                                         0.2s
 => => sha256:d07f758a7527bc8eea64beb5745111bfefd0c668552f336aa544b1b6aa3bf0c6 55.86MB / 55.86MB                                                             2.5s
 => => extracting sha256:d07f758a7527bc8eea64beb5745111bfefd0c668552f336aa544b1b6aa3bf0c6                                                                    3.5s
 => FROM docker.io/library/eclipse-temurin:11@sha256:ca0b84e21fd1cd10341f28c0b431c60f1e0ad631d2d691f6ee9ddeeb3ed2099b                                        0.0s
 => => resolve docker.io/library/eclipse-temurin:11@sha256:ca0b84e21fd1cd10341f28c0b431c60f1e0ad631d2d691f6ee9ddeeb3ed2099b                                  0.2s
 => => sha256:22b05e40200f84a1424451f7fc702f952aa93b2d1e26ed0190e746d382afcf26 172B / 172B                                                                   0.2s
 => => sha256:cac3945e4829e171ad46d9941a8e0f7a8e8336aa78538aa35e78723f8639bec2 12.55MB / 12.55MB                                                             0.8s
 => => sha256:78722793f0008ff8422830a0106f21e8bc168fb9aac12cc99fb223799951759e 28.65MB / 28.65MB                                                             3.1s
 => => sha256:1e3c1a8597a7ae0e6221f7b5a1c1cde4d1f94dbed3fe81a62985f8c1a61000a1 172.00MB / 172.00MB                                                           3.8s
 => => extracting sha256:78722793f0008ff8422830a0106f21e8bc168fb9aac12cc99fb223799951759e                                                                    1.8s
 => => extracting sha256:cac3945e4829e171ad46d9941a8e0f7a8e8336aa78538aa35e78723f8639bec2                                                                    1.0s
 => => extracting sha256:1e3c1a8597a7ae0e6221f7b5a1c1cde4d1f94dbed3fe81a62985f8c1a61000a1                                                                    2.8s
 => => extracting sha256:22b05e40200f84a1424451f7fc702f952aa93b2d1e26ed0190e746d382afcf26                                                                    0.0s
 => [linux/amd64 stage-0 1/9] FROM quay.io/centos/centos:stream9@sha256:06cfbf69d99f47f45f327d18fec086509ca0c74afdb178fb8c5bc45184454cc0                     3.7s
 => => resolve quay.io/centos/centos:stream9@sha256:06cfbf69d99f47f45f327d18fec086509ca0c74afdb178fb8c5bc45184454cc0                                         0.2s
 => => sha256:fce14b4226f83f85cd42d871d394bf0faac03b5d4ea412786489579acf6691d4 57.86MB / 57.86MB                                                             2.1s
 => => extracting sha256:fce14b4226f83f85cd42d871d394bf0faac03b5d4ea412786489579acf6691d4                                                                    3.7s
 => FROM docker.io/library/eclipse-temurin:11@sha256:ca0b84e21fd1cd10341f28c0b431c60f1e0ad631d2d691f6ee9ddeeb3ed2099b                                        0.1s
 => => resolve docker.io/library/eclipse-temurin:11@sha256:ca0b84e21fd1cd10341f28c0b431c60f1e0ad631d2d691f6ee9ddeeb3ed2099b                                  0.2s
 => => sha256:00c7d406486b30dd399da8c9274b671589aa514d03cd6d60a6bac92f34b8ad17 173B / 173B                                                                   0.1s
 => => sha256:47b2ae38d777aa426d64784e1e39103a1ee45b03af552058a8df3422b0dcfa7f 198.55MB / 198.55MB                                                           3.7s
 => => sha256:1bc677758ad7fa4503417ae5be18809c5a8679b5b36fcd1464d5a8e41cb13305 30.43MB / 30.43MB                                                             0.9s
 => => sha256:458b02b5411a07f3b354cde2b461caffc1bb184a3413b5736a9e67ee87cb28b2 12.50MB / 12.50MB                                                             0.4s
 => => extracting sha256:1bc677758ad7fa4503417ae5be18809c5a8679b5b36fcd1464d5a8e41cb13305                                                                    1.4s
 => => extracting sha256:458b02b5411a07f3b354cde2b461caffc1bb184a3413b5736a9e67ee87cb28b2                                                                    1.0s
 => => extracting sha256:47b2ae38d777aa426d64784e1e39103a1ee45b03af552058a8df3422b0dcfa7f                                                                    3.4s
 => => extracting sha256:00c7d406486b30dd399da8c9274b671589aa514d03cd6d60a6bac92f34b8ad17                                                                    0.1s
 => [linux/ppc64le stage-0 2/9] COPY --from=eclipse-temurin:11 /opt/java/openjdk /opt/java/openjdk                                                           1.4s
 => [linux/s390x stage-0 2/9] COPY --from=eclipse-temurin:11 /opt/java/openjdk /opt/java/openjdk                                                             0.6s
 => [linux/ppc64le stage-0 3/9] RUN groupadd --gid 910 jenkins;   useradd --uid 910 --gid jenkins --create-home jenkins                                      0.8s
 => [linux/s390x stage-0 3/9] RUN groupadd --gid 910 jenkins;   useradd --uid 910 --gid jenkins --create-home jenkins                                        0.6s
 => [linux/s390x stage-0 4/9] ADD --chown=root:root bin /root/couchdb-ci/bin/                                                                                0.1s
 => [linux/ppc64le stage-0 4/9] ADD --chown=root:root bin /root/couchdb-ci/bin/                                                                              0.1s
 => [linux/s390x stage-0 5/9] ADD --chown=root:root files /root/couchdb-ci/files/                                                                            0.1s
 => [linux/arm64 stage-0 2/9] COPY --from=eclipse-temurin:11 /opt/java/openjdk /opt/java/openjdk                                                             0.2s
 => [linux/ppc64le stage-0 5/9] ADD --chown=root:root files /root/couchdb-ci/files/                                                                          0.1s
 => [linux/s390x stage-0 6/9] RUN mkdir -p /usr/src/couchdb;   chown -R jenkins:jenkins /usr/src/couchdb                                                     0.4s
 => [linux/arm64 stage-0 3/9] RUN groupadd --gid 910 jenkins;   useradd --uid 910 --gid jenkins --create-home jenkins                                        0.7s
 => [linux/ppc64le stage-0 6/9] RUN mkdir -p /usr/src/couchdb;   chown -R jenkins:jenkins /usr/src/couchdb                                                   0.5s
 => [linux/s390x stage-0 7/9] RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/local.conf                                                                       0.2s
 => [linux/ppc64le stage-0 7/9] RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/local.conf                                                                     0.3s
 => [linux/s390x stage-0 8/9] RUN ERLANGVERSION=24.3.4.10   ELIXIRVERSION=v1.13.4   NODEVERSION=14   /root/couchdb-ci/bin/install-dependencies.sh js erl  4114.2s
 => [linux/arm64 stage-0 4/9] ADD --chown=root:root bin /root/couchdb-ci/bin/                                                                                0.1s
 => [linux/arm64 stage-0 5/9] ADD --chown=root:root files /root/couchdb-ci/files/                                                                            0.1s
 => [linux/amd64 stage-0 2/9] COPY --from=eclipse-temurin:11 /opt/java/openjdk /opt/java/openjdk                                                             0.2s
 => [linux/ppc64le stage-0 8/9] RUN ERLANGVERSION=24.3.4.10   ELIXIRVERSION=v1.13.4   NODEVERSION=14   /root/couchdb-ci/bin/install-dependencies.sh js e  4419.6s
 => [linux/arm64 stage-0 6/9] RUN mkdir -p /usr/src/couchdb;   chown -R jenkins:jenkins /usr/src/couchdb                                                     0.5s
 => [linux/amd64 stage-0 3/9] RUN groupadd --gid 910 jenkins;   useradd --uid 910 --gid jenkins --create-home jenkins                                        0.2s
 => [linux/amd64 stage-0 4/9] ADD --chown=root:root bin /root/couchdb-ci/bin/                                                                                0.1s
 => [linux/amd64 stage-0 5/9] ADD --chown=root:root files /root/couchdb-ci/files/                                                                            0.1s
 => [linux/amd64 stage-0 6/9] RUN mkdir -p /usr/src/couchdb;   chown -R jenkins:jenkins /usr/src/couchdb                                                     0.2s
 => [linux/arm64 stage-0 7/9] RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/local.conf                                                                       0.2s
 => [linux/amd64 stage-0 7/9] RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/local.conf                                                                       0.2s
 => [linux/arm64 stage-0 8/9] RUN ERLANGVERSION=24.3.4.10   ELIXIRVERSION=v1.13.4   NODEVERSION=14   /root/couchdb-ci/bin/install-dependencies.sh js erl  4221.3s
 => [linux/amd64 stage-0 8/9] RUN ERLANGVERSION=24.3.4.10   ELIXIRVERSION=v1.13.4   NODEVERSION=14   /root/couchdb-ci/bin/install-dependencies.sh js erla  469.2s
 => [linux/amd64 stage-0 9/9] RUN echo "jenkins ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/jenkins                                                            0.7s
 => [linux/s390x stage-0 9/9] RUN echo "jenkins ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/jenkins                                                            0.7s
 => [linux/arm64 stage-0 9/9] RUN echo "jenkins ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/jenkins                                                            0.7s
 => [linux/ppc64le stage-0 9/9] RUN echo "jenkins ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/jenkins                                                          0.8s
 => exporting to image                                                                                                                                     170.0s
 => => exporting layers                                                                                                                                    158.6s
 => => exporting manifest sha256:0f096ae5a46b41063d8834faab77c7d949a58f187027fdfa7e962913d8044699                                                            0.0s
 => => exporting config sha256:56fc21dfeb9a382f74d7c8caa4f3da2d0a808552c7fbc345585c6f0823fe2833                                                              0.0s
 => => exporting manifest sha256:5ddeb854fa294e6534a54266dc7b9418d82701de5030b99c7287dc0e1645f96f                                                            0.0s
 => => exporting config sha256:d991e358794a291093bd21280a7624ae283b98c047b3bf7e47f9dc2599c3ef55                                                              0.0s
 => => exporting manifest sha256:bce89f8cb36c53c04a8b22a6998e1007e4790230b1e03fba6baf9306fcebcb9e                                                            0.0s
 => => exporting config sha256:c6d6a6226e317e35d0190cb749910229e1d4e54e1bb516980f3e49f3c7c39fdd                                                              0.0s
 => => exporting manifest sha256:9462c1e71cbf487aff94989a9625dd2483284ac898177cda093f10f4793fbff1                                                            0.0s
 => => exporting config sha256:967fc09080d7d5175220aced3a6b49971ac76090f60fa04aff207af8b989de93                                                              0.0s
 => => exporting manifest list sha256:d4768437ee612880a99abfe2335dad2b3a73a20653632bf240132b29628b7f17                                                       0.0s
 => => pushing layers                                                                                                                                       11.2s
 => => pushing manifest for localhost:5000/apache/couchdbci-centos:9-erlang-24.3.4.10@sha256:d4768437ee612880a99abfe2335dad2b3a73a20653632bf240132b29628b7f  0.1s

@nickva
Copy link
Contributor

nickva commented May 18, 2023

Thanks for taking a look, @kun-lu20.

  • It's strange that mozjs78-devel appeared in CentOS 9 stream. RHEL9 base, for all I know, doesn't provide it. I bet it comes from the EPEL repo. We use that for some build tools, so it might be brought in that way. That could still work, though. We would just have to update our documentation letting users know that RHEL 9 clones EPEL repo would be a dependency. In some situation I suspect that might not be a viable situation as EPEL may not be an approved additional repo for many enterprise customers.

  • Unfortunately CentOS Stream 9 would not work for us. Apache CouchDB users would probably want an RHEL-exact clone which, I believe, CentOS 9 isn't. Since we already use Rocky Linux 8, would it be possible to use Rocky Linux 9? (The docker registry path still has centos in the name, that's just to avoid having yet another path separate for 7 and 8 RHEL clones. In the future we might switch that to rpmos or rocky or something like that).

  • We haven't thought too hard about Rocky vs AlmaLinux. Either could work, so if some reason Rocky doesn't work or doesn't support some feature we need could try using AlmaLinux.

@nickva
Copy link
Contributor

nickva commented May 18, 2023

Confirmed that mozjs78 is in EPEL and we can use that with Rocky 9

% docker run -it rockylinux:9
[root@... /]# export VERSION_ID=9
[root@... /]# yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-${VERSION_ID}.noarch.rpm
...
[root@... /]# yum install mozjs78-devel
...
Installed:
  libicu-67.1-9.el9.x86_64         libpkgconf-1.7.3-10.el9.x86_64           mozjs78-78.15.0-8.el9.x86_64   mozjs78-devel-78.15.0-8.el9.x86_64   pkgconf-1.7.3-10.el9.x86_64
  pkgconf-m4-1.7.3-10.el9.noarch   pkgconf-pkg-config-1.7.3-10.el9.x86_64

Complete!

@kun-lu20
Copy link
Contributor Author

kun-lu20 commented May 18, 2023

Hi @nickva ,

You're welcome. Thanks for your quick response and detailed explanation!

Sure, we can use Rocky 9. I just tried rockylinux:9 and almalinux:9 and found that they only lack one package help2man. However, on Rocky 9 we can install it via dnf --enablerepo=crb install help2man from CRB repo.

I'll update the PR to use rockylinux:9 as the base image and re-build the multi-arch couchdbci image.

Thanks again!

@kun-lu20
Copy link
Contributor Author

Base image of RHEL clone 9 changed to rockylinux:9. Below is the multi-arch couchdbci image build log:

root@fellator1:~/couchdb-ci# ./build.sh buildx-platform rockylinux-9
9: Pulling from library/rockylinux
Digest: sha256:972a6b9cec75b2f47bf0faa425135e1bdb9945306a22f26db0b3a4ee8a289687
Status: Image is up to date for rockylinux:9
docker.io/library/rockylinux:9
[+] Building 4761.6s (52/52) FINISHED                                                                                                                                                                                                  
 => [internal] load .dockerignore                                                                                                                                                                                                 0.0s
 => => transferring context: 111B                                                                                                                                                                                                 0.0s
 => [internal] load build definition from rockylinux-9                                                                                                                                                                            0.0s
 => => transferring dockerfile: 2.32kB                                                                                                                                                                                            0.0s
 => [linux/arm64 internal] load metadata for docker.io/library/eclipse-temurin:11                                                                                                                                                 0.7s
 => [linux/amd64 internal] load metadata for docker.io/library/eclipse-temurin:11                                                                                                                                                 0.8s
 => [linux/arm64 internal] load metadata for docker.io/library/rockylinux:9                                                                                                                                                       0.9s
 => [linux/amd64 internal] load metadata for docker.io/library/rockylinux:9                                                                                                                                                       0.9s
 => [linux/s390x internal] load metadata for docker.io/library/rockylinux:9                                                                                                                                                       0.7s
 => [linux/s390x internal] load metadata for docker.io/library/eclipse-temurin:11                                                                                                                                                 0.7s
 => [linux/ppc64le internal] load metadata for docker.io/library/eclipse-temurin:11                                                                                                                                               0.8s
 => [linux/ppc64le internal] load metadata for docker.io/library/rockylinux:9                                                                                                                                                     0.7s
 => [internal] load build context                                                                                                                                                                                                 0.0s
 => => transferring context: 6.13kB                                                                                                                                                                                               0.0s
 => CACHED [linux/ppc64le stage-0 1/9] FROM docker.io/library/rockylinux:9@sha256:972a6b9cec75b2f47bf0faa425135e1bdb9945306a22f26db0b3a4ee8a289687                                                                                0.0s
 => => resolve docker.io/library/rockylinux:9@sha256:972a6b9cec75b2f47bf0faa425135e1bdb9945306a22f26db0b3a4ee8a289687                                                                                                             0.1s
 => CACHED FROM docker.io/library/eclipse-temurin:11@sha256:ca0b84e21fd1cd10341f28c0b431c60f1e0ad631d2d691f6ee9ddeeb3ed2099b                                                                                                      0.0s
 => => resolve docker.io/library/eclipse-temurin:11@sha256:ca0b84e21fd1cd10341f28c0b431c60f1e0ad631d2d691f6ee9ddeeb3ed2099b                                                                                                       0.2s
 => CACHED FROM docker.io/library/eclipse-temurin:11@sha256:ca0b84e21fd1cd10341f28c0b431c60f1e0ad631d2d691f6ee9ddeeb3ed2099b                                                                                                      0.0s
 => => resolve docker.io/library/eclipse-temurin:11@sha256:ca0b84e21fd1cd10341f28c0b431c60f1e0ad631d2d691f6ee9ddeeb3ed2099b                                                                                                       0.1s
 => CACHED [linux/arm64 stage-0 1/9] FROM docker.io/library/rockylinux:9@sha256:972a6b9cec75b2f47bf0faa425135e1bdb9945306a22f26db0b3a4ee8a289687                                                                                  0.0s
 => => resolve docker.io/library/rockylinux:9@sha256:972a6b9cec75b2f47bf0faa425135e1bdb9945306a22f26db0b3a4ee8a289687                                                                                                             0.2s
 => CACHED [linux/s390x stage-0 1/9] FROM docker.io/library/rockylinux:9@sha256:972a6b9cec75b2f47bf0faa425135e1bdb9945306a22f26db0b3a4ee8a289687                                                                                  0.0s
 => => resolve docker.io/library/rockylinux:9@sha256:972a6b9cec75b2f47bf0faa425135e1bdb9945306a22f26db0b3a4ee8a289687                                                                                                             0.2s
 => CACHED FROM docker.io/library/eclipse-temurin:11@sha256:ca0b84e21fd1cd10341f28c0b431c60f1e0ad631d2d691f6ee9ddeeb3ed2099b                                                                                                      0.0s
 => => resolve docker.io/library/eclipse-temurin:11@sha256:ca0b84e21fd1cd10341f28c0b431c60f1e0ad631d2d691f6ee9ddeeb3ed2099b                                                                                                       0.2s
 => CACHED [linux/amd64 stage-0 1/9] FROM docker.io/library/rockylinux:9@sha256:972a6b9cec75b2f47bf0faa425135e1bdb9945306a22f26db0b3a4ee8a289687                                                                                  0.0s
 => => resolve docker.io/library/rockylinux:9@sha256:972a6b9cec75b2f47bf0faa425135e1bdb9945306a22f26db0b3a4ee8a289687                                                                                                             0.2s
 => CACHED FROM docker.io/library/eclipse-temurin:11@sha256:ca0b84e21fd1cd10341f28c0b431c60f1e0ad631d2d691f6ee9ddeeb3ed2099b                                                                                                      0.0s
 => => resolve docker.io/library/eclipse-temurin:11@sha256:ca0b84e21fd1cd10341f28c0b431c60f1e0ad631d2d691f6ee9ddeeb3ed2099b                                                                                                       0.2s
 => [linux/ppc64le stage-0 2/9] COPY --from=eclipse-temurin:11 /opt/java/openjdk /opt/java/openjdk                                                                                                                                0.2s
 => [linux/amd64 stage-0 2/9] COPY --from=eclipse-temurin:11 /opt/java/openjdk /opt/java/openjdk                                                                                                                                  0.2s
 => [linux/arm64 stage-0 2/9] COPY --from=eclipse-temurin:11 /opt/java/openjdk /opt/java/openjdk                                                                                                                                  0.2s
 => [linux/s390x stage-0 2/9] COPY --from=eclipse-temurin:11 /opt/java/openjdk /opt/java/openjdk                                                                                                                                  0.2s
 => [linux/ppc64le stage-0 3/9] RUN groupadd --gid 910 jenkins;   useradd --uid 910 --gid jenkins --create-home jenkins                                                                                                           1.0s
 => [linux/amd64 stage-0 3/9] RUN groupadd --gid 910 jenkins;   useradd --uid 910 --gid jenkins --create-home jenkins                                                                                                             0.3s
 => [linux/arm64 stage-0 3/9] RUN groupadd --gid 910 jenkins;   useradd --uid 910 --gid jenkins --create-home jenkins                                                                                                             0.8s
 => [linux/s390x stage-0 3/9] RUN groupadd --gid 910 jenkins;   useradd --uid 910 --gid jenkins --create-home jenkins                                                                                                             0.7s
 => [linux/amd64 stage-0 4/9] ADD --chown=root:root bin /root/couchdb-ci/bin/                                                                                                                                                     0.1s
 => [linux/amd64 stage-0 5/9] ADD --chown=root:root files /root/couchdb-ci/files/                                                                                                                                                 0.1s
 => [linux/amd64 stage-0 6/9] RUN mkdir -p /usr/src/couchdb;   chown -R jenkins:jenkins /usr/src/couchdb                                                                                                                          0.2s
 => [linux/amd64 stage-0 7/9] RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/local.conf                                                                                                                                            0.2s
 => [linux/s390x stage-0 4/9] ADD --chown=root:root bin /root/couchdb-ci/bin/                                                                                                                                                     0.1s
 => [linux/s390x stage-0 5/9] ADD --chown=root:root files /root/couchdb-ci/files/                                                                                                                                                 0.1s
 => [linux/amd64 stage-0 8/9] RUN ERLANGVERSION=24.3.4.10   ELIXIRVERSION=v1.13.4   NODEVERSION=14   /root/couchdb-ci/bin/install-dependencies.sh js erlang                                                                     573.9s
 => [linux/arm64 stage-0 4/9] ADD --chown=root:root bin /root/couchdb-ci/bin/                                                                                                                                                     0.2s
 => [linux/ppc64le stage-0 4/9] ADD --chown=root:root bin /root/couchdb-ci/bin/                                                                                                                                                   0.2s
 => [linux/s390x stage-0 6/9] RUN mkdir -p /usr/src/couchdb;   chown -R jenkins:jenkins /usr/src/couchdb                                                                                                                          0.5s
 => [linux/arm64 stage-0 5/9] ADD --chown=root:root files /root/couchdb-ci/files/                                                                                                                                                 0.1s
 => [linux/ppc64le stage-0 5/9] ADD --chown=root:root files /root/couchdb-ci/files/                                                                                                                                               0.1s
 => [linux/arm64 stage-0 6/9] RUN mkdir -p /usr/src/couchdb;   chown -R jenkins:jenkins /usr/src/couchdb                                                                                                                          0.5s
 => [linux/ppc64le stage-0 6/9] RUN mkdir -p /usr/src/couchdb;   chown -R jenkins:jenkins /usr/src/couchdb                                                                                                                        0.5s
 => [linux/s390x stage-0 7/9] RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/local.conf                                                                                                                                            0.3s
 => [linux/arm64 stage-0 7/9] RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/local.conf                                                                                                                                            0.4s
 => [linux/ppc64le stage-0 7/9] RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/local.conf                                                                                                                                          0.4s
 => [linux/s390x stage-0 8/9] RUN ERLANGVERSION=24.3.4.10   ELIXIRVERSION=v1.13.4   NODEVERSION=14   /root/couchdb-ci/bin/install-dependencies.sh js erlang                                                                    4139.9s
 => [linux/arm64 stage-0 8/9] RUN ERLANGVERSION=24.3.4.10   ELIXIRVERSION=v1.13.4   NODEVERSION=14   /root/couchdb-ci/bin/install-dependencies.sh js erlang                                                                    4346.0s
 => [linux/ppc64le stage-0 8/9] RUN ERLANGVERSION=24.3.4.10   ELIXIRVERSION=v1.13.4   NODEVERSION=14   /root/couchdb-ci/bin/install-dependencies.sh js erlang                                                                  4556.8s
 => [linux/amd64 stage-0 9/9] RUN echo "jenkins ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/jenkins                                                                                                                                 0.8s
 => [linux/s390x stage-0 9/9] RUN echo "jenkins ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/jenkins                                                                                                                                 0.9s
 => [linux/arm64 stage-0 9/9] RUN echo "jenkins ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/jenkins                                                                                                                                 0.8s
 => [linux/ppc64le stage-0 9/9] RUN echo "jenkins ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/jenkins                                                                                                                               0.8s
 => exporting to image                                                                                                                                                                                                          200.0s 
 => => exporting layers                                                                                                                                                                                                         187.8s 
 => => exporting manifest sha256:d24e800251db33ac16168be83b436af176989ed8c05bc3811c7c4610fd291fdc                                                                                                                                 0.0s
 => => exporting config sha256:0f365f77581fe1461336d47b844a4d97a147de3b9fba071e3cfb887801be1422                                                                                                                                   0.0s
 => => exporting manifest sha256:1413610d6e4f3b9de8dbbe4e41884fe5b8be879a1348c285ba02d90b351f9cee                                                                                                                                 0.0s
 => => exporting config sha256:ce035265d7191e4ba7e31f4fa80df6afa6bd6119074d7aa7f9db7fda6db51004                                                                                                                                   0.0s
 => => exporting manifest sha256:7f28a0f65161f02cc2f8d5c43a559ba033f2864cc137255e533849025ccac55c                                                                                                                                 0.0s
 => => exporting config sha256:6953a02cf407ffcd8d718b823650f1e1d56ff0d43790e8fcf2f27a783a7e91dd                                                                                                                                   0.0s
 => => exporting manifest sha256:7ebf257b4ee7b8ca50fc6709c3fb94ea9d58f727d908ced97d80dc91c71196f8                                                                                                                                 0.0s
 => => exporting config sha256:dd13b941d33b1610b66931143f90e6e5698c54e0767fc95d943f6f36be46bcd3                                                                                                                                   0.0s
 => => exporting manifest list sha256:c3f9afca94822866d6bdab3f4d7714b2b1112c9aa4fb263122b81507b92c55cb                                                                                                                            0.0s
 => => pushing layers                                                                                                                                                                                                            11.9s
 => => pushing manifest for localhost:5000/apache/couchdbci-centos:9-erlang-24.3.4.10@sha256:c3f9afca94822866d6bdab3f4d7714b2b1112c9aa4fb263122b81507b92c55cb                                                                     0.1s

@kun-lu20 kun-lu20 changed the title Add Dockerfile for centos-stream9 Add Dockerfile for rockylinux-9 May 19, 2023
@kun-lu20
Copy link
Contributor Author

Hi @nickva ,

I've changed the base image from centos:stream9 to rockylinux:9, it worked fine.

Could you please take a look at the code change when you have a chance?

Thank you very much!

Copy link
Contributor

@nickva nickva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 That looks great, @kun-lu20.

Thank you for your contribution. It's much appreciated.

I will try to build and publish these image later during the weekend,

@nickva nickva merged commit f1a60ee into apache:main May 19, 2023
@kun-lu20
Copy link
Contributor Author

Thank you so much @nickva

@big-r81
Copy link
Contributor

big-r81 commented May 19, 2023

@kun-lu20 What's the answer to the SHA1 question from above?

@kun-lu20
Copy link
Contributor Author

@big-r81 Do you mean these lines?

# For CentOS Stream9
if [[ ${VERSION_ID} -eq 9 ]]; then
  update-crypto-policies --set DEFAULT:SHA1
fi

That's a workaround on CentOS Stream 9 due to the SHA-1 deprecation on RHEL 9. We don't need those lines on Rockylinux 9.

@big-r81
Copy link
Contributor

big-r81 commented May 19, 2023

@kun-lu20
Thanks for clarification. I didn’t looked at the code again and thought it’s the same for RockyLinux…

@kun-lu20
Copy link
Contributor Author

@big-r81 You're welcome.

@nickva
Copy link
Contributor

nickva commented May 22, 2023

rockylinux-9 was uploaded to couchdb-ci images:

https://hub.docker.com/layers/apache/couchdbci-centos/9-erlang-24.3.4.10/images/sha256-00c9aad56025ebd0013bd98db2bf18915c00e34f3e750f5c9aad12f7ef5da8a7?context=repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants