Dockerfile 811 Bytes
Newer Older
Travis Bottalico's avatar
Travis Bottalico committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM arm64v8/ubuntu:bionic

WORKDIR /home

RUN apt-get update
RUN apt-get install cmake build-essential colordiff git doxygen -y
RUN apt-get install python3 python3-pip -y
RUN apt install git -y

RUN git clone https://github.com/mavlink/MAVSDK.git

WORKDIR /home/MAVSDK
RUN git checkout master
RUN git submodule update --init --recursive

16
RUN cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MAVSDK_SERVER=ON -DBUILD_SHARED_LIBS=OFF -Bbuild/default -H.
Travis Bottalico's avatar
Travis Bottalico committed
17
18
19
20
21
22
23
24
25
26
RUN cmake --build build/default --target install -- -j 4
RUN ldconfig

WORKDIR /home

RUN pip3 install mavsdk
RUN git clone https://github.com/mavlink/MAVSDK-Python.git
WORKDIR /home/MAVSDK-Python
RUN git submodule update --init --recursive

27
WORKDIR /home
Travis Bottalico's avatar
Travis Bottalico committed
28
COPY takeoff_and_land2.py .
29
30
COPY offboard_position_ned2.py .
COPY start-mavsdk-server.sh .
Travis Bottalico's avatar
Travis Bottalico committed
31
32

CMD ["/bin/bash"]