o3de / ROSConDemo

A robotic fruit picking demo project for O3DE with ROS 2 Gem
Other
70 stars 23 forks source link

Building docker image fails #193

Closed michalpelka closed 1 year ago

michalpelka commented 1 year ago

I was trying to build the ROSConDemo image according to https://github.com/o3de/ROSConDemo/tree/main/docker . Docker compose consumes all available disk space (about ~ 400 GB) and crashes.

docker build -t roscon_demo -f ROSConDemo/docker/Dockerfile .
sending build context to Docker daemon  113.3GB
j-rivero commented 1 year ago

I was able to build it during the merge of #117. I reviewed the efficiency of the image space using dive and the total image size here was 44Gb with a reported efficiency of 99%.

Screenshot from 2022-11-09 19-02-54

Let me try to build it again without using cache to see if something has change.

j-rivero commented 1 year ago

I think that I know what's happening: note that the build context is referring to the info sent to the docker daemon and this info is all the directories and files inside the directory from which you are running the docker build command, somewhere in your home or code directory probably. Let's change the README to avoid this.