home-climate-control / dz

Home Climate Control Core: *the* Open Source multi-zone temperature and climate control system.
http://homeclimatecontrol.com/
GNU General Public License v3.0
59 stars 7 forks source link

Implement platform specific build for jibDockerBuild task #305

Open climategadgets opened 6 months ago

climategadgets commented 6 months ago

Expected Behavior

./gradlew jibDockerBuild produces a usable container on any platform.

Actual Behavior

An attempt to run this task on a Raspberry Pi will result in the following message when starting the container:

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

Root Cause

jibDockerBuild:multi-platform image building not supported when pushing to Docker engine

Workaround

Until a good solution is found, you'll have to uncomment a block of code to produce a valid container.

Final solution will be coming.