1
1
# Windows build environment for rust crates
2
2
3
3
This repository contains the source of a Docker container the Rust project uses
4
- to build third-party crates on Windows. It is based on ** Windows Server Core,
5
- version 1803** , and contains all the native dependencies used by the Rust
6
- crates we know of.
4
+ to build third-party crates on Windows. It is based on ** Windows Server Core** ,
5
+ and contains all the native dependencies used by the Rust crates we know of.
7
6
8
7
## Dependencies
9
8
@@ -16,6 +15,10 @@ This image must be run on a Windows host with both containerization and Hyper-V
16
15
enabled (Windows 10 Pro or Windows Server >=2016). If you wish to run ` crater `
17
16
on an Azure VM, this requires a virtual machine image tagged with "v3".
18
17
18
+ The version of the base image can be configured by passing `--build-arg
19
+ BASE_IMAGE_VER=${YOUR_DESIRED_VERSION_NUMBER}` to ` docker build`. It defaults
20
+ to ` :1803 ` (note the leading colon) which specifies Windows Server Core,
21
+ version 1803.
19
22
20
23
Hyper-V can be enabled in [ the GUI] [ hyperv ] or in ` Powershell ` with:
21
24
@@ -29,7 +32,7 @@ A reboot is required for this to take effect.
29
32
30
33
31
34
The Docker host must have a [ build number] [ build ] equal to that of the image
32
- you wish to run (presently ` mcr.microsoft.com/windows/servercore:1803 ` ).
35
+ you wish to run (by default ` mcr.microsoft.com/windows/servercore:1803 ` ).
33
36
34
37
[ Docker Desktop] [ ] is required to run native Windows containers; this image
35
38
will not work with Docker Toolbox. Once installed, ensure that Docker Desktop
0 commit comments