-
Notifications
You must be signed in to change notification settings - Fork 4.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
Updating UbuntuNetCoreKeyring dockerfile to use net core 5 #17980
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
cecc380
Updating UbuntuNetCoreKeyring dockerfile to use net core 5
schaabs 37cc1ce
Update ubuntu netcore keyring dockerfile to use net 5
benbp 8424425
Merge pull request #2 from benbp/benbp/keyring-dockerfile
schaabs c279c9e
adding python to installed packages
schaabs afb85d9
Merge branch 'keyring-container-update' of https://github.com/schaabs…
schaabs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-bionic AS build | ||
FROM mcr.microsoft.com/dotnet/sdk:5.0-focal AS build | ||
|
||
ENV \ | ||
NO_AT_BRIDGE=1 \ | ||
DOCKER_CONTAINER_NAME="ubuntu_netcore_keyring" \ | ||
PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \ | ||
POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-DotnetCoreSDK-Ubuntu-18.04 | ||
POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-DotnetCoreSDK-Ubuntu-20.04 | ||
|
||
# Install GNOME keyring | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
libsecret-1-dev \ | ||
dbus-x11 \ | ||
gnome-keyring | ||
gnome-keyring \ | ||
python | ||
|
||
# Install PowerShell && .net core runtime 2.1 | ||
RUN wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb \ | ||
RUN wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb \ | ||
&& dpkg -i packages-microsoft-prod.deb \ | ||
&& apt-get update \ | ||
&& apt-get install -y powershell \ | ||
&& pwsh --version \ | ||
&& apt-get install -y dotnet-runtime-2.1 \ | ||
&& dotnet --list-runtimes | ||
&& dotnet --list-runtimes |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does .NET 5 require Ubuntu20?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mostly ask because we are still using ubuntu 18 in most of our other pipelines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see a docker image for 5.0 based on Ubuntu 18 in the the full tag listing here. If you think it's an issue to use Ubuntu 20 here we can build our own image.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting they seem to support .NET 5 on 18.04 (https://docs.microsoft.com/en-us/dotnet/core/install/linux#ubuntu) but they don't publish a docker container. I don't know of any specific issues with Ubuntu 20.04 currently but I know the last time we tried moving there were some sorting issues due to some cultural library changes in the OS. You can certainly try 20.04 if that is easier but if you start seeing weird issues we might want to reconsider until we move everything to 20.04.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weshaggard the only issue we've found so far was python was not installed by default, but if we see more we can build one from 18.04.