-
Notifications
You must be signed in to change notification settings - Fork 168
Docker container crashes on "view in browser" #525
Comments
FYI - a search for the error message reveals this is a SQLLITE error dotnet/efcore#3089 which appears to be solved by updating the sqlite image on the operating system. Possible solution is to update the aspnet dockerfile OR update the dockerfile generator in this package. I'll go looking for the aspnet docker image maintainers to see if I can fix the image. |
@glennc where should issues like this be reported? |
It is tough to say actually. It appears this particular issue is caused by a dependency of the OmniSharp framework's generator image (https://github.com/aspnet/aspnet-docker) but is caused by an error in Entity Framework (dotnet/efcore#3089) but at the end of the day, it is THIS generator that doesn't work.. which, as a day-one entry point for new developers is actually pretty critical that it works without error. Otherwise novice & kick-the-can day 1 users may throw the entire framework out as "hopelessly broken" during that all important try-it-out phase. (like baby ducklings imprinting on a mamma, if the framework works, new developers are going to feel confident in rolling with it!) So really at the end of the day, it's the generator's responsibility to both (a) test itself and (b) work. Anyways - that's not me trying to be facetious or a jerk, I'm actually on a "hot lead" right now and may be able to fix this in a little bit (assuming a bit of luck and no whammies). The PR will probably go to the aspnet-docker repository with and explanation and reference to the specific fixes listed here so your maintainers can decide whether to incorporate the fixes in as a workaround while waiting for the aspnet-docker team to get the code in. EDIT: ... aannnd I just noticed you were asking someone other than me where to put this :) ooops. |
The problem is simple. Ubuntu does not came with sqlite3 and default aspnet-docker image does not install it as not envisioned for x-platform usage (at least yet). |
Issue #525 - Install sqlite3 at version required by EntityFramework. This PR patches official aspnet-docker image with sqlite3 required by EntityFramework in web projects Thanks @AlexChesser!
closed via: AlexChesser@af3cc85 |
Note that this error can be replicated on a system with docker installed and using the contents of the following repo:
https://github.com/alexchesser/aspnet-docker-sample
steps:
yo aspnet
with WebApplication as the destination)cd WebApplication
FROM microsoft/aspnet:1.0.0-rc1
withFROM microsoft/latest
docker build -t chesser-is-super-cool .
(OK, the tag is optional)docker run -P -d chesser-is-super-cool
curl http://192.168.100.99:5000
(from host system) or run on docker as demonstrated belowSEE ERROR RESULTS:
The text was updated successfully, but these errors were encountered: