

I know you just mastered object permanence, please move on to reading comprehension soon!
I know you just mastered object permanence, please move on to reading comprehension soon!
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
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!
Someone doesn’t know how to leverage Docker BuildKit
Not even going to buy him dinner first?
A few more from the evening.
Context: https://lemmy.world/post/29732823
Full stack is the way to go - at least to a degree such that you can understand and appreciate e2e designs, patterns, anti patterns, efficiencies, etc.
I’d say a good way to start would be to find a project you’re interested on GitHub and check it out, play with it, and if you find something you want to change, add, or remove, just jump right in and submit a PR!
I’ll share one of my projects I put together for a buddy’s makerspace startup that we’ve open sourced such that it can benefit from community involvement as they grow. It’s a fun little playground that’ll give you experience with a modernized Python full-stack application, designed to run on a raspberry pi, and containerized with Docker. Enjoy!
What kind of developer? I’m on the market for a React + Vite + TailwindCSS v4 frontend dev if that’s got any overlap with your interests/experience
Oh absolutely. I’ve got two Nvidia Jetsons and honestly they’re perfect for running dedicated workloads or automating training runs. I’d love for MB manufacturers to start tossing a soldered NPU/TPU on the board and call it a day
Okay perfect, just wanted to check.
Next I’d say check your venv to verify the pandoc binary is indeed there:
find $VIRTUAL_ENV -name pandoc
If it’s not there, you should be able to install it by entering a python shell from your venv and do:
import pypandoc
pypandoc.download_pandoc()
Hopefully that’s able to resolve it for ya. Venv should be at the front of your path so it should prefer bins from there.
Did you activate your virtual python env with ‘source .venv/bin/activate’? You must do that in each new shell unless you add some config to your shell profile config to have it detect the presence of a python venv.
Yeah, I desire buying hardware without AI, or any other manufacturer bloatware.
deleted by creator
deleted by creator
If you enjoy it - it’s never wasted time
It’s literally tagged in the bottom right of the gif tho… I also despise this AI generated garbage but in this case it’s tagged appropriately
But this way I can give Apple my money and Google my data in one simple package!
Why does his wife look more like him than he does?
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