fix_perms: use debian:bullseye

Use debian:bullseye instead of debian-bullseye-build. Building the
latter requires a lot of time, it's definitively not needed for just
running chmod. Use debian:bullseye, since we use it as base for most
images and it's therefore very likely that it's already downloaded
(and if not, it would get downloaded here).

Change-Id: I88f513a0a8ee04628842a7aa1b663c390d2032cd
This commit is contained in:
Oliver Smith 2022-08-03 14:51:34 +02:00 committed by osmith
parent 7a2fb72782
commit 278ed47265
1 changed files with 1 additions and 5 deletions

View File

@ -238,16 +238,12 @@ docker_network_params() {
}
fix_perms() {
if ! docker_image_exists "debian-bullseye-build"; then
docker_images_require "debian-bullseye-build"
fi
echo Fixing permissions
docker run --rm \
-v $VOL_BASE_DIR:/data \
-v $CACHE_DIR:/cache \
--name ${BUILD_TAG}-cleaner \
$REPO_USER/debian-bullseye-build \
debian:bullseye \
chmod -R a+rX /data/ /cache/
}