docker: Don't mount ccache db if NOUSER=1
commit36ac78e65a0695f0e397865cceaf4ab5c4e52c64
authorFam Zheng <famz@redhat.com>
Mon, 25 Sep 2017 07:54:58 +0000 (25 15:54 +0800)
committerFam Zheng <famz@redhat.com>
Fri, 29 Sep 2017 03:14:15 +0000 (29 11:14 +0800)
tree171e1c4d8583033ec3d9745f7f405a51f44f259a
parent12b25a7d96dc01fc9710c4af5942c15a51b84db1
docker: Don't mount ccache db if NOUSER=1

With NOUSER=1 the container runs code as root, which may create
privileged files that will not be be accssible next time. Skip ccache
dir mount in this case.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20170925075458.18047-1-famz@redhat.com>
Acked-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
tests/docker/Makefile.include