Skip to content

Docker build fails. rm: cannot remove '*': No such file or directory #23

Description

@mr3screen

Building version 1.1 fails in docker. I started the build prior to this run but that was interrupted due to a system upgrade which restarted the docker daemon. This may or may not be related.

$ docker build -o type=local,dest=artifacts .                                               
[+] Building 713.7s (16/17)                                                  docker:default
 => [internal] load build definition from Dockerfile                                   0.0s                                                                                             
 => => transferring dockerfile: 1.97kB                                                 0.0s                                                                                             
 => [internal] load metadata for docker.io/library/ubuntu:22.04                        0.1s                                                                                             
 => [internal] load .dockerignore                                                      0.0s                                                                                             
 => => transferring context: 2B                                                        0.0s                                                                                             
 => [build-stage  1/10] FROM docker.io/library/ubuntu:22.04@sha256:ce4a593b4e323dcc3d  0.1s                                                                                             
 => => resolve docker.io/library/ubuntu:22.04@sha256:ce4a593b4e323dcc3dd728e397e0a866  0.1s                                                                                             
 => [internal] load build context                                                      0.1s                                                                                             
 => => transferring context: 2.53kB                                                    0.0s                                                                                             
 => CACHED [build-stage  2/10] RUN apt update && apt install -y build-essential cmake  0.0s                                                                                             
 => CACHED [build-stage  3/10] RUN apt update && apt -y install qtbase5-dev libqt5svg  0.0s                                                                                             
 => CACHED [build-stage  4/10] WORKDIR /plotjuggler_ws/src                             0.0s                                                                                             
 => CACHED [build-stage  5/10] RUN git clone --depth 1 --branch 3.9.2 https://github.  0.0s                                                                                             
 => CACHED [build-stage  6/10] WORKDIR /plotjuggler_ws                                 0.0s                                                                                             
 => [build-stage  7/10] RUN cmake -S src/PlotJuggler -B build/PlotJuggler -DCMAKE_I  712.7s                                                                                             
 => [build-stage  8/10] COPY --link . /apbin_plugin                                    0.1s                                                                                             
 => => merging                                                                         0.1s                                                                                             
 => [build-stage  9/10] WORKDIR /apbin_plugin/build                                    0.2s                                                                                             
 => ERROR [build-stage 10/10] RUN rm -R *     && cmake -Dplotjuggler_DIR="/plotjuggle  0.3s                                                                                             
------                                                                                                                                                                                  
 > [build-stage 10/10] RUN rm -R *     && cmake -Dplotjuggler_DIR="/plotjuggler_ws/install/lib/cmake/plotjuggler" -DADD_UNITS=OFF ..     && make     && make install     && mkdir /artif
acts     && cp libDataAPBin.so /artifacts:                                                                                                                                              
0.220 rm: cannot remove '*': No such file or directory
------                                        
Dockerfile:34                                 
--------------------                          
  33 |     # Ensure a fresh build folder
  34 | >>> RUN rm -R * \
  35 | >>>     && cmake -Dplotjuggler_DIR="/plotjuggler_ws/install/lib/cmake/plotjuggler" -DADD_UNITS=${ADD_UNITS} .. \
  36 | >>>     && make \
  37 | >>>     && make install \
  38 | >>>     && mkdir /artifacts \
  39 | >>>     && cp libDataAPBin.so /artifacts
  40 |                                        
--------------------                          
ERROR: failed to build: failed to solve: process "/bin/sh -c rm -R *     && cmake -Dplotjuggler_DIR=\"/plotjuggler_ws/install/lib/cmake/plotjuggler\" -DADD_UNITS=${ADD_UNITS} ..     &&
 make     && make install     && mkdir /artifacts     && cp libDataAPBin.so /artifacts" did not complete successfully: exit code: 1

If glob patterns don't match any file, they will be used literally. But did this ever work?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions