Authors: | Jonas Bjurel (Ericsson) |
---|---|
Version: | 0.1 |
This document describes how to build <Component>, build system dependencies and required system resources.
<WORK'S NAME> (c) by <AUTHOR'S NAME>
<WORK'S NAME> is licensed under a Creative Commons Attribution 4.0 International License. You should have received a copy of the license along with this. If not, see <http://creativecommons.org/licenses/by/4.0/>.
Contents
1 Version history
2 Introduction
3 Requirements
4 Building
5 Artifacts
Date | Ver. | Author | Comment |
2015-04-14 | 0.1.0 | Jonas Bjurel | First draft |
0.1.1 | |||
1.0 |
<INTRODUCTION TO THE SCOPE AND INTENTION OF THIS DOCUMENT>
<EXAMPLE>:
This document describes build system used to build Fuel@OPNFV, required dependencies and minimum requirements on the host to be used for the buildsystem.
The Fuel build system is desigened around Docker containers such that dependencies outside of the build system can be kept to a minimum. It also shields the host from any potential dangerous operations performed by the build system.
The audience of this document is assumed to have good knowledge in network and Unix/Linux administration.
<PROVIDE A LIST OF MINIMUM HARDWARE AND SOFTWARE REQUIREMENTS FOR THE BUILD>
<EXAMPLE>:
<EXAMPLE>: The build host should run Ubuntu 14.04 operating system.
On the host, the following packages must be installed:
<EXAMPLE>:
After 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> configuration file, eg.
<DOCKER_OPTS=" --dns=8.8.8.8 --dns=8.8.8.4">
Then restart docker:
<sudo service docker.io restart>
Now it is time to clone the code repository:
<git clone ssh://Linux foundation user@gerrit.opnfv.org:29418/genesis>
Now you should have the OPNFV genesis repository with Fuel@OPNFV stored locally on your build host.
<DESCRIBE THE FULL PROCEDURES FOR THE BUILD OF THE OPNFV COMPONENT ARTIFACTS>
<EXAMPLE>:
There are two methods available for building Fuel@OPNFV:
Select the versions of the components you want to build by editing the fuel/build/config.mk file. Note if you want to build with OpenDaylight SDN controller you need to uncomment the lines starting with odl-main and java-main
The low level method is based on Make:
From the <fuel/build directory> invoke <make [target]>
Following targets exist:
If the build is successful, you will find the generated ISO file in the <fuel/build/release> subdirectory!
The abstracted build method useses the <fuel/ci/build.sh> script which allows you to:
For more info type <fuel/ci/build.sh -h>.
<DESCRIBE WHAT ARE THE PRODUCED ARTIFACTS AND WHERE THOSE CAN BE FOUND>
<EXAMPLES>:
The artifacts produced are:
<PROVIDE NEEDED/USEFUL REFERENCES>