Another Update Package Yaaay #9
29
Dockerfile
29
Dockerfile
@ -1,33 +1,16 @@
|
|||||||
FROM gcc:11
|
FROM gcc:11
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update -y && apt-get upgrade -y
|
||||||
RUN apt-get install -y cmake
|
RUN apt-get install -y cmake
|
||||||
|
|
||||||
WORKDIR /usr/src
|
COPY . /usr/src/app
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
RUN git clone https://egit.irs.uni-stuttgart.de/fsfw/fsfw_example_public.git; \
|
RUN rm -rf build-hosted
|
||||||
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; \
|
RUN set -ex; \
|
||||||
cd fsfw_example_public; \
|
|
||||||
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
|
|
||||||
RUN set -ex; \
|
|
||||||
cd fsfw_example_public; \
|
|
||||||
mkdir build-hosted; \
|
mkdir build-hosted; \
|
||||||
cd build-hosted; \
|
cd build-hosted; \
|
||||||
cmake -DOS_FSFW=host ..; \
|
cmake -DCMAKE_BUILD_TYPE=Release -DOS_FSFW=host ..;
|
||||||
cmake --build . -j; \
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/sh"]
|
|
||||||
|
|
||||||
|
ENTRYPOINT ["sh", "-c", "cmake --build build-hosted -j"]
|
||||||
|
Reference in New Issue
Block a user