Files
openairinterface5g/tools/iwyu/docker-compose.yaml
Robert Schmidt 8107939f08 Change OAI license to CSSL v1.0 (and others)
- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
  scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly

For automated changes based on OAI PL v1.1:

    perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
    perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
    perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml

The rest (cmake, files with missing license, cmake) manually.
2026-03-27 16:36:37 +01:00

42 lines
1.5 KiB
YAML

# SPDX-License-Identifier: MIT
services:
iwyu:
image: iwyu
build:
dockerfile_inline: |
FROM ran-base
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install -y wget gnupg && \
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main" > /etc/apt/sources.list.d/llvm.list && \
apt update
RUN apt install -y \
git \
cmake \
build-essential \
clang-14 \
libclang-14-dev \
ninja-build \
libyaml-cpp-dev
WORKDIR /iwyu/
RUN git clone https://github.com/include-what-you-use/include-what-you-use.git
RUN cd /iwyu/include-what-you-use && \
git checkout origin/clang_14 && \
mkdir build && cd build && \
cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc ../ -G "Unix Makefiles" && \
make
RUN apt clean && rm -rf /var/lib/apt/lists/*
volumes:
- ../../:/code/
command:
bash -c "git config --global --add safe.directory /code && \
mkdir -p iwyu-bin && cd iwyu-bin && \
cmake \
-DCMAKE_C_INCLUDE_WHAT_YOU_USE=/iwyu/include-what-you-use/build/bin/include-what-you-use \
-DCMAKE_CXX_INCLUDE_WHAT_YOU_USE=/iwyu/include-what-you-use/build/bin/include-what-you-use \
/code/ \
-GNinja && \
cmake --build . --target $TARGET"