Create PNDA build components
In addition to projects like Hadoop and Kafka, PNDA also includes a variety of components that provide an operations console, application deployment and more. Build these components before provisioning PNDA.
Create build node
Select build node
Designate or create the PNDA build node. This could be the same machine that was used to build the mirror file sets.
Two types of build node are supported -
- Red Hat Enterprise Linux 7
- Ubuntu 14.04
Obtain build tools
The repository pnda contains all the tools needed to build PNDA.
Clone this repository to the build node.
Configure the proxy. (Optional)
The entire PNDA build process can be performed from behind a non-transparent proxy.
To proceeding in this mode, first set the system configuration and then run the
set-proxy-env.sh script that will set up the various proxy configurations needed by the multiple build tools.
sudo su export http_proxy=http://<proxy_host>:<proxy_port> export https_proxy=http://<proxy_host>:<proxy_port> . set-proxy-env.sh
Preparing the build environment
The tools are found in the build folder.
install-build-tools.sh installs all the necessarily build prerequisites.
Run it with superuser privileges in the location that you wish to install your build tools.
sudo su cd /home/builder ./install-build-tools.sh
As well as installing all the required software, it may pause and ask the operator to carry out some configuration on the build environment, for example adjusting the contents of /etc/hosts.
Once it has finished, a file called
set-pnda-env.sh will be found in the working directory. This script contains the necessary environment variables and other settings needed to carry out builds. It should either be added to the end of an initialization script such as
/etc/bash.bashrc so that these settings are available for new shells, or it can be invoked with each build.
sudo su cat >> /etc/bash.bashrc . /home/builder/set-pnda-env.sh
Your environment is now ready to build PNDA.
build-pnda.sh is invoked as a non-privileged user.
cd pnda ./build-pnda.sh RELEASE release/3.5
It is also possible to perform more complex builds including building to a specific bill-of-materials. Please refer to the repository notes.
All build products are assembled in the directory