# This docker container can be used to run all the TFLM CI checks.## It is only used as part of the GitHub workflows to test for code-style. But# the container is available and ready for use to run all the checks locally,# in case that is useful for debugging.## docker build -f ci/Dockerfile.micro -t ghcr.io/tflm-bot/tflm-ci:latest .# or# docker pull ghcr.io/tflm-bot/tflm-ci:latest#
# Use a prebuilt Python image instead of base Ubuntu to speed up the build process,# since it has all the build dependencies we need for Micro and downloads much faster# than the install process.FROM python:3.9.0-busterRUN echo deb http://apt.llvm.org/buster/ llvm-toolchain-buster-12 main > /etc/apt/sources.list.d/llvm.listRUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -RUN apt-get updateRUN apt-get install -y zip xxd sudoRUN apt-get install -y clang-12 clang-format-12# Set clang-12 and clang-format-12 as the default to ensure that the pigweed# formatting scripts use the desired version.RUN ln -s /usr/bin/clang-12 /usr/bin/clangRUN ln -s /usr/bin/clang++-12 /usr/bin/clang++RUN ln -s /usr/bin/clang-format-12 /usr/bin/clang-formatRUN pip install six# Install Renode test dependenciesRUN pip install pyyaml requests psutil robotframework==3.1COPY ci/*.sh /install/RUN /install/install_bazel.shRUN /install/install_buildifier.sh