FROM gcc:11
RUN apt-get update
RUN apt-get install -y cmake
WORKDIR /usr/src
RUN git clone https://egit.irs.uni-stuttgart.de/fsfw/fsfw_example_public.git; \
cd fsfw_example_public; \
git submodule init; \
git submodule sync; \
git submodule update --init --recursive
# Set to exit on failed command and build FSFW example with Linux OSAL
RUN set -ex; \
mkdir build-linux; \
cd build-linux; \
cmake -DOS_FSFW=linux ..; \
cmake --build . -j; \
cd ..
# Set to exit on failed command and build FSFW example with Host OSAL
mkdir build-hosted; \
cd build-hosted; \
cmake -DOS_FSFW=host ..; \
ENTRYPOINT ["/bin/sh"]