Skip to content

Instantly share code, notes, and snippets.

@sebasjm
Created February 19, 2021 13:55
Show Gist options
  • Save sebasjm/9b5c539dc78c5e031b490c3398f8e371 to your computer and use it in GitHub Desktop.
Save sebasjm/9b5c539dc78c5e031b490c3398f8e371 to your computer and use it in GitHub Desktop.
Docker fail to build
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
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
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
@sebasjm
Copy link
Author

sebasjm commented Feb 19, 2021

@sebasjm
Copy link
Author

sebasjm commented Feb 19, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment