[master] Add Support for Centos-8#416
Conversation
rpm/centos-8/Dockerfile
Outdated
| RUN yum install -y rpm-build rpmlint | ||
| COPY SPECS /root/rpmbuild/SPECS | ||
| # Overwrite repo that was failing on aarch64 | ||
| RUN sed -i 's/altarch/centos/g' /etc/yum.repos.d/CentOS-Sources.repo |
There was a problem hiding this comment.
Looks like this is no longer needed for CentOS 8 (it was added in 0fd20b9 / #142):
The centos:7 (linux/arm64) image indeed has this repo:
docker run --rm --platform=linux/arm64 centos:7 sh -c 'cat /etc/yum.repos.d/CentOS-Sources.repo | grep altarch'
baseurl=http://vault.centos.org/altarch/$releasever/extras/Source/
baseurl=http://vault.centos.org/altarch/$releasever/centosplus/Source/But they are no longer in the centos:8 image:
docker run --rm --platform=linux/arm64 centos:8 sh -c 'cat /etc/yum.repos.d/CentOS-Sources.repo | grep altarch'There was a problem hiding this comment.
@thaJeztah I don't see it in centos:7 either
🐳 ~/go-workspace/src/github.com/docker/docker-ce-packaging$ docker run --rm --platform=linux/arm64 centos:7 sh -c 'cat /etc/yum.repos.d/CentOS-Sources.repo | grep altarch'
🐳 ~/go-workspace/src/github.com/docker/docker-ce-packaging$ docker run --rm --platform=linux/arm64 centos:8 sh -c 'cat /etc/yum.repos.d/CentOS-Sources.repo | grep altarch'
|
Builds on master are currently failing (see #415 (comment))
|
|
opened #417 and moby/moby#40393 to fix the build-failures |
|
when will it get merged? |
|
When will the official rpm repo be available? |
|
ptal @thaJeztah |
|
ping @thaJeztah |
|
Any updates on when this might be merged so we can get CentOS 8 RPMs created? It would be really great if we could get full CentOS 8 support for Docker CE soon. Thanks! @thaJeztah @StefanScherer @arkodg |
plfiorini
left a comment
There was a problem hiding this comment.
There are also missing build deps: btrfs-progs-devel, device-mapper-devel, glibc-static
| ARG SUITE | ||
| ENV DISTRO=${DISTRO} | ||
| ENV SUITE=${SUITE} | ||
| RUN yum install -y rpm-build rpmlint |
There was a problem hiding this comment.
In order to use yum-builddep you need to install yum-utils here
btrfs is not supported on RHEL/CentOS; https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/7.4_release_notes/index
|
Signed-off-by: Arko Dasgupta <arko.dasgupta@docker.com>
Signed-off-by: Arko Dasgupta <arko.dasgupta@docker.com>
|
FYI, from my tests, @plfiorini was correct in his suggested change regarding yum-builddep at #416 (review). You need to add yum-utils on line 20 of centos-8/Dockerfile or the yum-builddep command on line 22 will fail: Also, as @plfiorini indicated, you have BuildRequires on the btrfs-progs-devel, device-mapper-devel, and glibc-static packages in the SPECS/docker-ce.spec file, which don't exist by default in CentOS 8, and causes the CentOS 8 RPM build to fail: (with yum-utils added to line 20 of centos-8/Dockerfile) btrfs-progs-devel was removed (as you'd expect). glibc-static and device-mapper-devel were moved to the PowerTools repository in CentOS 8 (equivalent to the CodeReady Linux Builder repo in RHEL 8), which isn't enabled by default in CentOS 8. I just added the line
right below line 20 in centos-8/Dockerfile and that allowed me to get past that part and into the actual RPM build. (yum-config-manager command is provided by the yum-utils package.) However, it looks like there are further dependencies on btrfs-progs-devel in certain components, which is beyond my expertise to further diagnose and try to fix: Hope this helps! |
|
Thanks! pushed #444 with a fix |
|
Any ETA on pushing this to https://download.docker.com/linux/centos/ ? |
|
one more plus to the question above |
No description provided.