FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
multi-kf-px4/Tools/docker_run.sh at main · postech-compsec/multi-kf-px4 · GitHub
postech-compsec
/
multi-kf-px4
Public
forked from
PX4/PX4-Autopilot
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
multi-kf-px4
/
Tools
/
docker_run.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
67 lines (58 loc) · 2.11 KB
Breadcrumbs
multi-kf-px4
/
Tools
/
docker_run.sh
Copy path
File metadata and controls
executable file
·
67 lines (58 loc) · 2.11 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!
/bin/bash
if
[
-z
${PX4_DOCKER_REPO+x}
]
;
then
echo
"
guessing PX4_DOCKER_REPO based on input
"
;
if
[[
$@
=~
.
*
px4_fmu.
*
]]
;
then
#
nuttx-px4fmu-v{1,2,3,4,5}
PX4_DOCKER_REPO=
"
px4io/px4-dev-nuttx-focal:2022-08-12
"
elif
[[
$@
=~
.
*
navio2.
*
]]
||
[[
$@
=~
.
*
raspberry.
*
]]
||
[[
$@
=~
.
*
beaglebone.
*
]]
||
[[
$@
=~
.
*
pilotpi.default ]]
;
then
#
beaglebone_blue_default, emlid_navio2_default, px4_raspberrypi_default, scumaker_pilotpi_default
PX4_DOCKER_REPO=
"
px4io/px4-dev-armhf:2023-06-26
"
elif
[[
$@
=~
.
*
pilotpi.arm64 ]]
;
then
#
scumaker_pilotpi_arm64
PX4_DOCKER_REPO=
"
px4io/px4-dev-aarch64:2022-08-12
"
elif
[[
$@
=~
.
*
navio2.
*
]]
||
[[
$@
=~
.
*
raspberry.
*
]]
||
[[
$@
=~
.
*
bebop.
*
]]
;
then
#
posix_rpi_cross, posix_bebop_default
PX4_DOCKER_REPO=
"
px4io/px4-dev-armhf:2023-06-26
"
elif
[[
$@
=~
.
*
clang.
*
]]
||
[[
$@
=~
.
*
scan-build.
*
]]
;
then
#
clang tools
PX4_DOCKER_REPO=
"
px4io/px4-dev-clang:2021-02-04
"
elif
[[
$@
=~
.
*
tests
*
]]
;
then
#
run all tests with simulation
PX4_DOCKER_REPO=
"
px4io/px4-dev-simulation-bionic:2021-12-11
"
fi
else
echo
"
PX4_DOCKER_REPO is set to '
$PX4_DOCKER_REPO
'
"
;
fi
#
otherwise default to nuttx
if
[
-z
${PX4_DOCKER_REPO+x}
]
;
then
PX4_DOCKER_REPO=
"
px4io/px4-dev-nuttx-focal:2022-08-12
"
fi
#
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)
echo
"
PX4_DOCKER_REPO:
$PX4_DOCKER_REPO
"
;
PWD=
$(
cd
"
$(
dirname
"
${BASH_SOURCE[0]}
"
)
"
&&
pwd
)
SRC_DIR=
$PWD
/../
CCACHE_DIR=
${HOME}
/.ccache
mkdir -p
"
${CCACHE_DIR}
"
docker run -it --rm -w
"
${SRC_DIR}
"
\
--env=AWS_ACCESS_KEY_ID \
--env=AWS_SECRET_ACCESS_KEY \
--env=BRANCH_NAME \
--env=CCACHE_DIR=
"
${CCACHE_DIR}
"
\
--env=CI \
--env=CODECOV_TOKEN \
--env=COVERALLS_REPO_TOKEN \
--env=LOCAL_USER_ID=
"
$(
id -u
)
"
\
--env=PX4_ASAN \
--env=PX4_MSAN \
--env=PX4_TSAN \
--env=PX4_UBSAN \
--env=TRAVIS_BRANCH \
--env=TRAVIS_BUILD_ID \
--publish 14556:14556/udp \
--volume=
${CCACHE_DIR}
:
${CCACHE_DIR}
:rw \
--volume=
${SRC_DIR}
:
${SRC_DIR}
:rw \
${PX4_DOCKER_REPO}
/bin/bash -c
"
$1
$2
$3
"
Back
|
FazBrowse Home
|
New Git URL