-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17746 from Azure/main
[Do not squash] sync network branch with main
- Loading branch information
Showing
18,534 changed files
with
2,765,623 additions
and
998,103 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM mcr.microsoft.com/powershell:alpine-3.14 | ||
|
||
ARG REPOSITORY=PSGallery | ||
ARG MODULE=Az | ||
ARG CONFIG=config | ||
ARG AZURERM_CONTEXT_SETTINGS=AzureRmContextSettings.json | ||
ARG AZURE=/root/.Azure | ||
ARG VCS_REF="none" | ||
ARG BUILD_DATE= | ||
ARG VERSION= | ||
ARG IMAGE_NAME=mcr.microsoft.com/azure-powershell:${VERSION}-alpine-3.14 | ||
|
||
ENV AZUREPS_HOST_ENVIRONMENT="dockerImage/${VERSION}-alpine-3.14" | ||
|
||
LABEL maintainer="Azure PowerShell Team <azdevxps@microsoft.com>" \ | ||
readme.md="http://aka.ms/azpsdockerreadme" \ | ||
description="This Dockerfile will install the latest release of Azure PowerShell." \ | ||
org.label-schema.build-date=${BUILD_DATE} \ | ||
org.label-schema.usage="http://aka.ms/azpsdocker" \ | ||
org.label-schema.url="http://aka.ms/azpsdockerreadme" \ | ||
org.label-schema.vcs-url="https://github.com/Azure/azure-powershell" \ | ||
org.label-schema.name="azure powershell" \ | ||
org.label-schema.vendor="Azure PowerShell" \ | ||
org.label-schema.version=${VERSION} \ | ||
org.label-schema.schema-version="1.0" \ | ||
org.label-schema.vcs-ref=${VCS_REF} \ | ||
org.label-schema.docker.cmd="docker run --rm ${IMAGE_NAME} pwsh -c '\$PSVERSIONTABLE'" \ | ||
org.label-schema.docker.cmd.devel="docker run -it --rm -e 'DebugPreference=Continue' ${IMAGE_NAME} pwsh" \ | ||
org.label-schema.docker.cmd.test="currently not available" \ | ||
org.label-schema.docker.cmd.help="docker run --rm ${IMAGE_NAME} pwsh -c Get-Help" | ||
|
||
# install azure-powershell from PSGallery | ||
RUN pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Trusted && \ | ||
pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Scope AllUsers -Repository ${REPOSITORY} && \ | ||
pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Untrusted | ||
|
||
# create AzureRmContextSettings.json before it was generated | ||
COPY ${CONFIG}/${AZURERM_CONTEXT_SETTINGS} ${AZURE}/${AZURERM_CONTEXT_SETTINGS} | ||
|
||
CMD [ "pwsh" ] |
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,40 @@ | ||
FROM mcr.microsoft.com/powershell:ubuntu-20.04 | ||
|
||
ARG REPOSITORY=PSGallery | ||
ARG MODULE=Az | ||
ARG CONFIG=config | ||
ARG AZURERM_CONTEXT_SETTINGS=AzureRmContextSettings.json | ||
ARG AZURE=/root/.Azure | ||
ARG VCS_REF="none" | ||
ARG BUILD_DATE= | ||
ARG VERSION= | ||
ARG IMAGE_NAME=mcr.microsoft.com/azure-powershell:${VERSION}-ubuntu-20.04 | ||
|
||
ENV AZUREPS_HOST_ENVIRONMENT="dockerImage/${VERSION}-ubuntu-20.04" | ||
|
||
LABEL maintainer="Azure PowerShell Team <azdevxps@microsoft.com>" \ | ||
readme.md="http://aka.ms/azpsdockerreadme" \ | ||
description="This Dockerfile will install the latest release of Azure PowerShell." \ | ||
org.label-schema.build-date=${BUILD_DATE} \ | ||
org.label-schema.usage="http://aka.ms/azpsdocker" \ | ||
org.label-schema.url="http://aka.ms/azpsdockerreadme" \ | ||
org.label-schema.vcs-url="https://github.com/Azure/azure-powershell" \ | ||
org.label-schema.name="azure powershell" \ | ||
org.label-schema.vendor="Azure PowerShell" \ | ||
org.label-schema.version=${VERSION} \ | ||
org.label-schema.schema-version="1.0" \ | ||
org.label-schema.vcs-ref=${VCS_REF} \ | ||
org.label-schema.docker.cmd="docker run --rm ${IMAGE_NAME} pwsh -c '\$PSVERSIONTABLE'" \ | ||
org.label-schema.docker.cmd.devel="docker run -it --rm -e 'DebugPreference=Continue' ${IMAGE_NAME} pwsh" \ | ||
org.label-schema.docker.cmd.test="currently not available" \ | ||
org.label-schema.docker.cmd.help="docker run --rm ${IMAGE_NAME} pwsh -c Get-Help" | ||
|
||
# install azure-powershell from PSGallery | ||
RUN pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Trusted && \ | ||
pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Scope AllUsers -Repository ${REPOSITORY} && \ | ||
pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Untrusted | ||
|
||
# create AzureRmContextSettings.json before it was generated | ||
COPY ${CONFIG}/${AZURERM_CONTEXT_SETTINGS} ${AZURE}/${AZURERM_CONTEXT_SETTINGS} | ||
|
||
CMD [ "pwsh" ] |
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
Oops, something went wrong.