Ce diaporama a bien été signalé.
Le téléchargement de votre SlideShare est en cours. ×

Cloud Native Ninja - PT3 - Containerize DOTNET apps.pdf

Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Chargement dans…3
×

Consultez-les par la suite

1 sur 9 Publicité

Plus De Contenu Connexe

Similaire à Cloud Native Ninja - PT3 - Containerize DOTNET apps.pdf (20)

Plus par Nilesh Gule (20)

Publicité

Plus récents (20)

Cloud Native Ninja - PT3 - Containerize DOTNET apps.pdf

  1. 1. Containerize DOTNET Apps Nilesh Gule @nileshgule Cloud Native Ninja
  2. 2. Dockerfile V1
  3. 3. Dockerfile V2 – Multi stage builds
  4. 4. Dockerfile V3 – Multi stage builds Alpine image
  5. 5. Dockerfile V4 – Multi stage builds Ubuntu image
  6. 6. Run Containerized App Interactive terminal mode docker run --rm ` -it ` --name producer ` -p 5000:80 ` -e ASPNETCORE_ENVIRONMENT=Development ` producer:v1 Detached mode docker run --rm ` -d ` --name producer ` -p 5000:80 ` -e ASPNETCORE_ENVIRONMENT=Development ` producer:v1 ✓ 1: container name ✓ 2: 5000 host port, 80 container port ✓ 3: environment variable ASPNETCORE_ENVIRONMENT ✓ 4: image name and tag, default tag = latest
  7. 7. Summary ✓ Base images: Provided by major tools vendors, programming languages and frameworks ✓ Dockerfile: set of instructions to package the application with all its dependencies ✓ Multi Stage build: reduce image sizes with optimized base images for build and run stages ✓ Always use the best possible base image for the app to keep the size small and reduce attack surface
  8. 8. Containerize Apps Resources https://github.com/NileshGule/cloud-native-ninja Slides https://www.slideshare.net/nileshgule/ https://speakerdeck.com/nileshgule/

×