You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing a multiarch build (make push-multiarch) we might need to override additional args that might be set in the Dockerfile.Windows file for a multi-image build, for example
When doing a multiarch build (
make push-multiarch
) we might need to override additional args that might be set in theDockerfile.Windows
file for a multi-image build, for examplehttps://github.com/kubernetes-csi/node-driver-registrar/blob/bd1ad6268a014dceaa36c71c14a3fc0ad8240b58/Dockerfile.Windows#L1-L15
We can override
BUILD_IMAGE
andBUILD_IMAGE_TAG
before building the docker image e.g.The existing Makefile has support for https://github.com/kubernetes-csi/csi-release-tools/blob/master/prow.sh#L80
BUILD_PLATFORMS="linux amd64; windows amd64 .exe; ...
, in the Makefile this string is split by;
and used in this fragment:We'd like to include additional build args when calling
docker build
One approach that I've seen in PD CSI is to have multiple targets per windows build https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/blob/cfe67c8322c9094030bdf28737a50eb5b1c2a542/Makefile#L51-L78, an approach would be to split
BUILD_PLATFORMS
toLINUX_BUILD_PLATFORMS
andWINDOWS_BUILD_PLATFORMS
and then do:Another approach would be to add more tokens to the string (I'm not sure if at the end to make it backwards compatible) for windows e.g.
These are just a few approaches, any feedback would be appreciated!
Also ref kubernetes-csi/node-driver-registrar#135
cc @jingxu97
The text was updated successfully, but these errors were encountered: