Closed pgrandin closed 3 years ago
Digging a little bit, I found this commit : https://github.com/gentoo/portage/commit/cec73041df583bfd46e1fa9739286a74a2e85b18
Testing the last image from february I cannot reproduce the issue. So I think that the above mentioned commit broke the stage3 images.
I guess this should be reported to the given developer, we on the container side have nothing to do with this right?
Well I think that it highlight a potentially missing test step. It looks to me like the images built since early March are unusable. Is anyone able to emerge stuff in recent images?
I do; I use these images downstream to package distcc: https://github.com/KSmanis/docker-gentoo-distcc
I am unfamiliar with ebuild-ipc
however, so would you mind explaining why you have to COPY
it in the image?
Thanks!
The COPY
thing was just a workaround. With images prior to the change I mentioned, I don't need it. To get images after this change to work I had to change the line I mentioned, but then it only works when using an interactive shell it seems.
@KSmanis i had a quick look at your repo, it looks like you are using latest
, where i'm using the systemd
variant. I've updated the title of this issue.
Update : still facing the issue with the following Dockerfile:
FROM gentoo/stage3:latest
ARG BUILD_DATE
LABEL org.label-schema.build-date=$BUILD_DATE
RUN emerge --sync
RUN FEATURES="-pid-sandbox" emerge -q dev-vcs/git eix app-misc/jq
Relevant image:
gentoo/stage3 latest 43cc50051fb9 18 hours ago 883MB
I successfully built the provided Dockerfile on two different Docker hosts: a (mostly stable) Gentoo host and an Ubuntu one (18.04 LTS). Could you try building the Dockerfile elsewhere? It could just be that you host (kernel) config is off.
Also, any further info on your setup would be useful, e.g., dockerd version, whether you build with buildkit/buildx, etc.
Thanks @KSmanis I think that you just solved my issue.
My local dev machine was running app-emulation/docker-19.03.15
. Bumping it to app-emulation/docker-20.10.7
seems to have fixed the issue. My images are built using CircleCI, and I was using the ubuntu-2004:202010-01
machine image, which ships with docker-19 as well. Bumping this one to ubuntu-2004:202104-01
which includes docker-20 seems to have fixed the issue.
The following Dockerfile used to work with older stage3 images:
But with recent stage3 images, I am getting this error:
This also looks weird to me?
The file in question seems legit to me:
Replacing the line
if [[ -x "${path}" ]]; then
withif [[ -e "${path}" ]]; then
seems to work around the issue, but only when running it in a container, not when usingdocker build
.Given the file, it looks like it could be a portage bug triggered only in specific situations like here, when not having a tty?
Anybody else facing that issue?
Thanks!