-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
docker support #367
docker support #367
Conversation
Any progress on this? |
Can you test this PR, please? I need help with this PR to migrate to net core 3.0. Can you help with this? Thanks |
I found only 2 minor configuration issues. The default seed of the db did not add the proper allowed redirect URI for Swagger to work. Swagger is running at http://127.0.0.1.xip.io:5000 so it should be allowed to be redirected to that endpoint, Once I added that manually, like the screenshot below, it worked. Adding an entry (conditionally) to the seed will solve that. Secondly the IdentityServerUri configuration for the API is incorrect in the
And not the URI of the API service itself at port 5000. The parameter describes where you should authenticate, not where the API service is running. Once these 2 things were properly configured, everything seemed to work, including 2FA and API calls. |
@skoruba as you mentioned .NET Core 3 support, the dockerfiles will require a little update to use the proper build images. So either you merge #390 first and update this PR or vice versa. Your choice. Here is a reference for building .NET Core 3.0 Docker images with Github Actions: https://hjerpbakk.com/blog/2019/10/09/asp-net-core-docker-and-github-actions |
As for reference, to get a running version docker-compose build
docker-compose up We might want to add that to the documentation somewhere. For people using ReSharper, add the |
You are awesome @bravecobra - thanks for your feedback - can you send a PR with your changes? |
@skoruba that would result in yet another PR for this. I can add one, but I'm sure @ChrisSzabo is willing to add these few minor adjustments. I'll make the changes in my fork based on his branch but I suggest we give him a bit of time to add them in. I'll submit an PR otherwise. |
I tried to resolve the merge conflicts as well, but it seems there were "a lot" of configuration changes. @skoruba is that something you want to fix or should I attempt to fix that as well? That shouldn't be too hard, but it will result in changes in the |
For sure @bravecobra - I will merge this PR. Can you resolve conflicts on this PR @ChrisSzabo and if you have time - it would be perfect - add the suggestions from @bravecobra. Thanks guys for your great work. |
@skoruba will you be merging the .NET Core 3.0 branch to dev first, as that would affect this branch a b bit as well? |
For sure. |
@bravecobra - Done, merged on dev. :-) |
I took a stab at fixing those merge conflicts, and it seems you already added the |
Cool, tnx. I'll work that in as well. |
Perfect, thanks a lot. 👍 |
Added support for building docker containers for Admin, Api, and STS projects. Based off of code from @rherlt (Feature/docker support seaear base #325).
This version is a little more efficient when building the images because the newer VS docker tooling generated dockerfile code that also copies project references (.csproj files) when creating the dependency cache layers.
To run:
docker-compose up --build
To stop:
docker-compose down
Api Url: http://127.0.0.1.xip.io:5000/swagger/index.html
IdentityServer Admin: http://127.0.0.1.xip.io:9000
IdentityServer : http://127.0.0.1.xip.io