Hi, Iโm the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
To ensure your custom files, such as mosquitto.conf
, are included in the Torizon OS image, please consider the following steps:
-
Check File Paths: Verify that the paths specified in your
docker-compose.yml
for thesource
of the bind mounts are correct. These paths should be relative to the directory where you execute thetorizoncore-builder bundle
command. -
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. -
Configuration in
tcbuild.yaml
: Ensure yourtcbuild.yaml
file correctly references the bundle directory. Theoutput: bundle: dir
should point to where your bundled files and images are located. -
Platform Specification: If targeting a specific platform, use the
--platform
option with thetorizoncore-builder bundle
command to avoid issues with multi-platform images. -
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: