This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
get_started_fuel_deploy [2015/03/02 21:41] Christopher Price created |
get_started_fuel_deploy [2015/12/29 02:02] (current) Ruijing Guo [4. Clone the OPNFV code git repository] |
||
---|---|---|---|
Line 21: | Line 21: | ||
Also make sure to define relevant dns servers part of the global dns chain in | Also make sure to define relevant dns servers part of the global dns chain in | ||
- | in your /etc/default/docker config file, eg. | + | in your /etc/default/docker(.io) config file, eg. |
DOCKER_OPTS=" --dns=8.8.8.8 --dns=8.8.8.4" | DOCKER_OPTS=" --dns=8.8.8.8 --dns=8.8.8.4" | ||
- | Then restart docker with "service docker restart".: | + | Then restart docker with "service docker(.io) restart".: |
- | ===== 3. Setting up OPNFV Gerrit in order to being able to clone the code ===== | + | Note: Ubuntu Trusty comes with a docker.io package |
+ | |||
+ | //===== 3. Setting up OPNFV Gerrit in order to being able to clone the code ===== | ||
Start by creating a SSH key, if you don't already have one, create one with | Start by creating a SSH key, if you don't already have one, create one with | ||
ssh-keygen | ssh-keygen | ||
Line 35: | Line 37: | ||
Select "SSH Public Keys" to the left and then "Add Key" and paste your public key in. | Select "SSH Public Keys" to the left and then "Add Key" and paste your public key in. | ||
+ | // | ||
===== 4. Clone the OPNFV code git repository ===== | ===== 4. Clone the OPNFV code git repository ===== | ||
So now we're coming to the fun part! Let's clone the code repository: | 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 | + | git clone https://gerrit.opnfv.org/gerrit/fuel |
- | + | ||
- | Change the directory to "fuel-build" | + | Change the directory to "build" |
- | cd fuel-build/ | + | cd build/ |
===== 5. Set up (build) your build environment ===== | ===== 5. Set up (build) your build environment ===== | ||
- | YOU DO NOT NEED TO SET UP YOUR BUILD ENVIRONMENT, THE TOP MAKE ALL TARGET WILL DO THAT FOR YOU IF NOT ALREADY DONE, | + | //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! | THE BELOW ACTIONS IN THIS SECTION ARE NOT NEEDED! | ||
- | //Note and TODO: | + | 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 | 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! | system for the Ubuntu 12.04 Docker image - BUT NOTE, NONE OF THE MAKEFILES OR SCRIPTS SHALL BE EXECUTED WITH SUDO/ROOT PRIVILEDGES! | ||
Line 61: | Line 63: | ||
This will: | This will: | ||
- | I * f not allready existing, initialize the docker build environment | + | * If not allready existing, initialize the docker build environment |
* If not already done, build fuel from upstream | * If not already done, build fuel from upstream | ||
* Build the defined derivate of fuel (as defined by the structure of this framework) | * Build the defined derivate of fuel (as defined by the structure of this framework) | ||
If the build is successful, you will find the generated ISO file in the release subdirectory! | If the build is successful, you will find the generated ISO file in the release subdirectory! | ||
+ | |||
+ | If error "debconf: unable to initialize frontend: Dialog" is generated, add following envvar in docker/ubuntu-builder/Dockerfile: | ||
+ | ENV DEBIAN_FRONTEND noninteractive | ||
---- | ---- | ||
Now the tricky part - to deploy. This is under development and will be scripted in more detail. | Now the tricky part - to deploy. This is under development and will be scripted in more detail. |