Skip to content

highway-b/hashitalk-2020-nomad-plugins

 
 

Repository files navigation

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

About

Demo plugins from the HashiTalk 2020 talk: Extending Nomad with Plugins

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 92.2%
  • HCL 5.1%
  • Makefile 2.7%