Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.49 KB

README.md

File metadata and controls

51 lines (36 loc) · 1.49 KB

HashiTalk 2020 Demo

Nomad Python Driver and USB Device Plugins

Created for demo purposes for HashiTalks 2020.

Python driver plugin was created using:

USB device plugin was created using:

Requirements

  • Nomad v0.9+
  • Go v1.11 or later (to build the plugin)

Build the Plugins

Clone the repository somewhere in your computer. This project uses Go modules so you will need to set the environment variable GO111MODULE=on or work outside your GOPATH if it is set to auto or not declared.

$ git clone https://github.com/cgbaker/hashitalk-2020-nomad-plugins

Build the plugins into the plugins directory:

$ make install

Deploying Driver Plugins in Nomad

Once the plugins are installed to the plugins directory using the above steps, you can try them out by starting a Nomad agent using the included config and job spec.

$ nomad agent -dev -plugin-dir=$(PWD)/plugins -config=example/nomad.hcl

# in another shell
$ nomad run ./example/device-demo.hcl
$ nomad run ./example/python-demo.hcl