Skip to content

Commit 54ca58b

Browse files
beboundjiasli
andauthored
[LTS] Backport #31533: Drop Azure Linux (Mariner) 2.0 support (#32463)
Co-authored-by: Jiashuo Li <[email protected]>
1 parent 1f6931f commit 54ca58b

File tree

5 files changed

+8
-28
lines changed

5 files changed

+8
-28
lines changed

azure-pipelines.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -344,12 +344,6 @@ jobs:
344344
strategy:
345345
matrix:
346346
${{ each arch in parameters.architectures }}:
347-
Mariner 2.0 ${{ arch.name }}:
348-
pool: ${{ arch.pool }}
349-
artifactName: docker-mariner2.0-${{ arch.value }}
350-
dockerfile: azure-linux.dockerfile
351-
packageArtifactName: rpm-mariner2.0-${{ arch.value }}
352-
image: mcr.microsoft.com/cbl-mariner/base/core:2.0
353347
Azure Linux 3.0 ${{ arch.name }}:
354348
pool: ${{ arch.pool }}
355349
artifactName: docker-azurelinux3.0-${{ arch.value }}
@@ -394,9 +388,6 @@ jobs:
394388
strategy:
395389
matrix:
396390
${{ each arch in parameters.architectures }}:
397-
Mariner 2.0 ${{ arch.name }}:
398-
pool: ${{ arch.pool }}
399-
artifactName: docker-mariner2.0-${{ arch.value }}
400391
Azure Linux 3.0 ${{ arch.name }}:
401392
pool: ${{ arch.pool }}
402393
artifactName: docker-azurelinux3.0-${{ arch.value }}
@@ -720,10 +711,6 @@ jobs:
720711
strategy:
721712
matrix:
722713
${{ each arch in parameters.architectures }}:
723-
Mariner 2.0 ${{ arch.name }}:
724-
image: mcr.microsoft.com/cbl-mariner/base/core:2.0
725-
artifact: rpm-mariner2.0-${{ arch.value }}
726-
pool: ${{ arch.pool }}
727714
Azure Linux 3.0 ${{ arch.name }}:
728715
image: mcr.microsoft.com/azurelinux/base/core:3.0
729716
artifact: rpm-azurelinux3.0-${{ arch.value }}
@@ -770,10 +757,6 @@ jobs:
770757
strategy:
771758
matrix:
772759
${{ each arch in parameters.architectures }}:
773-
Mariner 2.0 ${{ arch.name }}:
774-
image: mcr.microsoft.com/cbl-mariner/base/core:2.0
775-
artifact: rpm-mariner2.0-${{ arch.value }}
776-
pool: ${{ arch.pool }}
777760
Azure Linux 3.0 ${{ arch.name }}:
778761
image: mcr.microsoft.com/azurelinux/base/core:3.0
779762
artifact: rpm-azurelinux3.0-${{ arch.value }}

scripts/release/rpm/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ _Fedora:_
1414
docker build --target build-env -f ./scripts/release/rpm/fedora.dockerfile -t azure/azure-cli:fedora29-builder .
1515
```
1616

17-
_Mariner:_
17+
_Azure Linux:_
1818

1919
```bash
20-
docker build --target build-env -f ./scripts/release/rpm/mariner.dockerfile -t azure/azure-cli:mariner-builder .
20+
docker build --target build-env -f ./scripts/release/rpm/azurelinux.dockerfile -t azure/azure-cli:azurelinux-builder .
2121
```
2222

2323
After several minutes, this will have created a Docker image named `azure/azure-cli:centos7-builder` containing an
@@ -34,9 +34,9 @@ _Fedora:_
3434
docker run azure/azure-cli:fedora29-builder cat /root/rpmbuild/RPMS/x86_64/azure-cli-dev-1.fc29.x86_64.rpm > ./bin/azure-cli-dev-1.fc29.x86_64.rpm
3535
```
3636

