dotnet
on
docker
on
linux
Andrei Mustață
DotNet Iasi
06/11/2018
Me
- Software-related activities
- Software-related tinkering
- Installed printers for family
Linux
- Anybody?
- OS
- Been around for a while
- High entry barrier, e.g. beard
- "but it doesn't have my device drivers :("
- 2 screens mandatory

Linux
Linux
.NET
- Anyone?
- Nice language
- mmm SharePoint
- Can into functionaλ (x, y) => x+y
- But only MS :(
.NET
- Not all hunky dory
- Packaging not transparent enough
- XMLs everywhere
.NET
operations
- new
- restore
- build
- run
- test
- publish
- ?
- ?
- ?
- ?
- ?
- ?
dotnet core
- Open-source
- Bout the same things available
- Command line tools
- MS and non-MS, e.g. Linux
dotnet core
operations
- new
- restore
- build
- run
- test
- publish
- dotnet new
- dotnet restore
- dotnet build
- dotnet run
- dotnet test
- dotnet publish
dotnet core
demo
CLI goodness
dotnet core
Linux tooling
dotnet core
demo
- demo
- docker-dotnet-service
Interlude
Software
- Anyone?
- Source code
- Binaries
- Config
- Neighbours
- Environments
Environments
- Different teams
- Different stages
- Different needs
Environments
- Server-side development
- Client-side development
- Test development
- Integration
- Operations
Environments
- OS version, updates
- Runtime (JRE, dotnet, NodeJS)
- Databases
- Other tools
- All of the above
Setup
Environments
- Newbie on a project
- Who's gonna set him up?
- Guaranteed fun times
Setup
Environments
- Phoenix server
- Immutable infrastructure
- and others
Setup
docker
- Contanerising software platform
- mmmm containers
- mmmm buzzwords
- "Enables independence between apps"
- What does it mean though
docker
- Not a new concept
- Other solutions out there
- Linux kernel black magic


https://www.docker.com/resources/what-container
docker
containers
- Standard unit of software
- Stand-alone
- Executable
- Lightweight
docker
support
- Linux (CentOS, Debian, etc.)
- OSX
- Windows (also Server)
- AWS, Azure, GC
docker
images
- Already cooked
- Start from here
docker
demo
- docker-dotnet-linux-samples/basic-docker-image
dotnet+docker
demo
- dockerising the service
dotnet+docker
demo
- including testing
dotnet+docker
demo
- docker-compose
Questions?
Corrections?
Thank you!
Feedback pls
https://bit.ly/2REbJUd
References
Linux
References
dotnet core
References
extra
References
docker
References
dotnet+docker
dotnet on docker on linux (dotnet iasi)
By andreimoustache
dotnet on docker on linux (dotnet iasi)
- 82