This is based on nomad + docker. I assume docker system is pre-installed correctly. The rest should work as follows:
The nomad installation is controlled via adapter.sh script, which:
sh adapter.sh installdownloads and installs newest nomad, installs configuration on the system, etc. requiressudo;sh adapter.sh start serverandsh adapter.sh start clientstarts server and client separately in production...sh adapter.sh start devsarts nomad agent in dev mode (i.e. single server and single client); Use only 'dev' mode or 'server & client' mode, but not together -- they will screw up each other and system reboot may be required...sh adapter.sh statusshows the status of nomad agent;sh adapter.sh stop dev-- stops nomad agent;
There are two ways to deploy a test network made of fake_news_score and uclnlp docker modules:
nomad job run job-definitions/fake_news_detection.hclallocates the job into nomad manually;python test.pydoes exactly the same but from python interface. This will be integrated into containers that will do orchastration;
Check how things work by looking to http://localhost:4646/ui/jobs