This is an old revision of the document!
How to setup and use the OPNFV/BGS/FUEL build system. This is a work in progress, find the latest revision in genesis DOC/README.build and README.install
- A x86_64 host (real iron or VM) with Ubuntu 12.04/14.04 LTS installed - 100 GB storage - 8 GB RAM
On the host, the following packages must be installed: - docker - see https://docs.docker.com/installation/ubuntulinux/ for installation notes for 12.04 and 14.04 - git (simply available through apt-get install git)
When having installed Docker, add yourself to the docker group:
usermod -a -G docker <userid>
Also make sure to define relevant dns servers part of the global dns chain in in your /etc/default/docker config file, eg.
DOCKER_OPTS=" --dns=8.8.8.8 --dns=8.8.8.4"
Then restart docker with "service docker restart".:
Start by creating a SSH key, if you don't already have one, create one with
ssh-keygen
Add your generated public key in OPNFV Gerrit -https://gerrit.opnfv.org/
(this requires a linuxfoundation account, create one if you do not already have one)
Select "SSH Public Keys" to the left and then "Add Key" and paste your public key in.
So now we're coming to the fun part! Let's clone the code repository:
git clone ssh://<Linux foundation user>@gerrit.opnfv.org:29418/genesis
Change the directory to "fuel-build"
cd fuel-build/
YOU DO NOT NEED TO SET UP YOUR BUILD ENVIRONMENT, THE TOP MAKE ALL TARGET WILL DO THAT FOR YOU IF NOT ALREADY DONE, THE BELOW ACTIONS IN THIS SECTION ARE NOT NEEDED!
Note and TODO: The build system will for now partly run as sudo as that is needed for the debootstrap procedure to create the root file system for the Ubuntu 12.04 Docker image - BUT NOTE, NONE OF THE MAKEFILES OR SCRIPTS SHALL BE EXECUTED WITH SUDO/ROOT PRIVILEDGES! (TODO: Change the scripts so that no root priviledges will be needed) With your ordinary user-, run the following commands from your git root: cd docker make (and you will be prompted for your password by sudo) cd ..
That's it, time to build!
make [all]
This will: I * f not allready existing, initialize the docker build environment
If the build is successful, you will find the generated ISO file in the release subdirectory!