The 'Build Server' is only used to build and deploy a Regional Controller (RC). Therefore it can be considered ephemeral to the deployment and operation of the other Network Cloud RCs and Unicycle/Rover edge pod infrastructure.
Typically the build server would be created in a VM but could be a physical bare metal server.
The installation procedure to create the build server primarily involves cloning the set of repositories and packages implementing the Network Cloud Family blueprints in the R1 release.
The build server must have connectivity to the internet to be able to clone the necessary repos and packages.
The build server must have IP connectivity to any RCs it is to deploy. In addition, the RCs being build will need access to a DHCP server. There are several options for the DHCP requirement:
Before starting to clone upstream repos and packages the build server must have the following pre-installed
Ensure Ubuntu Release 16.04 (specifically) and Docker version is 1.13.1 or newer:
|
Ensure required packages are installed including python, python-requests, python-pip, sshpass, xorriso, make, and gcc are installed. Install any missing packages with apt-get install -y <package name>
|
If you haven't done so already, elevate yourself to root:
user@build_server:/# sudo -i |
Clone the Redfish Bootstrapping Script repository for use as part of Akraino tools:
## Download the latest redfish artifacts from LF Nexus root@build_server:/# mkdir -p /opt/akraino/redfish root@build_server:/# NEXUS_URL=https://nexus.akraino.org root@build_server:/# curl -L "$NEXUS_URL/service/local/artifact/maven/redirect?r=snapshots&g=org.akraino.redfish&a=redfish&v=0.0.2-SNAPSHOT&e=tgz" | tar -xozv -C /opt/akraino/redfish |
Clone the Akraino Regional Controller repository:
## Download the latest Regional_controller artifacts from LF Nexus ## root@build_server:/# mkdir -p /opt/akraino/region root@build_server:/# NEXUS_URL=https://nexus.akraino.org root@build_server:/# curl -L "$NEXUS_URL/service/local/artifact/maven/redirect?r=snapshots&g=org.akraino.regional_controller&a=regional_controller&v=0.0.2-SNAPSHOT&e=tgz" | tar -xozv -C /opt/akraino/region |
At this point there will be two new directories where the cloned NC artifacts have been created.
root@build_server:/# ls /opt/akraino/ redfish region |
This completes the installation of the build server and it can now be used to deploy one or more Regional Controllers.