github.com/sijibomii/docker@v0.0.0-20231230191044-5cf6ca554647/hack/make/.ensure-frozen-images-windows (about) 1 #!/bin/bash 2 set -e 3 4 # This scripts sets up the required images for Windows to Windows CI 5 6 # Tag windowsservercore as latest 7 set +e 8 ! BUILD=$(docker images | grep windowsservercore | grep -v latest | awk '{print $2}') 9 if [ -z $BUILD ]; then 10 echo "ERROR: Could not find windowsservercore images" 11 exit 1 12 fi 13 14 ! LATESTCOUNT=$(docker images | grep windowsservercore | grep -v $BUILD | wc -l) 15 if [ $LATESTCOUNT -ne 1 ]; then 16 set -e 17 docker tag windowsservercore:$BUILD windowsservercore:latest 18 echo "INFO: Tagged windowsservercore:$BUILD with latest" 19 fi 20 21 # Busybox (requires windowsservercore) 22 if [ -z "$(docker images | grep busybox)" ]; then 23 echo "INFO: Building busybox" 24 docker build -t busybox https://raw.githubusercontent.com/jhowardmsft/busybox/master/Dockerfile 25 fi