Skip to content

Commit

Permalink
Update base images to Azure Linux 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marcschier committed Jan 16, 2025
1 parent 8dd3162 commit a6e3bec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PublishProfile>DefaultContainer</PublishProfile>
<ContainerRepository>iotedge/opc-publisher</ContainerRepository>
<ContainerUser>root</ContainerUser>
<ContainerBaseImage>mcr.microsoft.com/dotnet/aspnet:9.0-cbl-mariner2.0-distroless</ContainerBaseImage>
<ContainerBaseImage>mcr.microsoft.com/dotnet/aspnet:9.0-azurelinux3.0-distroless</ContainerBaseImage>
</PropertyGroup>
<ItemGroup>
<ContainerEnvironmentVariable Include="APP_UID" Value="" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<PublishProfile>DefaultContainer</PublishProfile>
<ContainerRepository>iot/industrial-cli</ContainerRepository>
<ContainerRuntimeIdentifier>linux-x64</ContainerRuntimeIdentifier>
<ContainerBaseImage>mcr.microsoft.com/dotnet/runtime:9.0-cbl-mariner2.0-distroless</ContainerBaseImage>
<ContainerBaseImage>mcr.microsoft.com/dotnet/runtime:9.0-azurelinux3.0-distroless</ContainerBaseImage>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="9.0.1" />
Expand Down
6 changes: 3 additions & 3 deletions tools/scripts/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Tag to publish under. Defaults "latest"
.PARAMETER BranchName
The bvanch to use for the repo inside the registry.
The branch to use for the repo inside the registry.
.PARAMETER NoBuild
Whether to not build before publishing.
.PARAMETER NoPublish
Expand Down Expand Up @@ -122,10 +122,10 @@ Get-ChildItem $Path -Filter *.csproj -Recurse | ForEach-Object {

# see architecture tags e.g., here https://hub.docker.com/_/microsoft-dotnet-aspnet
if ($script:Arch -eq "x64") {
$baseImage = "$($baseImage)-cbl-mariner-distroless-amd64"
$baseImage = "$($baseImage)-azurelinux3.0-amd64"
}
if ($script:Arch -eq "arm64") {
$baseImage = "$($baseImage)-cbl-mariner-distroless-arm64v8"
$baseImage = "$($baseImage)-azurelinux3.0-arm64v8"
}
if ($script:Arch -eq "arm") {
$baseImage = "$($baseImage)-alpine-arm32v7"
Expand Down

0 comments on commit a6e3bec

Please sign in to comment.