-
Debug Application under VSCode and Docker–part 22
What I wanted is that people that have only a container application ( docker) and VSCode ( not Visual Studio,nor .NET Core Framework) be able to debug the application and run it. That means,I no longer require to install .NET Core SDK on the local PC Read a lot https://code.visualstudio.com/docs/remote/containers#_devcontainerjson-reference https://github.com/microsoft/vscode-dev-containers/tree/master/containers/dotnetcore-3.0 https://code.visualstudio.com/docs/remote/containers Some important things…
-
Making visible the application -part 21
Trying to make visible the docker with https://labs.play-with-docker.com/?stack=https://raw.githubusercontent.com/ignatandrei/InfoValutar/master/PlayWithDocker/WebAPI.yml leaving an issue: https://github.com/play-with-docker/play-with-docker/issues/370 Decided to add to the readme the docker . Going to Shields.io . Putting some lines for beginners with docker. Reading more about port –binding . Figuring this is is: ENV ASPNETCORE_URLS=http://*:8080 #ENV ASPNETCORE_URLS=http://0.0.0.0:8080 And that was all !
-
Docker–fourth part–part 20
Time to push to docker 1. putting the docker password into the pipeline variables 2. Modifying the yaml 3. Waiting for build Error in Docker: Incorrect name or password Now,I want to create 2 jobs to isolate Docker from the main build. I encounter some errors in the yaml file . That shows fast in…
-
Friday Links 347
10 Schools of Philosophy and Why You Should Know Them | Big Think RendleLabs/Beeline: Cut out the middleman and serialize directly from a DbDataReader to UTF8 Json bytes. Six Tiny But Awesome ES7 + ES8 Features Six More Tiny But Awesome ES6 Features Six Tiny But Awesome ES6 Features TypeScript: Precise domain modeling with discriminated…
-
Docker–third part–part 19
Trying different codes in the csproj to add dynamically content from a folder ( including the dll’s copied there ) and to retrieve in the output directory: ( reading from internet of all those stuff) Version 1: <!–<Target Name=”ContentsBeforeBuild” AfterTargets=”BeforeBuild”> <ItemGroup> <Content Include=”plugins\**” /> </ItemGroup> </Target>—> Version 2: <!–<Content Update=”plugins\**\*.dll” CopyToOutputDirectory=”Always” LinkBase=”plugins”> </Content>—> Version 3:…
-
Docker–second part–part 18
Now,I must replace all with powershell files. Some problem – if I build twice,it says : resource already exists. So I need to add –Force parameter. Now pushing to GitHub https://github.com/ignatandrei/InfoValutar/commit/2c487963da53f04f94a0a7b060999f8e27635179 and see if it works. No,error on .sln build. ObjectNotFound: (/home/runner/work/I\u2026nfoValutar/plugins” Apparently,it is a Unicode character ? Try to save as ASCII file. Waiting…
-
Docker–first part–part 17
Trying to put the web into docker. In order to have easy builds for the developer,we copy the sln,then the csproj,then dotnet restore,then copy files. This way we get advantage of Docker caching. Created dockerForWebAPI.txt and run docker build -f dockerForWebAPI.txt -t infovalutar .. Docker has not recursive copy – https://github.com/moby/moby/issues/15858 Solution: copy the .csproj…
-
Swagger/OpenAPI –part 16
In order to see the WebAPI,Swagger is a default technology. Reading https://docs.microsoft.com/en-us/aspnet/core/tutorials/web-api-help-pages-using-swagger?view=aspnetcore-3.0,seems to have 2 options: Swashbuckle and NSwag. Looking at github repositories,both have > 2k stars,active development,tutorials. The only thing that I see more at NSwag are generators for Angular. Integrated NSwag as for the tutorial from https://docs.microsoft.com/en-us/aspnet/core/tutorials/getting-started-with-nswag?view=aspnetcore-3.0&tabs=visual-studio . There is a small problem…
-
DOTNET DAYS -NEXT YEAR
Hi! We are delighted to invite you to share our passion for technology at the second edition of the dotnetdays conference that will take place on 29 February 2020. About dotnetdays Dotnetdays is a .NET event driven by a great passion for technology and the .NET community. The second edition will…
-
Friday Links 346
Implement background tasks in microservices with IHostedService and the BackgroundService class | Microsoft Docs Storyteller – Living Documentation Generation Sure,You Can Just Use RabbitMQ – DZone Integration Enterprise Integration Patterns: Designing,Building,and Deploying Messaging Solutions: Gregor Hohpe,Bobby Woolf: 9780321200686: Amazon.com: Books Extending the async methods in C# – Dissecting the code codemirror/CodeMirror: In-browser code editor tmpvar/jsdom:…
I am ok , you are ok