From 14e7cb3eb217f9ec32c9f3a02abe03c46d631a47 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Wed, 12 Oct 2016 19:22:55 -0700 Subject: [PATCH] Update doc to have 'debootstrap' dep and describe minimal Update the doc, that explains how to use disk-image-builder to create an image, to have an additional dependency on 'debootstrap' Also remove DISTRO= line from example as it was confusing and would make people not build the ubuntu-minimal image. Add a little info on the -minimal build types. Change-Id: I8a7393a9c71ef503a730e4442941996eab43da6b --- nodepool/elements/README.rst | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/nodepool/elements/README.rst b/nodepool/elements/README.rst index cdcb7adb2b..61ee13fa9d 100644 --- a/nodepool/elements/README.rst +++ b/nodepool/elements/README.rst @@ -12,7 +12,7 @@ Install the dependencies: :: - sudo apt-get install kpartx qemu-utils curl python-yaml + sudo apt-get install kpartx qemu-utils curl python-yaml debootstrap Install diskimage-builder: @@ -28,11 +28,14 @@ Building an image is simple, we have a script! :: - DISTRO="ubuntu" bash tools/build-image.sh + bash tools/build-image.sh -See the script for environment variables to set distribution, etc. -You should be left with a .qcow2 image file of your selected -distribution. +See the script for environment variables to set distribution, etc. By default +it builds an ubuntu-minimal based image. You should be left with a .qcow2 +image file of your selected distribution. + +Infra uses the -minimal build type for building Ubuntu/CentOS/Fedora. For +example: ubuntu-minimal. It is a good idea to set ``TMP_DIR`` to somewhere with plenty of space to avoid the disappointment of a full-disk mid-way through the script