I have a long-standing project that uses a custom docker image based on Alpine. This has been working fine, but a recent build of the image caused something of an odd error. Any attempt to use make
fails with make unable to execute the shell to perform any task.
The output of make
contains a lot of this:
make: which: Operation not permitted
make: which: Operation not permitted
make: date: Operation not permitted
make: /bin/sh: Operation not permitted
make: git: Operation not permitted
The same docker image is functional when used for GitHub Actions and when I pull it to my own machine. It is only causing problems with Circle. Also, the Alpine package for make
hasn’t changed in months.
I used SSH to login and even a simple Makefile fails:
5d1984c95168:~# cd /tmp
5d1984c95168:/tmp# echo all:>Makefile
5d1984c95168:/tmp# printf "\techo OK">>Makefile
5d1984c95168:/tmp# make
echo OK
make: echo: Operation not permitted
make: *** [Makefile:2: all] Error 127
Same goes for make SHELL=/bin/bash
.
I am able to execute all the commands directly on the command line; things like git are able to execute other things (like hooks); it’s only make
that fails.
Is there anything in the CircleCI environment that might cause this sort of error to occur?