apluslms / radar

Web service for analyzing program code similarity
4 stars 10 forks source link

Add support for multiarch container images (amd64/arm64) #42

Closed ihalaij1 closed 1 year ago

ihalaij1 commented 1 year ago

Description

What?

Add support for automatic building of multi-architecture container images (amd64/arm64).

This PR requires that service-base has multi-architecture support first.

Why?

Container images built with support for the ARM architecture perform much better on Apple Silicon laptops.

How?

A custom build hook is used to build the image for amd64 and arm64. The image is pushed to Docker Hub in the build hook.

Links about the docker buildx plugin for future reference:

Testing

I tested that Docker Hub Automated Builds work as expected.