|
2 | 2 |
|
3 | 3 | if [ -z ${PX4_DOCKER_REPO+x} ]; then |
4 | 4 | echo "guessing PX4_DOCKER_REPO based on input"; |
5 | | - if [[ $@ =~ .*px4_fmu.* ]]; then |
6 | | - # nuttx-px4fmu-v{1,2,3,4,5} |
7 | | - PX4_DOCKER_REPO="px4io/px4-dev-nuttx-focal:2022-08-12" |
8 | | - elif [[ $@ =~ .*navio2.* ]] || [[ $@ =~ .*raspberry.* ]] || [[ $@ =~ .*beaglebone.* ]] || [[ $@ =~ .*pilotpi.default ]] || [[ $@ =~ .*navigator.* ]]; then |
9 | | - # beaglebone_blue_default, emlid_navio2_default, px4_raspberrypi_default, scumaker_pilotpi_default, bluerobotics_navigator_default |
10 | | - PX4_DOCKER_REPO="px4io/px4-dev-armhf:2023-06-26" |
11 | | - elif [[ $@ =~ .*pilotpi.arm64 ]]; then |
12 | | - # scumaker_pilotpi_arm64 |
13 | | - PX4_DOCKER_REPO="px4io/px4-dev-aarch64:2022-08-12" |
14 | | - elif [[ $@ =~ .*navio2.* ]] || [[ $@ =~ .*raspberry.* ]] || [[ $@ =~ .*bebop.* ]]; then |
15 | | - # posix_rpi_cross, posix_bebop_default |
16 | | - PX4_DOCKER_REPO="px4io/px4-dev-armhf:2023-06-26" |
17 | | - elif [[ $@ =~ .*clang.* ]] || [[ $@ =~ .*scan-build.* ]]; then |
| 5 | + if [[ $@ =~ .*clang.* ]] || [[ $@ =~ .*scan-build.* ]]; then |
18 | 6 | # clang tools |
19 | 7 | PX4_DOCKER_REPO="px4io/px4-dev-clang:2021-02-04" |
20 | 8 | elif [[ $@ =~ .*tests* ]]; then |
|
27 | 15 |
|
28 | 16 | # otherwise default to nuttx |
29 | 17 | if [ -z ${PX4_DOCKER_REPO+x} ]; then |
30 | | - PX4_DOCKER_REPO="px4io/px4-dev-nuttx-focal:2022-08-12" |
| 18 | + PX4_DOCKER_REPO="px4io/px4-dev:v1.16.0-ondemand" |
31 | 19 | fi |
32 | 20 |
|
33 | | -# docker hygiene |
34 | | - |
35 | | -#Delete all stopped containers (including data-only containers) |
36 | | -# docker container prune |
37 | | - |
38 | | -#Delete all 'untagged/dangling' (<none>) images |
39 | | -# docker image prune |
40 | | - |
41 | 21 | echo "PX4_DOCKER_REPO: $PX4_DOCKER_REPO"; |
42 | 22 |
|
43 | 23 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
|
0 commit comments