The sample provides utility scripts (under the script folder) to facilitate sample development and deployment:
Password-less access is assumed between the cluster manager and the workers. Setup as follows on each worker node:
ssh-keygen
ssh-copy-id <worker>
The script creates a sample distribution package that contains sample (docker) images, deployment scripts and media files under the dist
directory. You can distribute the sample to a different system for evaluation and demonstration without the need to rebuild the sample.
The script updates the worker nodes with the most recent images (on the current host.) The script scans the generated deployment scripts, and checks the worker nodes to ensure that they have the most recent images. If any node got out-dated images, the script updates them.
To use the script, first perform a normal build cmake...make...
and then make update
. The script does not take any command-line argument.