Debian Codegraph @

host/misc/docker/clang-scan.Dockerfile

raw
1 # This file is part of the bladeRF project:
2 # http://www.github.com/nuand/bladeRF
3 #
4 # Copyright (c) 2025 Nuand LLC.
5 #
6 # Permission is hereby granted, free of charge, to any person obtaining a copy
7 # of this software and associated documentation files (the "Software"), to deal
8 # in the Software without restriction, including without limitation the rights
9 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 # copies of the Software, and to permit persons to whom the Software is
11 # furnished to do so, subject to the following conditions:
12 #
13 # The above copyright notice and this permission notice shall be included in
14 # all copies or substantial portions of the Software.
15 #
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 # THE SOFTWARE.
23
24 FROM ubuntu:noble
25
26 LABEL maintainer="Nuand LLC <[email protected]>"
27 LABEL version="0.0.2"
28 LABEL description="CI build environment for the bladeRF project"
29 LABEL com.nuand.ci.distribution.name="Ubuntu"
30 LABEL com.nuand.ci.distribution.codename="noble"
31 LABEL com.nuand.ci.distribution.version="24.04"
32
33 # Install things
34 RUN apt-get update \
35 && apt-get install -y \
36 build-essential \
37 clang \
38 cmake \
39 doxygen \
40 git \
41 help2man \
42 libcurl4-openssl-dev \
43 libedit-dev \
44 libncurses5-dev \
45 libusb-1.0-0-dev \
46 pandoc \
47 pkg-config \
48 && apt-get clean
49
50 # Copy in our build context
51 COPY --from=nuand/bladerf-buildenv:base /root/bladeRF /root/bladeRF
52 COPY --from=nuand/bladerf-buildenv:base /root/.config /root/.config
53 WORKDIR /root/bladeRF
54
55 # Install clang-tools
56 RUN apt-get update && apt-get install -y clang-tools && apt-get clean
57
58 ARG parallel=1
59
60 RUN cd /root/bladeRF/host \
61 && mkdir -p build \
62 && cd build \
63 && scan-build cmake -DBUILD_DOCUMENTATION=ON ../ \
64 && scan-build -analyze-headers -maxloop 100 -o ./report make -j${parallel}