Skip to content

Commit 5b370b2

Browse files
lbussellCopilotmthalman
committed
Add Copilot Instructions (#6247)
Co-authored-by: Copilot <[email protected]> Co-authored-by: Matt Thalman <[email protected]>
1 parent cd0203f commit 5b370b2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/copilot-instructions.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Instructions for GitHub Copilot
2+
3+
## How to edit Dockerfiles and READMEs
4+
5+
- Dockerfiles and READMEs are generated from templates using Cottle. Dockerfile templates are located in the `eng/dockerfile-templates` directory, and README templates are located in the `eng/readme-templates` directory.
6+
- Do not edit the Dockerfiles in `src/` directly.
7+
- To generate Dockerfiles, run `pwsh ./eng/dockerfile-templates/Get-GeneratedDockerfiles.ps1`.
8+
- Do not edit `*README*.md` files directly.
9+
- To generate READMEs, run `pwsh ./eng/readme-templates/Get-GeneratedReadmes.ps1`.
10+
11+
## Manifests
12+
13+
- `manifest.json` describes the Dockerfiles in this repo and how they should be built, tagged, and published.
14+
- `manifest.versions.json` contains product version information used by the Dockerfile templates. It is typically updated using the `eng/update-dependencies` tool.
15+
16+
## How to build and test
17+
18+
- Only build and test images that were changed. When changing many images, just build and test a single combination of .NET version and OS as a sanity check.
19+
- To build Dockerfiles, run `pwsh ./build-and-test.ps1 -mode 'Build' -paths '*glob*pattern*'`. For example, to build all .NET 9.0 Ubuntu Noble images, run `./build-and-test.ps1 -paths '*9.0*noble*'`.
20+
- To run image tests, run `pwsh ./tests/run-tests.ps1 -paths '*glob*pattern*'`.
21+
- To run only the pre-build validation tests, run `pwsh ./tests/run-tests.ps1 -paths '*' -TestCategories @('pre-build')`.
22+
23+
## Other
24+
25+
- Do not edit files in `eng/common/`.

0 commit comments

Comments
 (0)