Manually typing the exact same characters in a Dockerfile so you already have it cached is lowkey impressive.
@thibautdecombe197510 күн бұрын
Casually talked about this to a coworker at lunch. He literally faced this issue 2 hours later and was pretty happy we had this little talk. Great timing with your video, and great content as always. Thanks!
@anthonywritescode10 күн бұрын
honestly there's probably years wasted per day waiting for containers to die due to this!
@Reecepbcups16 күн бұрын
You have definitely written a *few* Dockerfiles in your time that was awesome
@anthonywritescode16 күн бұрын
too many!
@sillybuttons92516 күн бұрын
Never knew why I needed dumb init
@anthonywritescode16 күн бұрын
missed you on stream! hope you're doing well
@martijnvandebeek680516 күн бұрын
I was stuck on this problem at work for a week. Thank you Anthony!
@yalnisinfo16 күн бұрын
i love docker bro, it takes me some time to set it up but it saves so much time and make it reliable to get your services running both locally and in cloud quickly
@jeremywang341913 күн бұрын
Good to know! Thanks for sharing!
@valtterihuuskonen420716 күн бұрын
I believe Podman uses catatonit while docker uses tini for the --init flag.
@anthonywritescode16 күн бұрын
ahah you got me there, I'm using podman with an alias
@bojandimic391416 күн бұрын
Thank you for the content Anthony!
@GuyMichaely16 күн бұрын
Do you have/can you make a video about the non flushing behavior at 2:01? I've never seen that happen with python's print, under what conditions does it not automatically flush?
@anthonywritescode16 күн бұрын
I do! you can search for "line buffering anthonywritescode" and I've got a video on it!
@drinductor815015 күн бұрын
2:38 any reason not to use heredocs syntax for multiline run commands? My first thought was that it's just a demo, but then I considered maybe you have a good reason to prefer the '&& \' method instead
@anthonywritescode15 күн бұрын
the heredoc syntax is relatively new and I can never remember exactly how it is supposed to work (and being new it's less portable). I know this works (and relatively without downsides) so no reason to change
@drinductor815015 күн бұрын
@@anthonywritescodewhat about exit code propagation? I know the repeated && would make sure all lines are executed or return an error code but I'm not sure about heredocs
@anthonywritescode15 күн бұрын
sounds like all the more reason for me to stick with `&&`
@darkshoxx16 күн бұрын
Very much looking forward to these "unconventional uses" now 😆
@anthonywritescode15 күн бұрын
the first one will surprise you!
@fifamessi007fifamessi0016 күн бұрын
do u have video explain the apt flags u used?
@anthonywritescode15 күн бұрын
I do in fact! (well actually two) -- if you search "apt-get anthonywritescode" there should be one about an intro to apt and another about why I use the particular invocation in docker!
@essamgouda160916 күн бұрын
very cool as always !
@BrunoBernard-kn6vt15 күн бұрын
why there is different init systems for docker ? aren't they similar to dumb-init ?
@anthonywritescode15 күн бұрын
a bunch of different people solved the same problem in a bunch of slightly different ways!
@BrunoBernard-kn6vt15 күн бұрын
@ I get your point, maybe i should look into those differences
@GilgamoreRed12 күн бұрын
Completely off the wall question(s). Will prettier ever come back to pre-commit? Should it? How do you, or do you leverage it?
@anthonywritescode12 күн бұрын
there's nothing stopping you from using it -- I'm just done doing free labor for prettier when they keep intentionally breaking it. personally I don't use it
@GilgamoreRed11 күн бұрын
@@anthonywritescode Thank you for the reply. It seemed pretty abrupt when it was discontinued. I appreciate all the hard work you put into it. Shame it didn't work out.
@husanaaulia471716 күн бұрын
So the solution is to use dumb init or use bash?
@anthonywritescode16 күн бұрын
any init system will do! bash happens to catch one signal which surprised me!
@husanaaulia471716 күн бұрын
@anthonywritescode thank you, I'll try later
@AmirhessamTahmassebi16 күн бұрын
nice haricut
@bacon4life16 күн бұрын
Nice thumbnail
@jeroenvanrenterghem616316 күн бұрын
Used tini for this.
@deadeye1982a16 күн бұрын
I hate Docker.
@janhwillems1000016 күн бұрын
Why?
@krux0216 күн бұрын
me, too.
@krux0216 күн бұрын
@@janhwillems10000 For me it is mostly these three things: 1. Complicated to learn (needs time and effort to learn and understand) 2. Adds performance costs 3. Doesn't solve a problem that I have other than someone else's demand to care for it.
@orterves16 күн бұрын
I love docker 1. it's easy to learn 2. adds minimal overhead for the benefits it provides 3. solves multiple problems, such as - going from "works on my machine" to production with consistency - simplifies experimenting with dependency upgrades - providing instant identical dev environments with devcontainers, etc
@janhwillems1000015 күн бұрын
1: Learn it. 2: That is simply NOT true. (see 1) 3. That could very well be true; good luck!