swiftlang / swift-docker

Docker Official Image packaging for Swift
https://swift.org
Apache License 2.0
1.35k stars 182 forks source link

Windows: address further comments from docker-library #360

Closed compnerd closed 10 months ago

compnerd commented 10 months ago

Start-Process may silently mishandle error handling even with error handling setup. Explicitly check exit codes. Switch to the Windows base image with Python from Microsoft to help shave off ~1G from the image size and reduce complexity. Unfortunately, this requires a bit more work on our side to setup - we need to setup some environment variables.

Remove the 20H2 image as it was silently failing to install python and there are not preexisting tags for the base image with python.

Tested on Windows 11 Pro 22H2 (22621.2428).

compnerd commented 10 months ago

@swift-ci please test

compnerd commented 10 months ago

@swift-ci please test