Adds support to reference external or prebuilt image references#3269
Conversation
b99846e to
2286573
Compare
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash: pwsh: WindowsPowerShell install MSI install Standalone Binary
MSIContainerDocumentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
Adds the ability to reference public or prebuilt image references.
Features
imageproperty at the root of service configuration only valid forcontainerappimageproperty within docker configuration options to set image name generationtagproperty for generating final docker image path & tagsNotes:
projectdefined) the docker configuration options allow developer to reference existing container images.imagesetting does not contain a registry endpoint then docker hub is assumed.projectandimageare mutually exclusive and cannot be set at the same timecontoso.azurecr.io/myapp:latestcan be referenced as well.Examples
Reference a public image from docker hub
In this example the project is referencing the prebuilt image
nginxfor acontainerappservice. No application code or building is required. The container app revision will directly reference the public image on docker hub.Reference a public image and copy it to private azure container registry
In this example the image reference
nginxwill be tagged and pushed to thecontoso.azurecr.ioazure container registry duringazd deploy. The container app revision will reference the copied nginx image on the specified registry.Reference a public image and rename while copying to azure container registry
In this example the image reference
nginxwill be tagged with the specified image/tag and pushed to thecontoso.azurecr.ioazure container registry duringazd deploy. The container app revision will reference the copied nginx image on the specified registry.Generates the following fully qualified image tag:
contoso.azurecr.io/my-custom-nginx:latesttagged from the publicnginximage.