Skip to content
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

Add more Docker + ASP.NET Core samples #5450

Closed
natemcmaster opened this issue Feb 13, 2018 · 13 comments · Fixed by #26912
Closed

Add more Docker + ASP.NET Core samples #5450

natemcmaster opened this issue Feb 13, 2018 · 13 comments · Fixed by #26912
Assignees
Labels
code help wanted Sample code help wanted. doc-enhancement Help wanted Up for grabs. We would accept a PR to help resolve this issue Pri1 High priority, do before Pri2 and Pri3
Milestone

Comments

@natemcmaster
Copy link
Contributor

natemcmaster commented Feb 13, 2018

We frequently get asked to build features into our Docker images that are already possible and easy to do without needing changes to the base images.

Instead, we would like to address this by adding more samples and docs for these commonly asked features/questions.

  • How to use multi-stage builds
  • Using NodeJS 9
  • Add NodeJS so JavascriptServices works at runtime
  • Using powershell in Linux images or NanoServer 1709
  • Running tests in docker
  • Writing a Dockerfile to building a solution or multiple .csproj files
  • Debugging remotely into a docker container (vsdbg)

cc @glennc

[Edit - append by @rick-anderson]
Create basic windows/MacOs dev/productions samples using HTTPS from https://github.com/dotnet/dotnet-docker/tree/master/samples

@glennc
Copy link
Contributor

glennc commented Feb 13, 2018

What I am thinking here is something akin to a Docker recipes page. Including examples for each of the ones you listed as well as how to do libgdiplus in Docker.

I think we could link to this from the top of our scaffold-ed Dockerfiles.

//cc @richlander

@Rick-Anderson Rick-Anderson added this to the Backlog milestone Feb 14, 2018
@Rick-Anderson
Copy link
Contributor

//cc @spboyer

@MichaelSimons
Copy link
Member

Here is an additional request for doc on ASP.NET Core SPA templates - dotnet/dotnet-docker#393

@scottaddie scottaddie added the Help wanted Up for grabs. We would accept a PR to help resolve this issue label Mar 2, 2018
@johnknoop
Copy link

One use case that I don't even know if it's supported, and at least not documented, is to be able to just recompile the application without needing to rebuild and restart the container. Right now I have to do CTRL+F5 for the entire docker-compose, even if I've just made changes to one of the projects, which results in a very slow feedback cycle. It would be nice to get the same live update experience for compiled code, as I do for static files. Perhaps using dotnet watch, or, failing that, using some post-build script that updates the running container with new binaries or something like that.

@dapalmi
Copy link

dapalmi commented May 7, 2018

Ok. Sorry. I thought this is the continuation of this issue

@dapalmi
Copy link

dapalmi commented May 7, 2018

@Rick-Anderson The workaround works. Thanks. It just doesn't fit into the otherwise very nicely flowing ASP NET Core workflows. In Visual Studio Angular Templates are offered and you can add Docker support, so me as a normal user would expect this to work without having to google a workaround first

@Rick-Anderson
Copy link
Contributor

@dapalmi agreed.
@scottaddie can you work with the PU to get a fwlink on the wizard to warn folks. The fwlink could point an H2 in our Angular doc, which in turn could point to that issue.

@zd-dalibor
Copy link

@natemcmaster This is good way to install nodejs in linux based docker image. But there is one issue with docker integration with visual studio because visual studio mount local source in docker container but all native nodejs components (like node sass) are built for windows not for linux 😞

@dotnet dotnet deleted a comment from dapalmi Oct 25, 2018
@Rick-Anderson
Copy link
Contributor

@natemcmaster @glennc do you have any samples/content we can start with?

@Rick-Anderson Rick-Anderson added the Pri1 High priority, do before Pri2 and Pri3 label Oct 25, 2018
@Rick-Anderson
Copy link
Contributor

@natemcmaster @glennc do you have any samples/content we can start with?

@glennc
Copy link
Contributor

glennc commented Jan 15, 2019

This might be solved by the work that @richlander has been doing.

@spboyer
Copy link
Contributor

spboyer commented Jan 18, 2019

See https://github.com/dotnet/dotnet-docker
There are well-documented samples in /samples/aspnetapp with README for many scenarios.

@SirwanAfifi

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code help wanted Sample code help wanted. doc-enhancement Help wanted Up for grabs. We would accept a PR to help resolve this issue Pri1 High priority, do before Pri2 and Pri3
Projects
None yet
Development

Successfully merging a pull request may close this issue.