-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{CI} Use MCR docker mirror #29304
{CI} Use MCR docker mirror #29304
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
CI |
@@ -323,6 +323,7 @@ jobs: | |||
filePath: build_scripts\windows\scripts\test_zip_installation.ps1 | |||
|
|||
- job: BuildDockerImageAlpine | |||
continueOnError: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By adding this, we can select the partially failed CI run in release pipeline.
/bin/bash -c "cd /mnt/pypi && ls && pip install --find-links ./ azure_cli-$CLI_VERSION*whl && az self-test && az --version && sleep 5" | ||
|
||
echo "== Testing pip install on Python 3.11 ==" | ||
docker run \ | ||
--rm -v $PYPI_FILES:/mnt/pypi python:3.11 \ | ||
--rm -v $PYPI_FILES:/mnt/pypi mcr.microsoft.com/mirror/docker/library/python:3.11-slim \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like python:3.11
also exists and there is no need to change to python:3.11-slim
:
https://mcr.microsoft.com/en-us/product/mirror/docker/library/python/tags
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3.9
does not exists. Adding -slim
to make sure they share the same format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, MCR should contain python:3.9
as it is a popular image.
Ubuntu It is now available: https://mcr.microsoft.com/en-us/product/mirror/docker/library/ubuntu/tags |
Use it to prevent the docker rate limit error: