<E8D6F817-BCE8-46F3-B3E6-2DB2A85884C1@rna.nl>
I am running a Docker container based on Alpine Linux 3. When I recently did my regular update, I found out that my Dockerfile doesn't work anymore because dcc fails to install properly. Key elements in my Dockerfile that works under Alpine 3.19: RUN apk add dcc dcc-dccifd My entrypoint.sh contains: if [ ! -f /var/dcc/dcc_conf ] then echo "Error: no dcc configuration!" exit 1 else # alpine: /var/dcc/libexec/dccifd fi This fails under 3.20 and 3 latest Investigating, I found out that under 3.20 and up, apk fails to fully install dcc. E.g. there is no /var/dcc/dcc_conf and /var/dcc/libexec/dccifd is now /usr/libexec/dccifd. That last one I could fix, but I do not trust the apk installation of dcc on these newer Alpine versions (who knows what else is missing?) Am I wrong and is there something else I need to do? Or is indeed the dcc apk package broken? Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon <https://newsie.social/@gctwnl>, Bluesky <https://bsky.app/profile/gerbenwierda.bsky.social>) R&A IT Strategy <https://ea.rna.nl/> (main site) Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/> Book: Mastering ArchiMate <https://ea.rna.nl/mastering-archimate-edition-3-2/> YouTube Channel <http://www.youtube.com/@GerbenWierda>
<D6D70ITHM67N.1RFGYFSW0JDQI@posteo.net>
<E8D6F817-BCE8-46F3-B3E6-2DB2A85884C1@rna.nl>
(view parent)
> I am running a Docker container based on Alpine Linux 3. When I recently did my regular update, I found out that my Dockerfile doesn't work anymore because dcc fails to install properly. > > Key elements in my Dockerfile that works under Alpine 3.19: > > RUN apk add dcc dcc-dccifd > > My entrypoint.sh contains: > > if [ ! -f /var/dcc/dcc_conf ] > then > echo "Error: no dcc configuration!" > exit 1 > else > # alpine: > /var/dcc/libexec/dccifd > fi > > This fails under 3.20 and 3 latest Do you mean 3.21 or 3.20? I can find a related change but it is only included in 3.21: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/74592 > Investigating, I found out that under 3.20 and up, apk fails to fully install dcc. E.g. there is no /var/dcc/dcc_conf and /var/dcc/libexec/dccifd is now /usr/libexec/dccifd. That last one I could fix, but I do not trust the apk installation of dcc on these newer Alpine versions (who knows what else is missing?) Am I wrong and is there something else I need to do? Or is indeed the dcc apk package broken? > > Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon <https://newsie.social/@gctwnl>, Bluesky <https://bsky.app/profile/gerbenwierda.bsky.social>) > R&A IT Strategy <https://ea.rna.nl/> (main site) > Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/> > Book: Mastering ArchiMate <https://ea.rna.nl/mastering-archimate-edition-3-2/> > YouTube Channel <http://www.youtube.com/@GerbenWierda>
<0F1CFB0C-77D2-4CCE-A0A2-5CC4645E4983@rna.nl>
<D6D70ITHM67N.1RFGYFSW0JDQI@posteo.net>
(view parent)
> On 16 Dec 2024, at 15:26, Sertonix <sertonix@posteo.net> wrote: > >> I am running a Docker container based on Alpine Linux 3. When I recently did my regular update, I found out that my Dockerfile doesn't work anymore because dcc fails to install properly. >> >> Key elements in my Dockerfile that works under Alpine 3.19: >> >> RUN apk add dcc dcc-dccifd >> >> My entrypoint.sh contains: >> >> if [ ! -f /var/dcc/dcc_conf ] >> then >> echo "Error: no dcc configuration!" >> exit 1 >> else >> # alpine: >> /var/dcc/libexec/dccifd >> fi >> >> This fails under 3.20 and 3 latest > > Do you mean 3.21 or 3.20? I can find a related change but it is only > included in 3.21: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/74592 You are quite right. As of 3.21 it doesn't work (3.20 had another issue in my container, unrelated) Basically, under 3.21 /var/dcc is empty except for a log directory. There is dcc_conf anywhere on the image (or whatever else is missing) > >> Investigating, I found out that under 3.20 and up, apk fails to fully install dcc. E.g. there is no /var/dcc/dcc_conf and /var/dcc/libexec/dccifd is now /usr/libexec/dccifd. That last one I could fix, but I do not trust the apk installation of dcc on these newer Alpine versions (who knows what else is missing?) Am I wrong and is there something else I need to do? Or is indeed the dcc apk package broken? >> >> Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon <https://newsie.social/@gctwnl>, Bluesky <https://bsky.app/profile/gerbenwierda.bsky.social>) >> R&A IT Strategy <https://ea.rna.nl/> (main site) >> Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/> >> Book: Mastering ArchiMate <https://ea.rna.nl/mastering-archimate-edition-3-2/> >> YouTube Channel <http://www.youtube.com/@GerbenWierda>
<CACLzfL81sumqR6MFvhwByOiUfRTKmWzFB2dGWbN8r1L8Qs+fmQ@mail.gmail.com>
<0F1CFB0C-77D2-4CCE-A0A2-5CC4645E4983@rna.nl>
(view parent)
On Mon, Dec 16, 2024 at 2:48 PM Gerben Wierda <gerben.wierda@rna.nl> wrote: > You are quite right. As of 3.21 it doesn't work (3.20 had another issue in my container, unrelated) > > Basically, under 3.21 /var/dcc is empty except for a log directory. There is dcc_conf anywhere on the image (or whatever else is missing) Seems the package is intermittently failing to build correctly. v3.21 did not run make-dcc_conf: https://build.alpinelinux.org/buildlogs/build-3-21-x86_64/community/dcc/dcc-2.3.169-r1.log edge did: https://build.alpinelinux.org/buildlogs/build-edge-x86_64/community/dcc/dcc-2.3.169-r1.log I'm guessing the Makefiles don't handle parallel builds very well, I'll see if I can reproduce building locally.
<D6E82JU8XPEE.3HT4UM6VH51U7@posteo.net>
<CACLzfL81sumqR6MFvhwByOiUfRTKmWzFB2dGWbN8r1L8Qs+fmQ@mail.gmail.com>
(view parent)
> > You are quite right. As of 3.21 it doesn't work (3.20 had another issue in my container, unrelated) > > > > Basically, under 3.21 /var/dcc is empty except for a log directory. There is dcc_conf anywhere on the image (or whatever else is missing) > > Seems the package is intermittently failing to build correctly. > > v3.21 did not run make-dcc_conf: > https://build.alpinelinux.org/buildlogs/build-3-21-x86_64/community/dcc/dcc-2.3.169-r1.log > edge did: https://build.alpinelinux.org/buildlogs/build-edge-x86_64/community/dcc/dcc-2.3.169-r1.log > > I'm guessing the Makefiles don't handle parallel builds very well, > I'll see if I can reproduce building locally. Yes, the issue was related to parallel builds. I opened a MR to fix the issue: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/77234 Otherwise the move of files from /var/dcc/libexec/ to /usr/libexec/ was intentional. So if you upgrade to 3.21 you should update the paths in the entrypoint.sh.
<6C373360-388B-4304-82D8-4B226EFC1038@rna.nl>
<D6E82JU8XPEE.3HT4UM6VH51U7@posteo.net>
(view parent)
Site: https://ea.rna.nl/ > On 17 Dec 2024, at 20:28, Sertonix <sertonix@posteo.net> wrote: > > >> >>> You are quite right. As of 3.21 it doesn't work (3.20 had another issue in my container, unrelated) >>> >>> Basically, under 3.21 /var/dcc is empty except for a log directory. There is dcc_conf anywhere on the image (or whatever else is missing) >> >> Seems the package is intermittently failing to build correctly. >> >> v3.21 did not run make-dcc_conf: >> https://build.alpinelinux.org/buildlogs/build-3-21-x86_64/community/dcc/dcc-2.3.169-r1.log >> edge did: https://build.alpinelinux.org/buildlogs/build-edge-x86_64/community/dcc/dcc-2.3.169-r1.log >> >> I'm guessing the Makefiles don't handle parallel builds very well, >> I'll see if I can reproduce building locally. > > Yes, the issue was related to parallel builds. > > I opened a MR to fix the issue: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/77234 > > Otherwise the move of files from /var/dcc/libexec/ to /usr/libexec/ was > intentional. So if you upgrade to 3.21 you should update the paths in the > entrypoint.sh. Sure. But as long as dcc won't install I'm stuck at 3.20 (which is not a big problem of course) G