make: /bin/sh: Operation not permitted
Hi there, When I try to build upon the following docker file
FROM php:8.1-fpm-alpine AS build
RUN apk add librdkafka=1.8.2-r0 librdkafka-dev=1.8.2-r0 autoconf build-base runc
RUN scmp_sys_resolver faccessat2
RUN pecl install rdkafka
I get the following error
...
Step 3/4 : RUN scmp_sys_resolver faccessat2
---> Running in 1cd9b08aee4b
439
Removing intermediate container 1cd9b08aee4b
---> 44447c1367ca
Step 4/4 : RUN pecl install rdkafka
...
make: /bin/sh: Operation not permitted
make: *** [Makefile:202: rdkafka.lo] Error 127
ERROR: `make' failed
ERROR: Service 'php' failed to build: The command '/bin/sh -c pecl install rdkafka --with-rdkafka=/usr/local/lib/php/extensions/no-debug-non-zts-20210902' returned a non-zero code: 1
I've read the advice mentionned in #12396 (closed) to read https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2 and I have included a "RUN scmp_sys_resolver faccessat2" to see if the value is 439 as described and it is so - just like runc is newer than 1.0.0-rc93.
What is wrong again?
Best regards and many thanks for any help