26 points

This is cool but it’ll be a nightmare to update.

Also, chances are that if you use Alpine the person using your image already has the base layer downloaded, so your image might actually be “bigger” for most people.

permalink
report
reply
16 points

Yeah in a PR I would probably reject this for being too clever. Before clicking I expected the image to start at 100mb or more, but it’s already under 50, who cares at this point?

permalink
report
parent
reply
6 points

Man, “too clever” is a phrase that always throws me for a loop, even though I understand what is meant by it; over the years, as I grow wiser, I learn to be less clever. Still weird to think of it this way though

permalink
report
parent
reply
22 points

Dockerizing a shell script?

permalink
report
reply
19 points

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

permalink
report
parent
reply
6 points

Yeah, wtf, why would you do that?

permalink
report
parent
reply
11 points

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

permalink
report
parent
reply
2 points

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?

permalink
report
parent
reply
5 points

So you know what your dependencies are.

permalink
report
parent
reply
11 points

17+ MB for a shell script.

Then asks:

Could we reduce the size further

No. No certainly not. I would see no way to make a 500 lines text file use less than 17 MB of space.

permalink
report
reply

Programming

!programming@programming.dev

Create post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Community stats

  • 3.5K

    Monthly active users

  • 1.6K

    Posts

  • 26K

    Comments