stop using alpine nodejs for production docker images and why the official node.js image is so large

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ม.ค. 2021
  • in this video we explore why i don't use alpine for my production nodejs container images. we take a deep dive into the official node.js docker image and show why it's so bloaty.
    we also develop an architectural model that you can use to analyse your own container images and then we deep dive into the alpine image and show why you should use caution for when using it for production images
    finally we show how you can get similar results to the alpine image using more production ready distros such as debian or red hat universal base image.

ความคิดเห็น • 24

  • @richpaul4083
    @richpaul4083 10 หลายเดือนก่อน +5

    I would have loved to hear something about WHY in the first 6 minutes .... but I don't have 30 minutes to find out.

    • @chrishayuk
      @chrishayuk  10 หลายเดือนก่อน +2

      yeah, definitely not the video for you to watch, it's quite a deep dive

  • @KrullMaestaren
    @KrullMaestaren 2 ปีที่แล้ว +1

    Good explanation Rare to see something this well made on TH-cam and lots of interesting videos that I want to watch later, subbed 🙂

    • @chrishayuk
      @chrishayuk  2 ปีที่แล้ว

      Awesome, thank you! Appreciate the great comments

  • @shiyammosies5975
    @shiyammosies5975 2 ปีที่แล้ว +1

    Loved this video, love to see more on such Docker, node js videos

    • @chrishayuk
      @chrishayuk  2 ปีที่แล้ว

      Glad you like. Was my first video. Wasn’t originally gonna publish, it was a practice video

  • @aeronwolfe7072
    @aeronwolfe7072 2 ปีที่แล้ว

    i like your videos. thanks for all the great information.

  • @UltimateKeyboardHero
    @UltimateKeyboardHero 3 ปีที่แล้ว +4

    Ended up here because I was looking into multi-stage Docker images for nodejs and alpine and came across your video about setting it up. I loved how much Alpine was saving space! Now I'm considering the distroless. Though using Windows doesn't help me much for Dev work. haha Thanks for all the info dude!

    • @chrishayuk
      @chrishayuk  3 ปีที่แล้ว +1

      Awesome glad it helped... distroless is a great choice in my opinion, as you figured

    • @chrishayuk
      @chrishayuk  3 ปีที่แล้ว

      Also if you watch the build super slim vids I did I cover distroless

    • @UltimateKeyboardHero
      @UltimateKeyboardHero 3 ปีที่แล้ว

      @@chrishayuk Hey man, thanks a lot! Definitely will check all your videos out! I'm quite happy I was here before this channel blew up with thousands of subscribers! Keep up this amazing work! :D Cheers
      And hellos from Sri Lanka!

    • @chrishayuk
      @chrishayuk  3 ปีที่แล้ว +1

      @@UltimateKeyboardHero doubt it will blow up, just glad the content is useful

    • @UltimateKeyboardHero
      @UltimateKeyboardHero 3 ปีที่แล้ว

      @@chrishayuk too soon to tell, but the content is saved me. Thanks again :)

  • @DF-ss5ep
    @DF-ss5ep ปีที่แล้ว +1

    I've actually had problems with alpine, but running Java. Containers kept failing with out of memory errors and OOM Kill, though this was about 2y ago. Changed to a regular bulky Ubuntu, and the problem disappeared.

  • @cesarvspr
    @cesarvspr 2 ปีที่แล้ว +5

    someone please make a resume of this 28 minutes video

    • @chrishayuk
      @chrishayuk  2 ปีที่แล้ว +1

      Yeah sorry, my vids are really about peeling back layers and understanding what’s beneath. I struggle to do this with short videos. Apologies for frustrating you

    • @fredbluntstoned
      @fredbluntstoned ปีที่แล้ว

      Yeah. Seriously need a TL;DR. Cannot be bothered helping getting up his watch time. So far as I am concerned Alpine is still the path to go with. Could not be bothered to listen.

  • @jaicarey7023
    @jaicarey7023 2 ปีที่แล้ว +1

    Thanks for the video, from Sydney! I just want to suggest rendering your video in slightly higher quality? There is some fragmenting and lagging starting at around 2:50.

    • @chrishayuk
      @chrishayuk  2 ปีที่แล้ว +2

      yeah, i just did the same in my latest video. i need to figure recording my screen at higher res. on the list. my latest vid has the same issue.. will figure and resolve. thanks for giving me the kick i need to figure this one

  • @JackRhodes-qf3pc
    @JackRhodes-qf3pc ปีที่แล้ว +1

    Yo Chris! How up to date are your opinions in this video? Any update on your opinions here?

    • @chrishayuk
      @chrishayuk  ปีที่แล้ว +1

      it's a 2 year old video but it's actually not far off still being relevant. I still wouldn't use alpine for production images, i'd still lean towards distroless or UBI. versions are obviously wrong. I'm super lazy so i probs wouldn't build the prod image fully from scratch to get super small... some of the stuff needs to be tidied up to be production ready, locking down users etc.. but yeah it's still pretty relevant

    • @teknolovedigital
      @teknolovedigital ปีที่แล้ว +2

      Its February 2023 and alpine still experimental

  • @SubmitToTheBiomass
    @SubmitToTheBiomass 27 วันที่ผ่านมา +1

    It's so fucked up that the American pronunciation of quay is "kway", lmao.