build(opensure): ensure docker build has apparmor-profiles.

This commit is contained in:
Alexandre Pujol 2024-06-14 21:02:34 +01:00
parent d21af8246b
commit 33c78ea4cf
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -100,7 +100,7 @@ build_in_docker_rpm() {
docker pull "$BASEIMAGE/$dist"
docker run -tid --name "$img" --volume "$VOLUME:$BUILDIR" \
"$BASEIMAGE/$dist"
docker exec "$img" sudo zypper install -y distribution-release golang-packaging rsync
docker exec "$img" sudo zypper install -y distribution-release golang-packaging rsync apparmor-profiles
fi
docker exec --workdir="$BUILDIR/$PKGNAME" "$img" bash dists/build.sh rpm