[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 24/25] gitlab: add avocado asset caching
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH v2 24/25] gitlab: add avocado asset caching |
Date: |
Wed, 24 Jun 2020 15:56:04 +0100 |
User-agent: |
Mutt/1.14.0 (2020-05-02) |
On Wed, Jun 24, 2020 at 03:04:45PM +0100, Alex Bennée wrote:
> These can be quite big so lets cache them. I couldn't find any nots on
> ccache in the gitlab docs so I've just ignored it for now.
There's no built-in support for ccache, but you can enable it
reasonably easily.
In libvirt we add "ccache" to the dockerfile as a package to
be installed in the container image.
Then in the dockerfile again we add
mkdir -p /usr/libexec/ccache-wrappers
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/$(basename /usr/bin/gcc)
export CCACHE_WRAPPERSDIR=/usr/libexec/ccache-wrappers
And in .gitlab-ci.yml, in each job we set
before_script:
export CCACHE_BASEDIR="$(pwd)
export CCACHE_DIR="$CCACHE_BASEDIR/ccache"
export CCACHE_MAXSIZE="500M"
export PATH="$CCACHE_WRAPPERSDIR:$PATH"
cache:
paths:
- ccache/
key: "$CI_JOB_NAME"
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [PATCH v2 08/25] tests/vm: Added a new script for centos.aarch64., (continued)
- [PATCH v2 08/25] tests/vm: Added a new script for centos.aarch64., Alex Bennée, 2020/06/24
- [PATCH v2 10/25] python/qemu: Add ConsoleSocket for optional use in QEMUMachine, Alex Bennée, 2020/06/24
- [PATCH v2 09/25] tests/vm: change scripts to use self._config, Alex Bennée, 2020/06/24
- [PATCH v2 12/25] tests/vm: switch from optsparse to argparse, Alex Bennée, 2020/06/24
- [PATCH v2 16/25] .gitignore: un-ignore .gitlab-ci.d, Alex Bennée, 2020/06/24
- [PATCH v2 14/25] tests/docker: check for an parameters not empty string, Alex Bennée, 2020/06/24
- [PATCH v2 15/25] tests/docker: change tag naming scheme of our images, Alex Bennée, 2020/06/24
- [PATCH v2 21/25] tests/docker: add --registry support to tooling, Alex Bennée, 2020/06/24
- [PATCH v2 13/25] tests/vm: allow us to take advantage of MTTCG, Alex Bennée, 2020/06/24
- [PATCH v2 24/25] gitlab: add avocado asset caching, Alex Bennée, 2020/06/24
- Re: [PATCH v2 24/25] gitlab: add avocado asset caching,
Daniel P . Berrangé <=
- [PATCH v2 23/25] gitlab: enable check-tcg for linux-user tests, Alex Bennée, 2020/06/24
- [PATCH v2 20/25] gitlab: build containers with buildkit and metadata, Alex Bennée, 2020/06/24
- [PATCH v2 19/25] gitlab: convert jobs to use custom built containers, Alex Bennée, 2020/06/24
- [PATCH v2 17/25] gitlab: introduce explicit "container" and "build" stages, Alex Bennée, 2020/06/24
- [PATCH v2 25/25] gitlab: split build-disabled into two phases, Alex Bennée, 2020/06/24
- [PATCH v2 22/25] gitlab: add acceptance testing to system builds, Alex Bennée, 2020/06/24
- [PATCH v2 18/25] gitlab: build all container images during CI, Alex Bennée, 2020/06/24