p2panda / aquadoggo

Node for the p2panda network handling validation, storage, aggregation and replication
GNU Affero General Public License v3.0
69 stars 5 forks source link

Dockerfile that uses existing release builds to build multi-platform #601

Closed jadehopepunk closed 7 months ago

jadehopepunk commented 9 months ago

Moved this into a branch in my repo so I could do other PRs as well. Original PR is at https://github.com/p2panda/aquadoggo/pull/588

📋 Checklist

jadehopepunk commented 9 months ago

@sandreae to follow up on your comment on PR #588, yes this approach is because build times were too long using docker buildx to compile cross platform. As in, hours and hours.

This approach is of course a little dodgy. It may be possible to use the first stage of this docker container to cross compile for the target platform using rust's native cross compiling, which is fast and is how you're building the builds at the moment.

jadehopepunk commented 7 months ago

This is a terrible approach. I've got a better way of doing this now, I'll file a new PR