diff options
author | Otto Kekäläinen <otto@debian.org> | 2024-01-12 11:18:47 +0800 |
---|---|---|
committer | Otto Kekäläinen <otto@debian.org> | 2024-01-13 23:12:16 -0800 |
commit | 6df86f93f67ff61f4e3bbb28fdc20a2a6991da05 (patch) | |
tree | e3e78da5f653b13d463bc90af6cb7b22dd5f36ea | |
parent | 13f52052db1263667703423ff806bda975367efe (diff) |
tests: Avoid busting container layer cache on every file change
-rwxr-xr-x | packaging/run-in-docker | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packaging/run-in-docker b/packaging/run-in-docker index 9a3a2ef4..9dffc776 100755 --- a/packaging/run-in-docker +++ b/packaging/run-in-docker @@ -69,8 +69,12 @@ run set -euvx \ && apt-get update -y \ && apt-get -y --no-install-recommends install \ build-essential devscripts equivs +copy debian debian +run mk-build-deps -r -i debian/control -t 'apt-get -y -o Debug::pkgProblemResolver=yes --no-install-recommends' +# To avoid constantly invalidating previous container layers, run the slow +# dependency installation early and copy files (along with any changed files) +# later copy . . -run yes | mk-build-deps -ir run groupadd luser && useradd -g luser luser && chown -R luser:luser .. user luser EOF |