You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having some issues building this project with docker.
After cloning it with git clone --recurse-submodules https://github.com/vbpf/ebpf-verifier.git, when I run docker build -t verifier . it outputs the following:
docker build -t verifier .
[+] Building 2.4s (13/15) docker:default
=> [internal] load .dockerignore 0.1s
=> => transferring context: 58B 0.0s
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 462B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:20.04 0.7s
=> [auth] library/ubuntu:pull token for registry-1.docker.io 0.0s
=> [ 1/10] FROM docker.io/library/ubuntu:20.04@sha256:f2034e7195f61334e6caff6ecf2e965f92d11e888309065da85ff50c617732b8 0.0s
=> [internal] load build context 0.3s
=> => transferring context: 77.95MB 0.2s
=> CACHED [ 2/10] RUN apt update 0.0s
=> CACHED [ 3/10] RUN apt -yq --no-install-suggests --no-install-recommends install build-essential cmake libboost-dev libboost-filesystem-dev libboost-program-options-dev libyaml-cpp-dev 0.0s
=> CACHED [ 4/10] WORKDIR /verifier 0.0s
=> [ 5/10] COPY . /verifier/ 0.3s
=> [ 6/10] RUN mkdir build 0.3s
=> [ 7/10] WORKDIR /verifier/build 0.1s
=> ERROR [ 8/10] RUN cmake .. -DCMAKE_BUILD_TYPE=Release 0.6s
------
> [ 8/10] RUN cmake .. -DCMAKE_BUILD_TYPE=Release:
0.313 -- The C compiler identification is GNU 9.4.0
0.344 -- The CXX compiler identification is GNU 9.4.0
0.347 -- Check for working C compiler: /usr/bin/cc
0.388 -- Check for working C compiler: /usr/bin/cc -- works
0.388 -- Detecting C compiler ABI info
0.432 -- Detecting C compiler ABI info - done
0.438 -- Detecting C compile features
0.438 -- Detecting C compile features - done
0.440 -- Check for working CXX compiler: /usr/bin/c++
0.486 -- Check for working CXX compiler: /usr/bin/c++ -- works
0.486 -- Detecting CXX compiler ABI info
0.536 -- Detecting CXX compiler ABI info - done
0.542 -- Detecting CXX compile features
0.542 -- Detecting CXX compile features - done
0.561 CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:2421 (message):
0.561 error: could not find git for clone of catch2-populate
0.561 Call Stack (most recent call first):
0.561 /usr/share/cmake-3.16/Modules/ExternalProject.cmake:3236 (_ep_add_download_command)
0.561 CMakeLists.txt:13 (ExternalProject_Add)
0.561
0.561
0.561 -- Configuring incomplete, errors occurred!
0.561 See also "/verifier/build/_deps/catch2-subbuild/CMakeFiles/CMakeOutput.log".
0.561
0.561 CMake Error at /usr/share/cmake-3.16/Modules/FetchContent.cmake:903 (message):
0.561 CMake step for catch2 failed: 1
0.561 Call Stack (most recent call first):
0.561 /usr/share/cmake-3.16/Modules/FetchContent.cmake:1006 (__FetchContent_directPopulate)
0.561 /usr/share/cmake-3.16/Modules/FetchContent.cmake:1047 (FetchContent_Populate)
0.561 CMakeLists.txt:12 (FetchContent_MakeAvailable)
0.561
0.561
0.561 -- Configuring incomplete, errors occurred!
0.561 See also "/verifier/build/CMakeFiles/CMakeOutput.log".
------
Dockerfile:11
--------------------
9 | RUN mkdir build
10 | WORKDIR /verifier/build
11 | >>> RUN cmake .. -DCMAKE_BUILD_TYPE=Release
12 | RUN make -j $(nproc)
13 | WORKDIR /verifier
--------------------
ERROR: failed to solve: process "/bin/sh -c cmake .. -DCMAKE_BUILD_TYPE=Release" did not complete successfully: exit code: 1
Which is fixable by adding git and ca-certificates to Dockerfile, like so:
I'm having some issues building this project with docker.
After cloning it with
git clone --recurse-submodules https://github.com/vbpf/ebpf-verifier.git
, when I rundocker build -t verifier .
it outputs the following:docker build -t verifier .
Which is fixable by adding
git
andca-certificates
toDockerfile
, like so:But this wasn't enough to get it to build. Now I'm facing a mountain of logs that end like this:
Details
Am I missing something, or is the docker build broken?
The text was updated successfully, but these errors were encountered: