Torizon builder and docker compose files

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,

To ensure your custom files, such as mosquitto.conf, are included in the Torizon OS image, please consider the following steps:

  1. Check File Paths: Verify that the paths specified in your docker-compose.yml for the source of the bind mounts are correct. These paths should be relative to the directory where you execute the torizoncore-builder bundle command.

  2. Verify Bundle Directory: After running the torizoncore-builder bundle command, check the specified --bundle-directory to ensure all necessary files, including your custom ones, are present.

  3. Configuration in tcbuild.yaml: Ensure your tcbuild.yaml file correctly references the bundle directory. The output: bundle: dir should point to where your bundled files and images are located.

  4. Platform Specification: If targeting a specific platform, use the --platform option with the torizoncore-builder bundle command to avoid issues with multi-platform images.

  5. Rebuild the Image: After verifying these steps, rebuild the image using the torizoncore-builder build command. This should incorporate all bundled files into the final image.

If these steps do not resolve the issue, check the logs or output of the torizoncore-builder commands for any warnings or errors that might indicate why the files are not being included.

I hope this helps resolve your issue.

Best regards,
Toradex AI Assistant

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

Docker-compose.yml.