Skip to content

Commit bb0bdec

Browse files
authored
Updates remaining CBL-Mariner refs to AzLinux 3 (#620)
* Updates remaining CBL-Mariner refs to AzLinux 3 * Fix azlinux 2 ref
1 parent a97a990 commit bb0bdec

3 files changed

Lines changed: 18 additions & 20 deletions

File tree

docs/add-package-into-cloudshell.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ mkdir -p ~/.local/bin/
1515
tar -zxf oras_${VERSION}_*.tar.gz -C ~/.local/bin/ oras
1616
rm oras_${VERSION}_*.tar.gz
1717
```
18+
1819
Reference: https://oras.land/docs/installation#linux
20+
1921
> [!NOTE]
2022
> If you would like your package to persist across multiple Cloud Shell sessions, a storage account is required.
2123
@@ -30,16 +32,15 @@ To meet security and compliance requirements, all packages must be installed fro
3032
### Check if package is available in Azure Linux
3133

3234
> [!NOTE]
33-
> The instructions assume Azure Linux 2.0 because CloudShell is currently based on Azure Linux 2.0
35+
> The instructions assume Azure Linux 3.0 because CloudShell is currently based on Azure Linux 3.0
3436
35-
Please check if the package is available here:
36-
https://packages.microsoft.com/cbl-mariner/2.0/prod/base/x86_64/Packages/
37+
Please check if the package is available here: <https://packages.microsoft.com/azurelinux/3.0/prod/>
3738

3839
Alternatively, you can use `docker` to check if a package exists in Azure Linux. Run the following command in a terminal:
3940

41+
```sh
42+
docker run mcr.microsoft.com/azurelinux/base/core:3.0 bash -c "tdnf list | grep <package name>"
4043
```
41-
docker run mcr.microsoft.com/cbl-mariner/base/core:2.0 bash -c "tdnf list | grep <package name>"
42-
```
4344

4445
### Requesting Azure Linux package repository for the package
4546

@@ -51,10 +52,9 @@ To start the process of adding your package to Azure Linux repository, please op
5152

5253
To track this request in Cloud Shell, we will need an issue on GitHub. If the package is already in the Azure Linux repository, please open a pull request to include it, as described below. If the package is not yet available in the Azure Linux repo please open an issue making the request for the addition and link to the issue you raised in the Azure Linux GitHub repo in the previous step. Of course,before taking either of these steps, check if someone else has already made the request. If they have, please add your thumbs up so we know you need it too.
5354

54-
Please create a PR for adding the package in [base.Dockerfile](https://github.com/Azure/CloudShell/blob/master/linux/base.Dockerfile)'s package list as shown below:
55-
55+
Please create a PR for adding the package in [base.Dockerfile](https://github.com/Azure/CloudShell/blob/master/linux/base.Dockerfile)'s package list as shown below:
5656

57-
```
57+
```dockerfile
5858
RUN tdnf update -y --refresh && \
5959
bash ./tdnfinstall.sh \
6060
mariner-repos-extended && \
@@ -65,5 +65,3 @@ RUN tdnf update -y --refresh && \
6565
... \
6666
<package name>
6767
```
68-
69-

linux/base.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
# of the base docker file stored in a container registry. This avoids accidentally introducing a change in
99
# the base image
1010

11-
# CBL-Mariner is an internal Linux distribution for Microsoft’s cloud infrastructure and edge products and services.
12-
# CBL-Mariner is designed to provide a consistent platform for these devices and services and will enhance Microsoft’s
11+
# Azure Linux is an internal Linux distribution for Microsoft’s cloud infrastructure and edge products and services.
12+
# Azure Linux is designed to provide a consistent platform for these devices and services and will enhance Microsoft’s
1313
# ability to stay current on Linux updates.
14-
# https://github.com/microsoft/CBL-Mariner
14+
# https://github.com/microsoft/azurelinux
1515
FROM mcr.microsoft.com/azurelinux/base/core:3.0
1616
LABEL org.opencontainers.image.source="https://github.com/Azure/CloudShell"
1717

tests/PSinLinuxCloudShellImage.Tests.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ Describe "Various programs installed with expected versions" {
88
}
99
}
1010

11-
It "Base OS - CBL-Mariner 2.0" {
11+
It "Base OS - Azure Linux 3.0" {
1212

1313
[System.Environment]::OSVersion.Platform | Should -Be 'Unix'
1414
$osDetails = Get-Content /etc/*release
15-
$osDetails | Where-Object {$_.Contains('VERSION_ID="3.0"')} | Should -Not -BeNullOrEmpty
16-
$osDetails | Where-Object {$_.Contains('NAME="Microsoft Azure Linux"')} | Should -Not -BeNullOrEmpty
15+
$osDetails | Where-Object { $_.Contains('VERSION_ID="3.0"') } | Should -Not -BeNullOrEmpty
16+
$osDetails | Where-Object { $_.Contains('NAME="Microsoft Azure Linux"') } | Should -Not -BeNullOrEmpty
1717
}
1818

1919
It "Static Versions" {
@@ -57,12 +57,12 @@ Describe "Various programs installed with expected versions" {
5757
"pwsh-preview"
5858
)
5959

60-
$specialmatcher = ($special | % { "($_)"}) -join "|"
60+
$specialmatcher = ($special | % { "($_)" }) -join "|"
6161

62-
$missing = ($command_diffs | ? { $_ -like "<*" } | % { $_.Replace("< ", "") } | ? { $_ -notmatch $specialmatcher}) -join ","
62+
$missing = ($command_diffs | ? { $_ -like "<*" } | % { $_.Replace("< ", "") } | ? { $_ -notmatch $specialmatcher }) -join ","
6363
$missing | Should -Be "" -Because "Commands '$missing' should be installed on the path but were not found. No commands should have been removed unexpectedly. If one really should be deleted, remove it from command_list"
6464

65-
$added = ($command_diffs | ? { $_ -like ">*" } | % { $_.Replace("> ", "") } | ? { $_ -notmatch $specialmatcher}) -join ","
65+
$added = ($command_diffs | ? { $_ -like ">*" } | % { $_.Replace("> ", "") } | ? { $_ -notmatch $specialmatcher }) -join ","
6666
$added | Should -Be "" -Because "Commands '$added' were unexpectedly found on the path. Probably this is good, in which case add them to command_list"
6767

6868
}
@@ -100,7 +100,7 @@ Describe "PowerShell Modules" {
100100

101101
$special = @("PSReadLine")
102102

103-
(Get-Module -ListAvailable | Group-Object Name | Where-Object { $_.Count -gt 1 } ) | Where-Object { $_.Name -notin $special} | Should -Be $null
103+
(Get-Module -ListAvailable | Group-Object Name | Where-Object { $_.Count -gt 1 } ) | Where-Object { $_.Name -notin $special } | Should -Be $null
104104

105105
}
106106

0 commit comments

Comments
 (0)