Skip to content

Commit c6983e7

Browse files
tools: strip binaries to save disk space
1 parent 222f7ae commit c6983e7

File tree

10 files changed

+10
-0
lines changed

10 files changed

+10
-0
lines changed

core/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ FROM bluerobotics/blueos-base:0.2.2 AS base
2828
# Download binaries
2929
FROM base AS download-binaries
3030
COPY tools /home/pi/tools
31+
RUN apt update && apt install -y --no-install-recommends binutils
3132
RUN /home/pi/tools/install-static-binaries.sh
3233

3334
# Generation of python virtual environment for our libraries and services

core/tools/bridges/bootstrap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ echo "Installing to $BINARY_PATH"
5151

5252
wget -q "$REMOTE_URL" -O "$BINARY_PATH"
5353
chmod +x "$BINARY_PATH"
54+
strip "$BINARY_PATH"
5455

5556
echo "Installed binary type: $(file "$(which "$BINARY_PATH")")"
5657

core/tools/linux2rest/bootstrap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ echo "Installing to $BINARY_PATH"
5151

5252
wget -q "$REMOTE_URL" -O "$BINARY_PATH"
5353
chmod +x "$BINARY_PATH"
54+
strip "$BINARY_PATH"
5455

5556
echo "Installed binary type: $(file "$(which "$BINARY_PATH")")"
5657

core/tools/machineid/bootstrap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ echo "Installing to $BINARY_PATH"
5151

5252
wget -q "$REMOTE_URL" -O "$BINARY_PATH"
5353
chmod +x "$BINARY_PATH"
54+
strip "$BINARY_PATH"
5455

5556
echo "Installed binary type: $(file "$(which "$BINARY_PATH")")"
5657

core/tools/mavlink2rest/bootstrap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ echo "Installing to $BINARY_PATH"
5151

5252
wget -q "$REMOTE_URL" -O "$BINARY_PATH"
5353
chmod +x "$BINARY_PATH"
54+
strip "$BINARY_PATH"
5455

5556
echo "Installed binary type: $(file "$(which "$BINARY_PATH")")"
5657

core/tools/mavlink_camera_manager/bootstrap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ echo "Installing to $BINARY_PATH"
5151

5252
wget -q "$REMOTE_URL" -O "$BINARY_PATH"
5353
chmod +x "$BINARY_PATH"
54+
strip "$BINARY_PATH"
5455

5556
echo "Installed binary type: $(file "$(which "$BINARY_PATH")")"
5657

core/tools/mavlink_server/bootstrap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ echo "Installing to $BINARY_PATH"
5151

5252
wget -q "$REMOTE_URL" -O "$BINARY_PATH"
5353
chmod +x "$BINARY_PATH"
54+
strip "$BINARY_PATH"
5455

5556
echo "Installed binary type: $(file "$(which "$BINARY_PATH")")"
5657

core/tools/mcap-extractor/bootstrap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ echo "Installing to $BINARY_PATH"
4747

4848
wget -q "$REMOTE_URL" -O "$BINARY_PATH"
4949
chmod +x "$BINARY_PATH"
50+
strip "$BINARY_PATH"
5051

5152
echo "Installed binary type: $(file "$BINARY_PATH")"
5253

core/tools/mcap/bootstrap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ echo "Installing to $BINARY_PATH"
4747

4848
wget -q "$REMOTE_URL" -O "$BINARY_PATH"
4949
chmod +x "$BINARY_PATH"
50+
strip "$BINARY_PATH"
5051

5152
echo "Installed binary type: $(file "$(which "$BINARY_PATH")")"
5253

core/tools/recorder/bootstrap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ echo "Installing to $BINARY_PATH"
5151

5252
wget -q "$REMOTE_URL" -O "$BINARY_PATH"
5353
chmod +x "$BINARY_PATH"
54+
strip "$BINARY_PATH"
5455

5556
echo "Installed binary type: $(file "$(which "$BINARY_PATH")")"
5657

0 commit comments

Comments
 (0)