Commit 9ab29bc
committed
Dockerfile: Add Rust support
Updates the `build` container image to be able to build Rust code
(including Rust UEFI code).
The following additional applications are installed to assist with
setting up Rust dependencies:
`curl`, `jq`, and `unzip`
The `CARGO_HOME` and `RUSTUP_HOME` environment variables are set in
the image and the cargo directory is added to the system path.
The version of Rust specified in `Version.njk` is installed alongside
support for other tools used in Project Mu Rust builds such as
`cargo-make` and `cargo-tarpaulin`. The latest release binaries are
pulled directly from their GitHub releases to minimze container
size impact.
The resulting container images can be used for local development and
within pipelines.
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>1 parent 55cb1ca commit 9ab29bc
1 file changed
Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
91 | 122 | | |
92 | 123 | | |
93 | 124 | | |
| |||
145 | 176 | | |
146 | 177 | | |
147 | 178 | | |
148 | | - | |
149 | 179 | | |
150 | 180 | | |
151 | 181 | | |
| |||
0 commit comments