Replies: 4 comments
-
@dapalmi - Thanks for the feedback on the samples! |
Beta Was this translation helpful? Give feedback.
-
@dapalmi - As far as environment variables go, you should be able to define your docker-compose file in a multi-platform manner by using the
That's essentially what these commands do already. If the cert already exists, it doesn't create it. Is that sufficient for you? How is this relevant to the docker-compose file? |
Beta Was this translation helpful? Give feedback.
-
hi all, Adding to the suggestion of @dapalmi, I have also found myself looking to have a way to run these commands in the container. Currently, the process requires generating the certificate in the host, or at least that is what the docs say., which makes it a manual process. But if we can run them in the docker-compose, it can be automated. In order to execute the commands, there is a dependency on the SDK. Is there a way to run these commands either in the docker-compose or docker file, but perhaps is not documented? Thanks in advance, |
Beta Was this translation helpful? Give feedback.
-
[Triage] |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks a lot for the documentation how to use the new and easy to use HTTPS by default for Asp.Net Core 2.1 with Docker containers (https://github.com/dotnet/dotnet-docker/blob/master/samples/aspnetapp/aspnetcore-docker-https.md).
I have two request to make development easier:
Because of %USERPROFILE% (Windows) and ${HOME} (Mac) in the docker-compose file it is not useful if this file is used both for Mac developers and Windows developers. Is there a way to make this multi platform compatible?
Is there a way to execute those commands when executing the docker-compose file to check if a certificate already exists and to create one if it does not yet exists:
dotnet dev-certs https -ep %USERPROFILE%.aspnet\https\aspnetapp.pfx -p crypticpassword
dotnet dev-certs https --trust
Beta Was this translation helpful? Give feedback.
All reactions