for some projects we’re using nix expressions (https://nixos.org) for builds and tests. Works great, but it’s hard to combine with drone. The problem is that there is a /nix directory which has all binaries, and needs to be persistent (so we don’t download half the internet every run).
This works great outside drone: $ docker create -v /nix --name=nix nixos/nix sh $ docker run --rm --volumes-from=nix -ti nixos/nix sh
If I do that docker create once on the drone agent machine I’m good, but I can’t specify the --volumnes-from in the drone.yml file. Or can I?
or you can create a named docker volume and mount into your container. This approach is considered a replacement for volumes_from which has been deprecated in docker compose (fyi)