Skip to content

Commit

Permalink
CI: Add Dockerfiles for dev and docs
Browse files Browse the repository at this point in the history
Signed-off-by: Shamitha Shashidhara <[email protected]>
  • Loading branch information
shamitha-shashidhara committed Jan 24, 2025
1 parent fda81b1 commit f0b1962
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
45 changes: 45 additions & 0 deletions docker/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
FROM ubuntu:22.04

WORKDIR /usr/src

RUN apt-get update && apt-get install -y \
python3.10 \
python3-pip \
bzip2\
tar \
clang-tidy \
wget \
curl \
git \
gcc-11 \
g++-11\
lcov\
&& rm -rf /var/lib/apt/lists/*

RUN wget https://github.com/Kitware/CMake/releases/download/v3.22.5/cmake-3.22.5-linux-x86_64.sh \
&& chmod +x cmake-3.22.5-linux-x86_64.sh \
&& ./cmake-3.22.5-linux-x86_64.sh --skip-license --prefix=/usr/local \
&& rm cmake-3.22.5-linux-x86_64.sh

RUN wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 \
&& tar -xjf gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 -C /usr/local \
&& rm gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 \
&& ln -s /usr/local/gcc-arm-none-eabi-10.3-2021.10/bin/* /usr/local/bin/

RUN mkdir -p /root/.local/bin

RUN curl -L https://github.com/numtide/treefmt/releases/download/v2.1.0/treefmt_2.1.0_linux_amd64.tar.gz -o treefmt.tar.gz \
&& tar -xvzf treefmt.tar.gz \
&& install -m 755 treefmt /root/.local/bin/ \
&& rm LICENSE README.md treefmt treefmt.tar.gz

RUN curl -L https://github.com/muttleyxd/clang-tools-static-binaries/releases/download/master-32d3ac78/clang-format-17_linux-amd64 -o /root/.local/bin/clang-format && \
chmod +x /root/.local/bin/clang-format

ENV PATH="/root/.local/bin:$PATH"

RUN pip3 install cmakelang

COPY . .

CMD ["/bin/bash"]
22 changes: 22 additions & 0 deletions docker/Dockerfile.docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM ubuntu:22.04

WORKDIR /usr/src

RUN apt-get update && apt-get install -y python3.10 python3-pip openjdk-11-jdk graphviz \
doxygen\
wget \
&& rm -rf /var/lib/apt/lists/*

COPY doc/requirements.txt .

RUN pip3 install --no-cache-dir -r requirements.txt

RUN wget https://sourceforge.net/projects/plantuml/files/plantuml.jar/download -O /usr/local/bin/plantuml.jar \
&& echo '#!/bin/sh\njava -jar /usr/local/bin/plantuml.jar "$@"' > /usr/local/bin/plantuml && \
chmod +x /usr/local/bin/plantuml

RUN pip3 install coverxygen

COPY . .

CMD ["/bin/bash"]

0 comments on commit f0b1962

Please sign in to comment.