Skip to content

Commit

Permalink
publish: Stop publishing "All In One" container (Azure#4616)
Browse files Browse the repository at this point in the history
As part of our release process, we build and push a container image
that contains `azd` plus a large collection of language runtimes and
other tools.

In practice, the resulting image is giant and anyone who wants to use
`azd` inside of a container is better served by building their own and
including `azd`. We also have not been updating this container over
time (and a while back we removed it from the list of artifacts we
list per PR).

To make our lives simpler, let's just stop building and publishing
this container image. If folks were depedent on it and need updates,
let's move them over to using one of our supported install methods to
get them to add `azd` to their container image as the build it instead
of using ours.
  • Loading branch information
ellismg authored Dec 11, 2024
1 parent 852e8e4 commit 070162c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 235 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Latest builds:
| ------- | ------- | -------- |
| azd | ![azd version](https://img.shields.io/endpoint?url=https%3A%2F%2Fazuresdkreleasepreview.blob.core.windows.net%2Fazd%2Fstandalone%2Flatest%2Fshield.json) | [Windows](https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/latest/azd-windows-amd64.zip) | [Linux](https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/latest/azd-linux-amd64.tar.gz) | [Mac](https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/latest/azd-darwin-amd64.zip) |
| vscode extension | ![vscode extension version](https://img.shields.io/endpoint?url=https%3A%2F%2Fazuresdkreleasepreview.blob.core.windows.net%2Fazd%2Fvscode%2Flatest%2Fshield.json) | [VSIX](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.azure-dev) |
| docker image | ![azd version](https://img.shields.io/endpoint?url=https%3A%2F%2Fazuresdkreleasepreview.blob.core.windows.net%2Fazd%2Fstandalone%2Flatest%2Fshield.json) | [`mcr.microsoft.com/azure-dev-cli-apps:latest`](https://mcr.microsoft.com/en-us/product/azure-dev-cli-apps/about)

The Azure Developer CLI (`azd`) is a developer-centric command-line interface (CLI) tool for creating Azure applications. The goals of the CLI are to:

Expand Down
62 changes: 0 additions & 62 deletions cli/Dockerfile

This file was deleted.

26 changes: 0 additions & 26 deletions eng/pipelines/build-notice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,32 +115,6 @@ jobs:

- task: ComponentGovernanceComponentDetection@0

- job: BuildScanContainer
dependsOn: BuildCli
pool:
name: azsdk-pool-mms-ubuntu-2004-general
OSVmImage: MMSUbuntu20.04

variables:
ContainerName: azure-dev:cg-scan

steps:
- checkout: self
- task: DownloadPipelineArtifact@2
inputs:
artifact: azd-linux-amd64
path: cli/bin

- bash: |
docker build . -t $(ContainerName) -f cli/Dockerfile
displayName: Build container
- task: ComponentGovernanceComponentDetection@0
inputs:
dockerImagesToScan: $(ContainerName)

- task: ComponentGovernanceComponentDetection@0

- job: GenerateNoticeTxt
pool:
name: azsdk-pool-mms-ubuntu-2004-general
Expand Down
66 changes: 0 additions & 66 deletions eng/pipelines/templates/stages/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,57 +73,6 @@ stages:
UploadMsi: true
PublishBrewFormula: true

- deployment: Publish_Container
dependsOn: Publish_Release
condition: >-
and(
succeeded(),
ne('true', variables['Skip.Publish'])
)
environment: azure-dev

pool:
name: azsdk-pool-mms-ubuntu-2004-general
image: azsdk-pool-mms-ubuntu-2004-1espt
os: linux

templateContext:
inputs:
- input: checkout
repository: self


strategy:
runOnce:
deploy:
steps:
- task: PowerShell@2
inputs:
pwsh: true
targetType: filePath
filePath: eng/scripts/Set-CliVersionVariable.ps1
displayName: Set CLI_VERSION

- pwsh: |
# Initial tag
$dockerTags = '$(CLI_VERSION)'
$isPublishingGa = eng/scripts/Test-ShouldReleasePackageVersion.ps1 `
-CliVersion '$(CLI_VERSION)'
if ($isPublishingGa) {
$dockerTags += ";latest"
}
Write-Host "Setting DockerImageTags to $dockerTags"
Write-Host "###vso[task.setvariable variable=DockerImageTags]$dockerTags"
displayName: Set DockerImageTags
- template: /eng/pipelines/templates/steps/publish-cli-container.yml
parameters:
DockerImageTags: $(DockerImageTags)
ReleaseSyndicatedDockerContainer: true

- deployment: Publish_Choco
dependsOn: Publish_Release
condition: >-
Expand Down Expand Up @@ -389,13 +338,6 @@ stages:
PublishShield: false
UploadMsi: true

- template: /eng/pipelines/templates/steps/publish-cli-container.yml
parameters:
DockerImageTags: daily;$(CLI_VERSION)
ReleaseSyndicatedDockerContainer: false
# Artifacts are already downloaded in publish-cli.yml
DownloadArtifacts: false

- job: Publish_For_PR
condition: >-
and(
Expand Down Expand Up @@ -439,14 +381,6 @@ stages:
UploadInstaller: true
UploadMsi: true

- ${{ if eq(variables['Build.Repository.Name'], 'Azure/azure-dev') }}:
- template: /eng/pipelines/templates/steps/publish-cli-container.yml
parameters:
DockerImageTags: pr-$(PRNumber)
ReleaseSyndicatedDockerContainer: false
# Artifacts are already downloaded in publish-cli.yml
DownloadArtifacts: false

- pwsh: |
$urlBase = "$(publish-storage-location)/azd/standalone/pr/$(PRNumber)"
Write-Host "##vso[task.setvariable variable=UrlBase;isOutput=true]$urlBase"
Expand Down
80 changes: 0 additions & 80 deletions eng/pipelines/templates/steps/publish-cli-container.yml

This file was deleted.

0 comments on commit 070162c

Please sign in to comment.