-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.0 ubuntu images are missing tzdata #1264
Comments
Would a PR for adding tzdata to https://github.com/dotnet/dotnet-docker/tree/master/3.0/runtime-deps for the Ubuntu images be accepted? It looks like it's included in the alpine builds, but not |
Assigning to Matt for some investigation. |
I've confirmed that adding the package resolves the issue of the call to The tzdata package ends up adding 2.1 MB to the image. Seems reasonable to add it for consistency with Alpine. |
@richlander, @dagood, @leecow, @mthalman, @dleeapho, @janvorli - We have been including Questions:
|
We use the same |
Agreed on not adding it to Debian and Ubuntu. runtime-deps is meant to enable baseline functionality (hello world for all default templates) as generically as possible. |
In order to maintain consistency among the |
It would be nice if this was mentioned in the migration guide, for migration from dotnet core 2 to dotnet core 3. Something like if you're using alpine images and using anything of dates be sure to add the tzdata package in your docker file. Even if you aren't using timezones explicitly without this package the following code responds differently. if (DateTime.TryParse(someDateString, null, DateTimeStyles.AssumeLocal, out DateTime dt))
{
....
} |
Steps to reproduce the issue
Deploy a dotnet core application that calls:
Expected behavior
Get the timezoneInfo
Actual behavior
throws an exception:
I did try with tags:
mcr.microsoft.com/dotnet/core/aspnet:3.0-disco and
mcr.microsoft.com/dotnet/core/aspnet:3.0-bionic
As the error states the "timezone info is missing" (Could not find a part of the path '/usr/share/zoneinfo)
The fix is easy enough, install tzdata:
...but it probably should be included in the core container image anyway
The text was updated successfully, but these errors were encountered: