Select Git revision
-
Joscha Schmiedt authoredJoscha Schmiedt authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Dockerfile 1.02 KiB
FROM debian:bookworm
RUN apt-get update
RUN apt-get install -y cmake
RUN apt-get install -y lcov
RUN apt-get install -y doxygen graphviz
RUN apt-get install -y clang-format clang-tidy
RUN apt-get install -y python3-pip python3-venv
RUN apt-get install -y git
RUN apt-get install -y curl zip unzip tar
RUN apt-get install -y perl pkg-config
RUN apt-get install -y openjdk-17-jdk-headless
WORKDIR /
RUN python3 -m venv ./venv
RUN . ./venv/bin/activate
COPY doc/requirements.txt doc-requirements.txt
RUN ./venv/bin/pip install -r doc-requirements.txt
COPY requirements.txt build-requirements.txt
RUN ./venv/bin/pip install -r build-requirements.txt
RUN ./venv/bin/conan profile detect
# add venv with conan to .bashrc
RUN echo "source /venv/bin/activate" >> /root/.bashrc
COPY . /libcaosdb/
WORKDIR /libcaosdb
RUN git rev-parse HEAD > libcaosdb_commit
RUN rm -rf .git
# build dependencies
RUN /venv/bin/conan install /libcaosdb --build=missing -s build_type=Debug
RUN /venv/bin/conan install /libcaosdb --build=missing -s build_type=Release