nomad-driver-singularity

module
v1.0.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2019 License: MPL-2.0

README

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

Directories

Path Synopsis
cmd
driver command
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL