added compose
This commit is contained in:
parent
53c420cf69
commit
e0baf17c83
@ -8,7 +8,7 @@ WORKDIR /usr/src/app
|
||||
|
||||
RUN rm -rf build-hosted
|
||||
|
||||
RUN set -ex; \
|
||||
RUN set -ex; \
|
||||
mkdir build-hosted; \
|
||||
cd build-hosted; \
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DOS_FSFW=host ..;
|
17
bsp_linux/Dockerfile
Normal file
17
bsp_linux/Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
RUN apt-get update -y && apt-get upgrade -y
|
||||
RUN apt-get install -y cmake g++
|
||||
|
||||
COPY . /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
RUN rm -rf build-hosted
|
||||
|
||||
RUN set -ex; \
|
||||
mkdir build-linux; \
|
||||
cd build-linux; \
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DOS_FSFW=linux ..;
|
||||
|
||||
ENTRYPOINT ["cmake", "--build", "build-linux"]
|
||||
CMD ["-j"]
|
12
docker-compose.yml
Normal file
12
docker-compose.yml
Normal file
@ -0,0 +1,12 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
build-linux:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: bsp_linux/Dockerfile
|
||||
|
||||
build-host:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: bsp_hosted/Dockerfile
|
Reference in New Issue
Block a user