Skip to content

Commit

Permalink
Add tzdata-legacy package to Ubuntu Noble and Noble Chiseled `extra…
Browse files Browse the repository at this point in the history
…` images (dotnet#6110)
  • Loading branch information
lbussell committed Jan 7, 2025
1 parent 4f39b60 commit 3250dca
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 13 deletions.
27 changes: 15 additions & 12 deletions eng/dockerfile-templates/Dockerfile.linux.install-deps
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,26 @@
]
))) ^

set extraPkgs to sort(cat(standardPkgs,
when (isAzureLinux,
set extraPkgs to
sort(cat(standardPkgs,
when (isAzureLinux,
[
"icu",
"tzdata"
],
when(isAlpine,
[
"icu-data-full",
"icu-libs",
"tzdata"
],
[
cat("libicu", VARIABLES[cat("libicu|", OS_VERSION_BASE)]),
"tzdata"
]
)))) ^
[
"icu-data-full",
"icu-libs",
"tzdata"
],
cat(
[
cat("libicu", VARIABLES[cat("libicu|", OS_VERSION_BASE)]),
"tzdata"
],
when(OS_VERSION_BASE = "noble", [ "tzdata-legacy" ], []))
)))) ^

set pkgs to
when(ARGS["is-aot"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"tzdata_zoneinfo-icu"
],
[
"tzdata_zoneinfo"
"tzdata_zoneinfo",
"tzdata-legacy_zoneinfo"
]) ^
set icuPkgs to [ cat("libicu", VARIABLES[cat("libicu|", osVersionBase)], "_libs") ] ^
set extraPkgs to cat(sort(cat(standardPkgs, tzdataPkgs, icuPkgs))) ^
Expand Down
1 change: 1 addition & 0 deletions src/runtime-deps/8.0/noble-chiseled-extra/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ RUN mkdir -p /rootfs/var/lib/dpkg/ \
libicu74_libs \
libssl3t64_libs \
libstdc++6_libs \
tzdata-legacy_zoneinfo \
tzdata_zoneinfo \
zlib1g_libs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ RUN mkdir -p /rootfs/var/lib/dpkg/ \
libicu74_libs \
libssl3t64_libs \
libstdc++6_libs \
tzdata-legacy_zoneinfo \
tzdata_zoneinfo \
zlib1g_libs

Expand Down
1 change: 1 addition & 0 deletions src/runtime-deps/8.0/noble/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ RUN apt-get update \
libssl3t64 \
libstdc++6 \
tzdata \
tzdata-legacy \
zlib1g \
&& rm -rf /var/lib/apt/lists/*

Expand Down
1 change: 1 addition & 0 deletions src/runtime-deps/8.0/noble/arm64v8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ RUN apt-get update \
libssl3t64 \
libstdc++6 \
tzdata \
tzdata-legacy \
zlib1g \
&& rm -rf /var/lib/apt/lists/*

Expand Down
1 change: 1 addition & 0 deletions src/runtime-deps/9.0/noble-chiseled-extra/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ RUN mkdir -p /rootfs/var/lib/dpkg/ \
libicu74_libs \
libssl3t64_libs \
libstdc++6_libs \
tzdata-legacy_zoneinfo \
tzdata_zoneinfo


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ RUN mkdir -p /rootfs/var/lib/dpkg/ \
libicu74_libs \
libssl3t64_libs \
libstdc++6_libs \
tzdata-legacy_zoneinfo \
tzdata_zoneinfo


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ RUN mkdir -p /rootfs/var/lib/dpkg/ \
libicu74_libs \
libssl3t64_libs \
libstdc++6_libs \
tzdata-legacy_zoneinfo \
tzdata_zoneinfo


Expand Down
1 change: 1 addition & 0 deletions src/runtime-deps/9.0/noble/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ RUN apt-get update \
libssl3t64 \
libstdc++6 \
tzdata \
tzdata-legacy \
&& rm -rf /var/lib/apt/lists/*

# Create a non-root user and group
Expand Down
1 change: 1 addition & 0 deletions src/runtime-deps/9.0/noble/arm32v7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ RUN apt-get update \
libssl3t64 \
libstdc++6 \
tzdata \
tzdata-legacy \
&& rm -rf /var/lib/apt/lists/*

# Create a non-root user and group
Expand Down
1 change: 1 addition & 0 deletions src/runtime-deps/9.0/noble/arm64v8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ RUN apt-get update \
libssl3t64 \
libstdc++6 \
tzdata \
tzdata-legacy \
&& rm -rf /var/lib/apt/lists/*

# Create a non-root user and group
Expand Down
1 change: 1 addition & 0 deletions tests/Microsoft.DotNet.Docker.Tests/ProductImageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ private static IEnumerable<string> GetRuntimeDepsPackages(ProductImageData image
{ OS: OS.NobleChiseled } => new[]
{
"libicu74",
"tzdata-legacy",
"tzdata"
},
{ OS: OS.JammyChiseled } => new[]
Expand Down

0 comments on commit 3250dca

Please sign in to comment.