Error in TCB: "Error trying to bundle Docker containers"

Hello,

I am facing an issue while using TorizonCore Builder (TCB) to bundle a customized image. During the build process, I receive the following error:

NOTE: TCB no longer expands environment variables present in the compose file.
Removing output directory ‘images/edgehub-linux_.torizon_5.4.342.dev-DN-4349d2a.imx8.cam’ due to build errors
Error: Error trying to bundle Docker containers
Error in Building image

Any guidance or insights on how to resolve this error would be greatly appreciated. I can provide further details or logs if needed.

Thank you!

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

Thank you for reaching out with your question. The error you’re encountering with TorizonCore Builder when bundling Docker containers seems to be related to the handling of environment variables in your Docker Compose file. TorizonCore Builder no longer expands these variables during the bundling process, which means they won’t be automatically replaced with their values.

To resolve this issue, you might consider the following steps:

  1. Check Environment Variables: Ensure that any environment variables used in your Docker Compose file are correctly defined. If they need to be expanded, you might need to handle this manually or adjust your configuration to avoid relying on expansion during the build process.

  2. Use Double Dollar Signs: If you need to include environment variables in your Docker Compose file without them being expanded, you can use double dollar signs ($$). This will prevent the variables from being expanded during the bundling process.

  3. Review Docker Compose File: Double-check your Docker Compose file for any syntax errors or misconfigurations that could lead to build failures. Ensure that all services and configurations are correctly defined.

  4. Platform Specification: If your Docker Compose file references multi-platform container images, ensure that you specify the correct platform using the --platform switch, as this can also cause bundling issues.

By addressing these areas, you should be able to resolve the error and successfully bundle your Docker containers with TorizonCore Builder. If the issue persists, consider simplifying your Docker Compose file to isolate the problem or testing with a minimal configuration to ensure the basic functionality is working correctly.

I hope this helps! If you have any more questions, feel free to ask.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

TorizonCore Builder - Docker issue.

Hi @hsharma

From the error message, it looks like you are trying to use an unsupported feature.

Can you provide a the tcbuild.yaml file and the steps to reproduce this error?

Also, it would be very helpful if you could provide the complete run log.