-
Notifications
You must be signed in to change notification settings - Fork 80
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
script requires bash on Alpine #173
Comments
Unless and until dotnet/install-scripts#173 is fixed. cc @mthalman @bozturkMSFT
cc @richlander |
|
@danmoseley Install scripts don't manage dependencies today. Why do you think it should be different for bash? One reason I can think of is: with any other dependency, we have the ability to print some meaningful message (such as a link to dependencies page). |
@bozturkMSFT this is a dependency of your own script: |
That is true. But my point is: I'm not looking for concrete answers, just trying to make sure that I fully understand the situation 🙂 |
I think it's important to consider installation dependencies separate from runtime dependencies. IMO, the fact that libssl is needed to run a .NET app is unrelated to the question of how the script itself should handle its own dependency on bash. You should be allowed to run the install script before installing .NET runtime dependencies without a problem. Also, the eventual goal is to have the script install dependencies (see #2 and Phase 4 of dotnet/core#5651), so the argument of runtime dependencies would become moot at that point. |
In my mind, there are two kinds of dependencies -- those of the script itself, and those necessary for dotnet to actually run after installed. For the latter I know the script historically attempted to log when they were missing, and I had earlier opened an issue here that that logging was incomplete/incorrect; you pointed out that it probably wasn't even appropriate for the install script to attempt to keep up to date with the dependencies required by the runtime -- I think that's reasonable -- and you removed the logging. It seems to me it's a little different when the script itself requires a dependency to work - ideally it has as few dependencies as possible, simply so that it's as easy and as frictionless as possible to use anywhere. Eg., if you can use Thoughts? |
Oh, crossed posts with Matt.. |
* Document that bash is required for the install script Unless and until dotnet/install-scripts#173 is fixed. cc @mthalman @bozturkMSFT * Update docs/core/install/linux-scripted-manual.md Co-authored-by: Andy (Steve) De George <[email protected]> * syntax cleaning Co-authored-by: Andy (Steve) De George <[email protected]>
@danmoseley The primary use case for Alpine is containers. Wouldn't you generally get the SDK as part of the container? I'd like to understand the benefit before we consider supporting a new shell. It is hard for us to take them away and Bash and PowerShell are both in very wide usage. |
That's the case only if you use a .NET container image. There are cases where it makes more sense to use another technology's container image as the base and then add .NET to it. This is particularly true when you consider how easy it is to install .NET into a container. |
@KathleenDollard asked me about this. I think the bash dependency is fine for now, and that we should wait for customer feedback for supporting non-bash scenarios. |
My only thought is that this script may be the very first .NET touch point for a customer considering it trying it out, and if it fails they may move on rather than engaging to give that feedback. But, I'm fine with what you propose - shall I close then? |
We should rely on documentation for now until we hear more from others. Having myself played with the difference between If we decide |
On Alpine the default shell is "ash". To run dotnet-install.sh, it is necessary first to install "bash" (at a minimum because it uses bash in its shebang line). Which can easily be done, but has to be figured out. Ideally there would be a way to run this script without bash - although that my require an Alpine-specific script.
cc @mthalman
The text was updated successfully, but these errors were encountered: