News for hackers. Stuff that matters.
Re:Rails on Docker · Fly by tomca32 on Thursday January 26, 2023 @01:16PM (#34536045)
Why didn't I ever think of this.

This is great and really makes things way simpler. Thanks!

Re:Rails on Docker · Fly by jbott on Thursday January 26, 2023 @01:54PM (#34536786)
Unfortunately this syntax is not generally supported yet - it's only supported with the buildkit backend and only landed in the 1.3 "labs" release. It was moved to stable in early 2022 (see https://github.com/moby/buildkit/issues/2574), so that seems to be better, but I think may still require a syntax directive to enable.

Many other dockerfile build tools still don't support it, e.g. buildah (see https://github.com/containers/buildah/issues/3474)

Useful now if you have control over the environment your images are being built in, but I'm excited to the future where it's commonplace!

Re:Rails on Docker · Fly by Groxx on Thursday January 26, 2023 @02:31PM (#34537453)
And AFAIK buildkit is still a real pain to troubleshoot, as you can't use intermediate stages :/

You can put stuff in a script file and just run that script too.

Re:Rails on Docker · Fly by cpuguy83 on Thursday January 26, 2023 @04:32PM (#34539129)
Re:Rails on Docker · Fly by Groxx on Thursday January 26, 2023 @10:26PM (#34542100)
excellent, thanks!

this has been a serious pain in my side for a while, both for my own debugging and for telling people I try to help "you're gonna have to start over and do X or this will take hours longer".