nate3d

joined 2 years ago
[–] nate3d@lemmy.world 46 points 1 week ago (18 children)

Just switched to Fedora Kinoite and I’m loving the immutability of the OS. Oh bad update? lol rollback and golden. Can’t do that shit with each bloatware force push from MS

[–] nate3d@lemmy.world 12 points 2 weeks ago

I know you just mastered object permanence, please move on to reading comprehension soon!

[–] nate3d@lemmy.world 8 points 2 weeks ago (1 children)

Tarkov would like to have a word

[–] nate3d@lemmy.world 3 points 3 weeks ago

Yeah! So the first thing that BuildKit provides that greatly improves build time is that it will detect and run the two stages (one, two) in parallel so the wall-clock time for your example is 5s (excluding any overhead). Without BuildKit, these would be built serially resulting in a wall-clock time of 10s (excluding any overhead).

Additionally, BuildKit uses a content-based cache rather than a step-by-step key cache used by classical Docker. This content-based cache is intelligently reused across different builds and even re-ordered instructions. If you were to build then rebuild your example, the sleep steps would be skipped entirely as those steps are fully completed and unchanged in the content-based cache from the previous build. It will detect changes and re-build accordingly.

Lastly, (albiet not a BuildKit feature directly) is to leverage inline build caching for things such as dependencies so they are persisted to your filesystem and mounted during build time such that you don't have to fetch them constantly. This isn't really necessary if leveraging BuildKit fully since the content-based cache will also handle the dependencies and only pull if changed. i.e:

RUN --mount=type=cache,target=/root/.cache \
    your-build-command
[–] nate3d@lemmy.world 2 points 3 weeks ago (2 children)

Oh yeah there is a lot you can implement to really get the most out of your architecture via docker and minimize your build times.

One is using BuildKit with BuildX and Docker Build Cache.

BuildX is the one I highly recommend getting familiar with as it’s essentially an extension of BuildKit.

I’m a solutions architect so I was literally building with these tools 15 minutes ago lol. Send any other questions my way if you have any!

[–] nate3d@lemmy.world 7 points 3 weeks ago (5 children)

Someone doesn’t know how to leverage Docker BuildKit

[–] nate3d@lemmy.world 5 points 3 weeks ago

Not even going to buy him dinner first?

[–] nate3d@lemmy.world 17 points 1 month ago* (last edited 1 month ago)

Christian

calling for mass murder

Yeah she’s not Christian but rather is just virtue signaling. Get away from them to preserve your own sanity

[–] nate3d@lemmy.world 4 points 1 month ago (1 children)

It was! I highly recommend that anyone who can, make plans to visit Aruba some day, it’s incredible and the people are wonderful!

[–] nate3d@lemmy.world 6 points 1 month ago (3 children)

A few more from the evening.

 

iPhone 15 Pro Max with ProCamera

[–] nate3d@lemmy.world 2 points 2 months ago

I’m also on brave and had to wade through this same issue. Happy to help! Enjoy the mic and awesome setup!

view more: next ›