• Oliver Lowe
      arrow-up
      22
      arrow-down
      1
      ·
      8 months ago
      link
      fedilink

      The art of turning a 500-line text file into a 50MB tarball. Welcome to the future :(

      • Domi
        arrow-up
        12
        arrow-down
        0
        ·
        9 months ago
        link
        fedilink

        Environments like Kubernetes only run containers so you would deploy any shell script with containers as well.

        • Carighan Maconar
          arrow-up
          2
          arrow-down
          0
          ·
          8 months ago
          link
          fedilink

          But you’d use the shell script as part of something else, surely? As in, it’s not a container, it’s something deployed as part of or copied into a container?

          • Domi
            arrow-up
            3
            arrow-down
            0
            ·
            8 months ago
            link
            fedilink

            That depends, we have quite a few images that are just a single shell script or a collection of shell scripts which run as jobs or cronjobs. Most of them are used for management tasks like cleaning up, moving stuff or debugging.

            Has the big advantage of being identical on each node so you don’t have to worry about keeping those shell scripts up to date with volumes. Very easy to just deploy a job with a debug image on every node to quickly check something in a cluster.

            Of course, if the shell script “belongs” to an application you might as well add the shell script in the application container and override the start arguments.

      • ikiddEnglish
        arrow-up
        5
        arrow-down
        0
        ·
        8 months ago
        link
        fedilink

        So you know what your dependencies are.