[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v3 17/20] docker: debian-bootstrap.pre allow customis
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PULL v3 17/20] docker: debian-bootstrap.pre allow customising of variant/url |
Date: |
Thu, 5 Jul 2018 17:03:26 +0100 |
We default to the buildd variant as most of our images are for
building. However lets give the user the ability to specify "minbase"
if they want to create a simple base image for experimentation.
Allowing the tweaking of DEB_URL means we can also bootstrap other
Debian based OS's. For example:
make docker-binfmt-image-debian-ubuntu-bionic-arm64 \
DEB_ARCH=arm64 DEB_TYPE=bionic \
DEB_VARIANT=minbase DEB_URL=http://ports.ubuntu.com/ \
EXECUTABLE=./aarch64-linux-user/qemu-aarch64
Signed-off-by: Alex Bennée <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
diff --git a/tests/docker/dockerfiles/debian-bootstrap.pre
b/tests/docker/dockerfiles/debian-bootstrap.pre
index 7c76dce663..56e1aa7a21 100755
--- a/tests/docker/dockerfiles/debian-bootstrap.pre
+++ b/tests/docker/dockerfiles/debian-bootstrap.pre
@@ -32,6 +32,15 @@ if [ -z "${DEB_TYPE}" ]; then
fi
+# The following allow finer grain control over the defaults
+if [ -z "${DEB_VARIANT}" ]; then
+ DEB_VARIANT=buildd
+fi
+
+if [ -z "${DEB_URL}" ]; then
+ DEB_URL="http://httpredir.debian.org/debian"
+fi
+
# We check in order for
#
# - DEBOOTSTRAP_DIR pointing at a development checkout
@@ -107,5 +116,5 @@ fi
echo "Building a rootfs using ${FAKEROOT} and ${DEBOOTSTRAP}
${DEB_ARCH}/${DEB_TYPE}"
-${FAKEROOT} ${DEBOOTSTRAP} --variant=buildd --foreign --arch=$DEB_ARCH
$DEB_TYPE . http://httpredir.debian.org/debian || exit 1
+${FAKEROOT} ${DEBOOTSTRAP} --variant=$DEB_VARIANT --foreign --arch=$DEB_ARCH
$DEB_TYPE . $DEB_URL || exit 1
exit 0
--
2.17.1
- [Qemu-devel] [PULL v3 19/20] docker: add special rule for deboostrapped images, (continued)
- [Qemu-devel] [PULL v3 19/20] docker: add special rule for deboostrapped images, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 06/20] docker: add gcovr to travis image, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 08/20] build-system: add clean-coverage target, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 02/20] travis: do not waste time cloning unused submodules, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 07/20] travis: add gcovr summary for GCOV build, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 11/20] linux-user: add gcov support to preexit_cleanup, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 15/20] docker: Do not run tests in 'intermediate' images, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 09/20] build-system: add coverage-report target, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 18/20] docker: add special handling for FROM:debian-%-user targets, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 14/20] docker: Clean the MXE base image, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 17/20] docker: debian-bootstrap.pre allow customising of variant/url,
Alex Bennée <=
- [Qemu-devel] [PULL v3 16/20] docker: drop QEMU build-dep from bootstrap, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 20/20] docker: add linux-user powered cross builder for QEMU, Alex Bennée, 2018/07/05
- Re: [Qemu-devel] [PULL v3 00/20] Travis, Code Coverage and Cross Build updates, Peter Maydell, 2018/07/05