nomad-driver-singularity
Hashicorp Nomad driver plugin using Singularity containers to execute tasks.
Requirements
Building The Driver
Clone repository to: `$GOPATH/src/github.com/sylabs/nomad-driver-singularity
$ mkdir -p $GOPATH/src/github.com/sylabs; cd $GOPATH/src/github.com/
$ git clone git@github.com:sylabs/nomad-driver-singularity
Enter the provider directory and build the provider
$ cd $GOPATH/src/github.com/sylabs/nomad-driver-singularity
$ make dep
$ make build
Developing the Provider
If you wish to work on the driver, you'll first need Go installed on your machine, and have have singularity installed. You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.
To compile the provider, run make build. This will build the provider and put the task driver binary under the NOMAD plugin dir, which by deafult is located under <nomad-data-dir>/plugins/.
Check Nomad -data-dir and -plugin-dir flags for more information.
$ make build
In order to test the provider, you can simply run make test.
$ make test