How to set up shared cache

How to configure shared cache without getting into permission issue?

I would like to run the night or CI build with the latest changes and share all the generated binaries in R&D using the large ccache repository.

+6
source share
5 answers

The simplest solution is to create a new group (for example, "devel") and make all its developers. Grant read / write permissions for this group in the directory hierarchy where the cache is stored. Developers will also need to fix their umask.

+2
source

" " ccache. , CCACHE_DIR, CCACHE_UMASK CCACHE_BASEDIR.

+5

distcc, , , .

distcc, , , , .

+1
source

You can also take a look at Mozilla sccache, a ccache -like tool that can store build artifacts in cloud storage (GCS / S3 / Azure or redis / memcached).

+1
source

Please see xcache .
It is ccache-cloud and is used in alibaba which has high performance. If you use ccache, it would be very easy to switch to xcache.

0
source

All Articles