mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
* new docker container using ubuntu focal (20.04) * adds nuttx building for any supported target * adds initial support for gazebo simulation via X11 * updates docker_run.sh script to initialize container * NEEDS: updated ubuntu.sh script How to run: ``` ./Tools/docker_run.sh make all_variants_px4_fmu-v5x ```
23 lines
585 B
Bash
Executable File
23 lines
585 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# docker hygiene
|
|
|
|
#Delete all stopped containers (including data-only containers)
|
|
#docker rm $(docker ps -a -q)
|
|
|
|
#Delete all 'untagged/dangling' (<none>) images
|
|
#docker rmi $(docker images -q -f dangling=true)
|
|
|
|
PX4_DOCKER_REPO="px4io/px4-dev"
|
|
|
|
PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
SRC_DIR=$PWD/../
|
|
|
|
docker run -it --rm -w "${SRC_DIR}" \
|
|
--env=LOCAL_USER_ID="$(id -u)" \
|
|
--publish 14556:14556/udp \
|
|
--volume=/tmp/.X11-unix:/tmp/.X11-unix \
|
|
--volume=/tmp:/tmp:rw \
|
|
--volume=${SRC_DIR}:${SRC_DIR}:rw \
|
|
${PX4_DOCKER_REPO} /bin/bash -c "$1 $2 $3"
|