Kimera-VIO icon indicating copy to clipboard operation
Kimera-VIO copied to clipboard

Reduce docker image size

Open yhabib29 opened this issue 3 years ago • 2 comments

The docker image built takes 17.9 GB which seems a lot to me.

By looking into the Dockerfile, I saw that the size might me reduced a lot by removing local binaries in:

  • opencv/build/
  • opengv/build/
  • DBoW2/build/
  • gtsam/build/
  • V1_01_easy.zip
  • /var/lib/apt/lists/* (apt cache)

This will reduces the image size to 7.14 GB.

yhabib29 avatar Mar 03 '21 19:03 yhabib29

Amazing, thanks! If you push that dockerfile with the rm commands, I'll be sure to merge it!

ToniRV avatar Mar 03 '21 19:03 ToniRV

Initiated a PR, but still have to test it.

Oh, and neither the display nor the entrypoint worked for me:

  • The script was not accounting the dataset path argument. I have to manually specify the command when running the docker image: /root/Kimera-VIO/scripts/stereoVIOEuroc.bash -p /root/euroc -r
  • For the display, I used x11docker as a workaround.

yhabib29 avatar Mar 04 '21 00:03 yhabib29