azurediskplugin

command
v1.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

How to build cross-platform container images

export DOCKER_CLI_EXPERIMENTAL=enabled

acrName=
az acr login -n $acrName

acrRepo=$acrName.azurecr.io/public/k8s/csi/azuredisk-csi
ver=v0.7.0

linux="linux-amd64"
make azuredisk
az acr build -r $acrName -t $acrRepo:$ver-$linux -f pkg/azurediskplugin/Dockerfile  --platform linux .

win="windows-1809-amd64"
make azuredisk-windows
az acr build -r $acrName -t $acrRepo:$ver-$win -f pkg/azurediskplugin/Windows.Dockerfile --platform windows .

docker manifest create $acrRepo:$ver $acrRepo:$ver-$linux $acrRepo:$ver-$win
docker manifest inspect $acrRepo:$ver
docker manifest push $acrRepo:$ver --purge

docker manifest create $acrRepo:latest $acrRepo:$ver-$linux $acrRepo:$ver-$win
docker manifest inspect $acrRepo:latest
docker manifest push $acrRepo:latest --purge

# check
docker manifest inspect mcr.microsoft.com/k8s/csi/azuredisk-csi:$ver
docker manifest inspect mcr.microsoft.com/k8s/csi/azuredisk-csi:latest

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL