Giter Site home page Giter Site logo

Comments (2)

polarathene avatar polarathene commented on June 14, 2024

20.10 point release could support it with the syntax hint at the top of the Dockerfile. In this comment you referred to the version of Docker as 2020, not sure if you are using a very early release of 20.10 or newer one that can use DOCKER_BUILDKIT=1.


Is it necessary to use Drone? Github Actions are well suited for this and I'm happy to explain the ones used for docker-mailserver if you're interested in adopting something similar.

Looking at the drone config, one downside to Github Actions is ARM64 has no native runners, you need to emulate those builds via QEMU (this is done easily, but it's much slower).

You could have Github Actions delegate to self-hosted runners on your own hardware for native ARM64 builds though, but then I guess you'd run into the same issue with outdated Docker Engine version 😅

from rspamd-docker.

polarathene avatar polarathene commented on June 14, 2024

For additional reference, since you were not able to adopt RUN --mount=type=bind to avoid a COPY you don't need to persist, when you are able to leverage this, I provided a snippet here which you could also throw in --mount=type=cache for apt to use (both mount types can be used with the single RUN).

For your Drone systems this may be a non-issue, but on ephemeral CI runners like Github Actions where the environment is reset each run, cache from CI runs is persisted remotely. Docker buildx can export the build image layers as cache, but cache mounts are a different kind, they need additional handling to restore for future use.

On local dev systems where that's a non-issue, the cache mount is convenient as the data is not lost to invalidated layers. You can alternatively use it without persistence to keep data out of the image, but then the tmpfs mount is probably more suitable.

from rspamd-docker.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.