Chowning files can take a lot of space in a Docker image

Today I learned that recursively changing the owner of a directory tree in a Dockerfile can result in some serious increase in image size. 🚛 The issue You may remember how in a previous post we used a small example to discuss layers and final image size. Well, here’s our example again, slightly modified. # Dockerfile FROM ubuntu WORKDIR /app RUN fallocate -l 100M example RUN chown 33:33 example Given that the base image weighs ~75MB, we could expect the final image to weigh ~175MB (~75 from the base image + ~100 from the big file we generated)....

2021-03-02 · 4 min · 643 words

Cleantoots - Clean Your Toot History

Since I consider my messages on social media to be valid at the moment they’re posted, I like to have them deleted after some time. When I still used Twitter, I also used a CLI tool called cleantweets that helped with this. A few months ago, after having created an account on Fosstodon, I wrote a simple command line utility to help you achieve the same thing but with toots: cleantoots (notice how much effort I put into naming it). ...

2020-05-25 · 2 min · 279 words