From 814064c9a37f326e4b710087883a526a18ff9e1a Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Fri, 26 Mar 2021 01:34:08 +0300 Subject: [PATCH] image: replace _book/assets with a symlink to reduce image size --- builder/image-ros.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/builder/image-ros.sh b/builder/image-ros.sh index 1bd60339..1abd9b49 100755 --- a/builder/image-ros.sh +++ b/builder/image-ros.sh @@ -103,6 +103,7 @@ cd /home/pi/catkin_ws/src/clover NPM_CONFIG_UNSAFE_PERM=true npm install gitbook-cli -g NPM_CONFIG_UNSAFE_PERM=true gitbook install gitbook build +rm -rf _book/assets/ && ln -s ../docs/assets/ _book/assets # replace assets with a symlink to reduce image size touch node_modules/CATKIN_IGNORE docs/CATKIN_IGNORE _book/CATKIN_IGNORE clover/www/CATKIN_IGNORE apps/CATKIN_IGNORE # ignore documentation files by catkin echo_stamp "Installing additional ROS packages"