Conversation
|
@vlf-stefan-drobic I experience an issue where it seems that the images I build do not use the cache. I remember you faces the same issue do you have a workaround on this? |
It might be related to the permissions of the github actions, that was causing issues last time, I can take a more detailed look during the following days and see what's causing the issues, besides this LGTM! |
Caching might not work when dealing with multiple images or the caches might get dumped if they aren't used for more than ~one week. Might need to check up on this, but may be causing issues, could you provide any details as to what types of issues you were experiencing. |
@fedjo Any updates on this? |
@vlf-stefan-drobic As I understand from latest run here https://github.com/openagri-eu/OpenAgri-WeatherService/actions/runs/17551977274 The stage |
384d49a to
cd66f18
Compare
cd66f18 to
4d66ac7
Compare
|
@fedjo do we really need to worry about caching for arm64 build? If I understand correctly, the arm64 build will only be triggered manually from time to time, right? if that's the case, then maybe it's not worth worrying so much about the cache for this build. |
You are right Felipe. I was about to merge this PR, when I just saw your comment |
* Multiplatform builds - arm64 support (#2) * Add Dockerfile and compose file for arm64 * Rename docker files to x86 architecture * Add multi platform workflow with qemu * Typo * Sanitize branch name for docker image tag * Rename file * Try platform build in two jobs * Correct label tags * Create correct manifest * Debug caching in arm64 * Add category field when creating FC activity type, fix some typing errors (#10) * Add optional, hasAgriParcel field to FC Observation (#9) * Add optional, hasAgriParcel field to FC Observation * Change value type to dict * Fix pydantic inherit error (#11) * Run eagerly all build jobs and update manifest (#12) * Robust build in workflow and compose
Summary
This PR adds support for arm64 builds and introduces platform-specific Docker configurations.
Changes
Added arm64 build support (tested on Raspberry Pi 3B).
Created a Docker image for arm64 architecture.
Split Docker Compose files per platform:
docker-compose.x86_64.ymldocker-compose.arm64.ymlSplit Dockerfiles per platform (not required now, but prepared for future needs).
Added a workflow:
x86_64image.arm64.Notes
docker-compose.yml.Local Build Instructions (Raspberry Pi)
To build and run manually on a RPI: