MTGZone
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
devilish666@lemmy.world to Programmer Humor@programming.dev · 11 months ago

Stop use docker

lemmy.world

message-square
72
fedilink
783

Stop use docker

lemmy.world

devilish666@lemmy.world to Programmer Humor@programming.dev · 11 months ago
message-square
72
fedilink
  • kshade@lemmy.world
    link
    fedilink
    arrow-up
    72
    ·
    11 months ago

    For real though, containerization isn’t the only way to separate applications from each other but totally fine, it’s the “It works on my machine, so here’s my machine” mentality that doesn’t fill me with confidence. I’ve seen too much barely-working jank in containers that probably only get updated when a new version of the containerized application itself is released.

    • pimeys@lemmy.nauk.io
      link
      fedilink
      arrow-up
      37
      ·
      11 months ago

      Nix user arrives to the room.

      • SeattleRain@lemmy.world
        link
        fedilink
        English
        arrow-up
        10
        ·
        11 months ago

        Can you elaborate?

        • pimeys@lemmy.nauk.io
          link
          fedilink
          arrow-up
          16
          ·
          11 months ago

          Nix can build you a bit-to-bit exact environment for your app. It is a superior environment, but is hard to use in the beginning and users can feel snobby sometimes. It is awesome, but YMMV.

      • qaz@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        11 months ago

        How do you separate Nix programs from the rest of the system?

        • pimeys@lemmy.nauk.io
          link
          fedilink
          arrow-up
          9
          ·
          edit-2
          11 months ago

          It creates a set of symlinks so every program sees exactly the dependencies it needs.

          https://nixos.org/guides/nix-pills/09-automatic-runtime-dependencies#automatic-runtime-dependencies

          You can also create a container:

          https://nixos.wiki/wiki/NixOS_Containers

          Or you can create reproducible docker containers with nix:

          https://dev.to/anurag_vishwakarma/a-better-way-to-build-reproducible-docker-images-with-nix-2k59

          The secret sauce with nix is reproducibility. If it builds once, it will continue building exactly like that forever. Bit by bit.

          • qaz@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            11 months ago

            That’s very interesting, I was aware of how NixOS separated dependency versions but I didn’t know it natively supported containers.

    • thehatfox@lemmy.world
      link
      fedilink
      English
      arrow-up
      17
      ·
      11 months ago

      I like containers. But they do have a habit of nurturing cludgy temporary hacks into permanent infrastructure, by sweeping all the ugly bits under the big whale-shaped rug.

    • Prison Mike@links.hackliberty.org
      link
      fedilink
      arrow-up
      10
      ·
      edit-2
      11 months ago

      What gets me is people migrating from VMs treating it like an entire host machine.

      There is a lack of knowledge among developers regarding precompiling assets and classes (if interpreted), and people are trying to do too much in startup scripts.

      Another thing I hate is wrapping the entire process in a script because people want to kill the main process without restarting the container. Yikes!

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.16K users / day
  • 4.42K users / week
  • 9.2K users / month
  • 17.9K users / 6 months
  • 4 local subscribers
  • 23.2K subscribers
  • 1.4K Posts
  • 50.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org