From 94622468611ca757304ada790fec74d0d05e25ab Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 20 May 2021 19:43:24 +0200 Subject: [PATCH] dockerfile update --- Dockerfile | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8f1340c..7571fc6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,16 +3,27 @@ FROM gcc:11 RUN apt-get update RUN apt-get install -y cmake -COPY . /usr/src/fsfw_example_public -WORKDIR /usr/src/fsfw_example_public +WORKDIR /usr/src -RUN mkdir build-linux; \ +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; \ + cd fsfw_example_public; \ + mkdir build-linux; \ cd build-linux; \ cmake -DOS_FSFW=linux ..; \ cmake --build . -j; \ cd .. -RUN mkdir build-hosted; \ +# Set to exit on failed command and build FSFW example with Host OSAL +RUN set -ex; \ + cd fsfw_example_public; \ + mkdir build-hosted; \ cd build-hosted; \ cmake -DOS_FSFW=host ..; \ cmake --build . -j; \