37-
_Mariner:_
37+
_Azure Linux:_
3838
```bash
39-
docker run azure/azure-cli:mariner-builder cat /usr/src/mariner/RPMS/x86_64/azure-cli-dev-1.cm1.x86_64.rpm > ./bin/azure-cli-dev-1.cm1.x86_64.rpm
39+
docker run azure/azure-cli:azurelinux-builder cat /usr/src/azl/RPMS/x86_64/azure-cli-dev-1.azl3.x86_64.rpm > ./bin/azure-cli-dev-1.azl3.x86_64.rpm
4040
```
4141

4242
This launches a container running from the image built and tagged by the previous command, prints the contents of the

scripts/release/rpm/azure-cli.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ rm %{buildroot}%{cli_lib_dir}/pyvenv.cfg
6868
# - We also can't use %{_lib}, because %{_lib} expands to different values on difference OSes:
6969
# https://github.com/Azure/azure-cli/pull/20061
7070
# - Fedora/CentOS/RedHat: relative path 'lib64'
71-
# - Mariner: abolute path '/usr/lib'
71+
# - Azure Linux: absolute path '/usr/lib'
7272
# The only solution left is to hard-code 'lib64' as we only release 64-bit RPM packages.
7373
mkdir -p %{buildroot}%{_bindir}
7474
python_version=$(ls %{buildroot}%{cli_lib_dir}/lib/ | head -n 1)

scripts/release/rpm/azurelinux.dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
ARG image=mcr.microsoft.com/cbl-mariner/base/core:2.0
1+
ARG image=mcr.microsoft.com/azurelinux/base/core:3.0
22

33
FROM ${image} AS build-env
44
ARG cli_version=dev
55

66
RUN tdnf update -y
77

88
# kernel-headers, glibc-devel, binutils are needed to install psutil python package on ARM64
9-
# ca-certificates: Mariner by default only adds a very minimal set of root certs to trust certain Microsoft
9+
# ca-certificates: Azure Linux by default only adds a very minimal set of root certs to trust certain Microsoft
1010
# resources (primarily packages.microsoft.com). ca-certificates contains the official Microsoft curated set of
1111
# trusted root certificates. It has replaced the set of Mozilla Trusted Root Certificates.
1212
RUN tdnf install -y binutils file rpm-build gcc libffi-devel python3-devel openssl-devel make diffutils patch \
@@ -16,9 +16,6 @@ WORKDIR /azure-cli
1616

1717
COPY . .
1818

19-
# Mariner 2.0's python3 is 3.9, the rpm paths are
20-
# /usr/src/mariner/RPMS/x86_64/azure-cli-2.63.0-1.cm2.x86_64.rpm
21-
# /usr/src/mariner/RPMS/aarch64/azure-cli-2.63.0-1.cm2.aarch64.rpm
2219
# Azure Linux 3's python3 is 3.12, the rpm paths are
2320
# /usr/src/azl/RPMS/x86_64/azure-cli-2.63.0-1.azl3.x86_64.rpm
2421
# /usr/src/azl/RPMS/aarch64/azure-cli-2.63.0-1.azl3.aarch64.rpm

scripts/release/rpm/pipeline_azurelinux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -exv
66

77
: "${BUILD_STAGINGDIRECTORY:?BUILD_STAGINGDIRECTORY environment variable not set.}"
88

9-
# IMAGE should be Azure Linux docker image url, such as mcr.microsoft.com/cbl-mariner/base/core:2.0
9+
# IMAGE should be Azure Linux docker image url, such as mcr.microsoft.com/azurelinux/base/core:3.0
1010
: "${IMAGE:?IMAGE environment variable not set.}"
1111

1212
CLI_VERSION=`cat src/azure-cli/azure/cli/__main__.py | grep __version__ | sed s/' '//g | sed s/'__version__='// | sed s/\"//g`

0 commit comments

Comments
 (0)