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 install
downloads and installs newest nomad, installs configuration on the system, etc. requiressudo
;sh adapter.sh start server
andsh adapter.sh start client
starts server and client separately in production...sh adapter.sh start dev
sarts 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 status
shows 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.hcl
allocates the job into nomad manually;python test.py
does 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