Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.
Balaji Boggaram Ramanarayan edited this page Jul 11, 2017 · 9 revisions

Buiding lightwave on Photon OS

Prepare a photon VM

  • Full install from Photon 1.0 GA iso (Choose "Photon Full" install option) Published publicly on Bintray at https://bintray.com/artifact/download/vmware/photon/photon-1.0-13c08b6.iso
  • Recommend a 2 CPU VM, with 2 GB RAM, and 40 GB think disk (you don't need that HD much space)
  • If you need to disable the firewall "iptables -P INPUT ACCEPT"
  • Enable SSH for root vim /etc/ssh/sshd_config
  • add or uncomment the line “PermitRootLogin yes” to allow ssh logins
  • systemctl restart sshd

Install Dependent Packages

tdnf makecache
tdnf install -y openjre
tdnf install -y openjdk
tdnf install -y commons-daemon  
tdnf install -y apache-tomcat
tdnf install -y apache-maven
tdnf install -y ant-contrib-1.0b3-8.ph1.noarch
tdnf install -y apache-ant
tdnf install -y likewise-open-devel-6.2.11
tdnf install -y boost-devel-1.60.0
tdnf install -y jansson-devel
tdnf install -y copenapi-devel
tdnf install -y c-rest-engine-devel

Restart your shell session! If you just installed JAVA/JRE, JAVA_HOME won't be set until you restart your shell session. Note that the related Java components have to be installed as a one line tdnf call to prevent it from choosing the latest JRE dependency. Check latest depdenency versions under https://github.com/vmware/lightwave/blob/dev/support/docker/Dockerfile

Run build

git clone [email protected]:vmware/lightwave.git
cd lightwave
make

Building Debug Binaries

For lightwave you can include "--enable-debug" in the respective spec file (e.g., vmdir/build/package/rpm/vmware-directory.spec). For likewise you need to add "-g -O0" to the CFLAGS in photonbuild64.sh.

Clone this wiki locally