There are many ways to build and develop Voltha:
git clone git@bitbucket.org:corddesign/voltha.git cd voltha make vagrant vagrant ssh # the rest to be executed inside the vagrant VM cd /voltha make
The above has generated a new Docker image '''cord/voltha''' inside the VM:
docker images
The simplest way to run the image (in the foreground):
docker run -ti cord/voltha
For advanced developers this may provide a more comfortable developer environment (e.g., by allowing IDE-assisted debugging), but setting it up can be a bit more challenging.
The steps that may work (see list of workarounds in case it does not):
git clone git@bitbucket.org:corddesign/voltha.git cd voltha make venv
Potential issues and workaround:
Missing virtualenv binary. Resolution: install virtualenv.
brew install python pip virtualenv
'make venv' exits with error 'openssl/opensslv.h': file not found. Resolution: install openssl-dev and add a CFLAGS to make venv:
brew install openssl
Note the version that it installed. For example, '1.0.2h_1'. Rerun make venv
as:
env CFLAGS="-I /usr/local/Cellar/openssl/1.0.2h_1/include" make venv
These steps are not different from the Vagrant path:
make
Then you shall be able to see the created image and run the container:
docker run -ti cord/voltha