• 0 Posts
  • 4 Comments
Joined 2 years ago
cake
Cake day: September 5th, 2023

help-circle
  • 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
    



  • The only reason I have found to stick with one of the large banks is to interface with a wealth management team. I have yet to find a credit union who can offer the same types of services as say, Merrill Lynch Wealth Management.

    Savings accounts are one of the biggest scams of all time; 4.2% interest? Oh boy! You have $10k in the bank so that gives you a whopping $420 at EOY.

    Compare that to existing avg returns on WM accounts of nearly 18% where that same $10k generates $1800.

    Don’t have to like the game but play the game to win. And it costs me zero time and effort but still lets me dictate where it can be invested (aka fuck Elon)