Add support for multiplatform builds
Current Behavior
docker run -it registry1.dso.mil/ironbank/opensource/nodejs/nodejs20:20.17 node -v
Unable to find image 'registry1.dso.mil/ironbank/opensource/nodejs/nodejs20:20.17' locally
20.17: Pulling from ironbank/opensource/nodejs/nodejs20
1e6b7297048a: Pull complete
55a0a4b299e1: Pull complete
8e0511112699: Pull complete
Digest: sha256:ee2de1f7aaa5c4c138cb1816e96f5127591d00e6daffd02239b3da85d8414a68
Status: Downloaded newer image for registry1.dso.mil/ironbank/opensource/nodejs/nodejs20:20.17
docker: image with reference registry1.dso.mil/ironbank/opensource/nodejs/nodejs20:20.17 was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64
Feature description
I and my team do development on corporate macOS laptops. When we pull an image from Iron Bank the image needs to provide a build for linux/arm64
as that is what macOS expects.
Use cases
(Detailed description of the use case for this feature)
Not having this has required my team to create docker-compose.overide.yml file to check what OS we are using and for macOS to switch to the NodeJS image from Docker Hub.
It would be valuable to be able to simplify our local development to use the Iron Bank hosted images as well as to test our code using the images we use for production.
Benefits
(How does this benefit others)
It would be valuable for any developer on macOS to test their code using the images used for production.
Requirements
(Any requirements for this feature to be enabled?)
I'm not aware of anything.
Links / references
(List of links or references that support this feature)
This feature is possible as the team that maintains fiesta-wagon-ingress implemented it back in October. Though how it was done, I am not sure.
Tasks
-
Feature has been implemented
Please read the Iron Bank Documentation for more info