dockerfile update

This commit is contained in:
Robin Müller 2021-05-20 19:43:24 +02:00
parent e2d40a474b
commit 9462246861
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -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; \