dockerfile update
This commit is contained in:
parent
e2d40a474b
commit
9462246861
19
Dockerfile
19
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; \
|
||||
|
Reference in New Issue
Block a user