From ca632987eac9edb0610b4d281767f4f04e87edc0 Mon Sep 17 00:00:00 2001 From: Arnaud Morin Date: Tue, 11 Dec 2018 15:05:44 +0100 Subject: [PATCH] Update requirements for ubuntu My test to build octavia amphora on Ubuntu Xenial was missing kpartx package. So I propose to update README.rst to help users build the image correctly. Also refactor a little bit how it is presented. Change-Id: I65cf2ce25e96b4f44e2ca76884ec79831eb1c7f4 Signed-off-by: Arnaud Morin --- diskimage-create/README.rst | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/diskimage-create/README.rst b/diskimage-create/README.rst index 597f701391..fbd18b586a 100644 --- a/diskimage-create/README.rst +++ b/diskimage-create/README.rst @@ -17,6 +17,21 @@ Ubuntu 12.04.5 LTS. Python pip should be installed as well as the python modules found in the requirements.txt file. +To do so, you can use the following command on ubuntu: + +.. code:: bash + + $ # Install python pip + $ sudo apt install python-pip + $ # Eventually create a virtualenv + $ sudo apt install python-virtualenv + $ virtualenv octavia_disk_image_create + $ source octavia_disk_image_create/bin/activate + $ # Install octavia requirements + $ cd octavia/diskimage-create + $ pip install -r requirements.txt + + Your cache directory should have at least 1GB available, the working directory will need ~1.5GB, and your image destination will need ~500MB @@ -26,9 +41,20 @@ or it can be overridden by setting the following environment variables: | DIB_REPO_PATH = //diskimage-builder | DIB_ELEMENTS = //diskimage-builder/elements + The following packages are required on each platform: -Ubuntu: qemu git -Fedora, CentOS and RedHat Enterprise Linux: qemu-img git + +Ubuntu + +.. code:: bash + + $ sudo apt install qemu git kpartx debootstrap + +Fedora, CentOS and Red Hat Enterprise Linux + +.. code:: bash + + $ sudo yum install qemu-img git e2fsprogs policycoreutils-python Test Prerequisites ------------------