Friday Night with DevOps


I attended "Friday Night with DevOps" on Friday evening at MappleLabs Solution Pvt Ltd, Bangalore. All details are here: https://www.meetup.com/bangalore-devops-community-powered-by-snappyflow/events/292655378/

Here are few key takeaway points

  • We can use service mesh for monolith application also. 
  • To reduce size of Docker image
  1. Use "Docker ignore"
  2. Choose right base OS
    1. Use Microcontainers
      1. https://blog.iron.io/microcontainers-tiny-portable-containers/
      2. https://github.com/iron-io/dockers
      3. https://github.com/iron-io/dockerworker
    2. Goole distroless image https://github.com/GoogleContainerTools/distroless
  3. Multi Stage build is key.
    1. Use Squash command
      1. https://stackoverflow.com/questions/41764336/how-does-the-new-docker-squash-work
      2. https://github.com/jwilder/docker-squash
      3. https://blog.geralexgr.com/docker/create-single-image-layers-with-docker-squash
      4. https://sleeplessbeastie.eu/2021/09/17/how-to-squash-docker-image/
      5. https://mresetar.github.io/2020-03-20-squashing-docker-images-for-smaller-size/
    2. Use Docker History command https://docs.docker.com/engine/reference/commandline/history/
  4. Layers and order of layers

0 comments:

Post a Comment