• 0 Posts
  • 29 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
    




  • 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.









  • Not sure how much I buy this as anyone who can describe a stock Glock trigger as a “hair trigger” doesn’t understand what that term actually means nor do they have a basic understanding of gun safety.

    Before ANY sort of mechanical safety is even considered - why the FUCK did this child have access to any firearm. A safety on a firearm was never designed to stop a user who is willfully trying to use the weapon nor is it a child safety device. To imply that’s how it should be used is irresponsible and I highly recommend editing your post to reflect this.

    Do you also think we should ban garbage disposals because there isn’t a safety to stop my child from sticking their hand in it? What about a safety lock for the disposal switch? Will that save the child’s arm?




  • The body is not a perfect thermal insulator so you must note that the liquid in the bladder is constantly losing heat due to dissipation into the surrounding tissues then the environment around the body. The greater the temperature differential between the body and the environment, the faster the rate of transfer. Your body won’t (or at least it’ll try its damndest) to not let that internal temp drop, which will take more and more energy to maintain as the external temp drops.


  • So docker is just a wrapper to provide the execution environment for photon in this case. You’ll either have to use docker as it’s really nothing more than installing the docker engine and that’s it, you just run commands provided by the photon dev.

    Or

    If you really don’t want to use docker for whatever reason, you’ll have to reverse engineer the actual code stack within the Dockerfile in the project that is used to build the image you’d otherwise just run. Again this is more more involved and the whole reason to use something like docker in the first place.