csi-driver-smb/cmd/smbplugin
dependabot[bot] 8bfe5482a5
chore(deps): bump build-image/debian-base in /cmd/smbplugin
Bumps build-image/debian-base from bookworm-v1.0.4 to bookworm-v1.0.5.

---
updated-dependencies:
- dependency-name: build-image/debian-base
  dependency-version: bookworm-v1.0.5
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-17 17:15:47 +00:00
..
Dockerfile chore(deps): bump build-image/debian-base in /cmd/smbplugin 2025-06-17 17:15:47 +00:00
Dockerfile.Windows fix: add OSVersion arg in Dockerfile.Windows to fix windows 2022 test failure 2024-08-14 14:20:55 +00:00
Dockerfile.WindowsHostProcess feat: support windows host-process deployment 2024-12-30 02:18:24 +00:00
README.md chore: fix Windows build in build pipeline 2022-05-01 15:24:10 +00:00
main.go feat: support windows host-process deployment 2024-12-30 02:18:24 +00:00
main_test.go test: add unit test for main function 2024-12-24 07:33:48 +00:00

README.md

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/smb-csi
ver=v0.6.0

linux="linux-amd64"
make smb
az acr build -r $acrName -t $acrRepo:$ver-$linux -f cmd/smbplugin/Dockerfile  --platform linux .

win="windows-1809-amd64"
make smb-windows
az acr build -r $acrName -t $acrRepo:$ver-$win -f cmd/smbplugin/Dockerfile.Windows --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/smb-csi:$ver
docker manifest inspect mcr.microsoft.com/k8s/csi/smb-csi:latest