Skip to content
This repository was archived by the owner on Sep 26, 2024. It is now read-only.
This repository was archived by the owner on Sep 26, 2024. It is now read-only.

Optimize Docker Image for Camera Module to Fit Jetson-TX2 Memory Constraints #3

@Cruiz102

Description

@Cruiz102

Overview

The Docker image used for running the camera module is significantly larger than the memory limits of our target hardware, the Jetson-TX2. It's essential to modify the production vision Docker to align with these hardware constraints.

Proposed Solutions for Docker Optimization

  1. Remove Unnecessary Dependencies
    Problem: The current Docker image includes extra Python and OpenCV dependencies that may be contributing to its large size.
    Solution: Identify and remove any non-essential Python and OpenCV dependencies from the Docker image.
    Removed unnecesary python and OpenCV dependencies.

In production we can remove the cuda installed by the ZED and and include the one in the host.
Use a docker volume for sharing the ros noetic dependencies between others containers.

  1. Optimize CUDA Usage
    Problem: The Docker image includes a separate CUDA installation via ZED, which may be redundant.
    Solution: Remove the CUDA installation from the Docker image and leverage the CUDA version already installed on the host (Jetson-TX2). This should reduce the image size significantly.
  2. Utilize Docker Volumes for ROS Noetic Dependencies
    Suggestion: Implement Docker volumes to share ROS Noetic dependencies across different containers. This approach can help reduce the size of each individual Docker image by avoiding duplicate dependencies.

Create a bash script for automatizating all this commands and create the Documentation probably in a wiki on how this problem got resolved.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions