-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
555 changed files
with
18,654 additions
and
3,572 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<PoliCheckExclusions> | ||
|
||
</PoliCheckExclusions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"instanceUrl": "https://devdiv.visualstudio.com/", | ||
"template": "TFSDEVDIV", | ||
"projectName": "DEVDIV", | ||
"areaPath": "DevDiv\\ASP.NET Core\\Policy Violations", | ||
"iterationPath": "DevDiv", | ||
"notificationAliases": [ "[email protected]" ], | ||
"repositoryName": "aspire", | ||
"codebaseName": "aspire" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Updating the test container registry | ||
|
||
Docker Hub has a rate limit on how often requests can be made from an IP. Because of this, we can't use Docker Hub in our build and automation. Instead, we have created a mirror container registry (netaspireci.azurecr.io) to mirror the public images used in our tests. | ||
|
||
Use the following guide to add a new image, or update an existing image with a new version. | ||
|
||
1. Install az cli - https://learn.microsoft.com/cli/azure/install-azure-cli | ||
2. Log in to the container registry (Assumes you are permitted to login to the registry. Contact an admin if you need permissions.) | ||
1. `az login` | ||
2. `az acr login --name netaspireci --expose-token --output tsv --query accessToken | docker login netaspireci.azurecr.io -u 00000000-0000-0000-0000-000000000000 --password-stdin` | ||
3. See the following docs for more information | ||
1. https://learn.microsoft.com/azure/container-registry/container-registry-get-started-docker-cli#log-in-to-a-registry | ||
2. https://github.com/dotnet/dotnet-docker/blob/main/samples/push-image-to-acr.md#login-to-acr | ||
3. Pull the image locally, tag it, and push it | ||
1. `docker pull docker.io/library/redis:7.2` | ||
2. `docker tag library/redis:7.2 netaspireci.azurecr.io/library/redis:7.2` | ||
3. `docker push netaspireci.azurecr.io/library/redis:7.2` | ||
4. Alternatively, you can try the import command, but unless you have Docker Hub credentials it can fail due to rate limits. | ||
1. `az acr import --name netaspireci --source docker.io/library/redis:7.2 --image library/redis:7.2 --username <Docker Hub user name> --password <Docker Hub token>` | ||
2. See https://learn.microsoft.com/azure/container-registry/container-registry-import-images?tabs=azure-cli#import-from-docker-hub | ||
|
||
> [!IMPORTANT] | ||
> Note that the image name in netaspireci.azurecr.io needs to match exactly the name in docker.io or else the test won't be able to simply override the container registry. |
Oops, something went wrong.