• 0 Posts
  • 46 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle
















  • What about this? https://youtu.be/5XY3K8DH55M

    Also I created this repo to create a reproducible sec environment for myself. I added other languages, but personally work mostly with python. It is basically resonating for handling all the boiler plate:

    https://github.com/takeda/nix-cde

    For packaging in docker I started to use nix2container project as it gives me a greater control over layers. So for example when I package my phyton app I typically use 3 layers:

    • python and it’s dependencies
    • my application dependencies
    • my application, which is very tiny compared to other two, so there is great reuse of the layers

    The algorithm mentioned in the video also helps a lot with reuse, but the above is more optimized by frequency of how things typically change.

    BTW: today I discovered this https://github.com/astro/microvm.nix I haven’t play with it yet, but in theory it would let me generate a microvm image (in similar fashion to generate a docker container) which would let me to run my app natively as a tiny VM on EC2 for example, and use only minimum necessary of a typical OS to run it.




  • takeda@lemmy.worldtoProgrammer Humor@lemmy.mlwe are safe
    link
    fedilink
    arrow-up
    47
    arrow-down
    2
    ·
    8 months ago

    The problem I have with it is that all the time it saves me I have to use on reading the code. I probably spend more time on that as once in a while the code it produces is broken in a subtle way.

    I see some people swearing by it, which is the opposite of my experience. I suspect that if your coding was copying code from stack overflow then it indeed improved your experience as now this process is streamlined.