Skip to content

Commit 4c5aeb1

Browse files
committed
tests/docker: add support for DEB_KEYRING
For installing stuff from sid or ports you may need to manually specify the location of the keyring. You can even import keys into your personal keyring and point it there, e.g.: gpg --keyserver keyring.debian.org --recv-keys 84C573CD4E1AFD6C make docker-binfmt-image-debian-sid-hppa DEB_TYPE=sid DEB_ARCH=hppa \ DEB_URL=http://ftp.ports.debian.org/debian-ports/ \ EXECUTABLE=./hppa-linux-user/qemu-hppa V=1 \ DEB_KEYRING=${HOME}/.gnupg/pubring.kbx Signed-off-by: Alex Bennée <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Message-Id: <[email protected]>
1 parent 182ec06 commit 4c5aeb1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/docker/dockerfiles/debian-bootstrap.pre

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ else
7979
fi
8080
fi
8181

82+
#
83+
# Add optional args
84+
#
85+
if [ -n "${DEB_KEYRING}" ]; then
86+
DEBOOTSTRAP="${DEBOOTSTRAP} --keyring=${DEB_KEYRING}"
87+
fi
88+
8289
#
8390
# Finally check to see if any qemu's are installed
8491
#

0 commit comments

Comments
 (0)