Created
February 19, 2021 13:55
-
-
Save sebasjm/9b5c539dc78c5e031b490c3398f8e371 to your computer and use it in GitHub Desktop.
Docker fail to build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run | |
docker build -f dockfile.fail . | |
it will fail to build. Error: | |
make: /bin/sh: Operation not permitted | |
make: /bin/sh: Operation not permitted | |
make: /bin/sed: Operation not permitted | |
make: /bin/sh: Operation not permitted | |
make: /bin/sh: Operation not permitted | |
make: /bin/sh: Operation not permitted | |
make: *** [Makefile:1662: all-recursive] Error 127 | |
The command '/bin/sh -c ./configure && make' returned a non-zero code: 2 | |
Run | |
docker build -f dockfile.ok . | |
will build ok. | |
Docker version 20.10.3, build 48d30b5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:20200917 | |
ENV HOME /root | |
WORKDIR $HOME | |
RUN apk add --no-cache git curl alpine-sdk gnupg | |
RUN curl -O http://gnu.c3sl.ufpr.br/ftp/recutils/recutils-1.8.tar.gz && tar xzf recutils-1.8.tar.gz && mv recutils-1.8 src | |
#COPY jemarch-key.gpg $HOME | |
#COPY recutils-1.8.tar.gz.sig $HOME | |
#RUN gpg --import jemarch-key.gpg | |
#RUN echo BDFA5717FC1DD35C2C3832A23EF90523B304AF08:6: | gpg --import-ownertrust | |
#RUN gpg --verify recutils-1.8.tar.gz.sig recutils-1.8.tar.gz || exit 1 | |
WORKDIR $HOME/src | |
RUN ./configure | |
RUN make |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.13.2 | |
ENV HOME /root | |
WORKDIR $HOME | |
RUN apk add --no-cache git curl alpine-sdk gnupg | |
RUN curl -O http://gnu.c3sl.ufpr.br/ftp/recutils/recutils-1.8.tar.gz && tar xzf recutils-1.8.tar.gz && mv recutils-1.8 src | |
#COPY jemarch-key.gpg $HOME | |
#COPY recutils-1.8.tar.gz.sig $HOME | |
#RUN gpg --import jemarch-key.gpg | |
#RUN echo BDFA5717FC1DD35C2C3832A23EF90523B304AF08:6: | gpg --import-ownertrust | |
#RUN gpg --verify recutils-1.8.tar.gz.sig recutils-1.8.tar.gz || exit 1 | |
WORKDIR $HOME/src | |
RUN ./configure | |
RUN make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Posible explanation
https://wiki.alpinelinux.org/wiki/Draft_Release_Notes_for_Alpine_3.14.0