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
- CentOS 7
Obtain build tools
The repository pnda contains all the tools needed to build PNDA.
Decide which version of PNDA you want to create. All PNDA releases are desginated with tag similar to
release/4.0 across all repositories.
Clone this repository at the right version 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.
The script generates a file called
set-pnda-env.sh containing the necessary environment settings needed to carry out builds. Ensure this is invoked before each build
Your environment is now ready to build PNDA.
build-pnda.sh is invoked as a non-privileged user.
If you are running behind a non-transparent proxy, go through the proxy configuration steps again for the non-privileged user (don't substitute user).
cd pnda ./build-pnda.sh RELEASE release/4.0
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