nomad-driver-spin

command module
v0.0.0-...-bac882e Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

README

Nomad Spin Driver Plugin

Nomad task driver plugins.

Requirements

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

Building the Plugin

$ make build

Setup Bindle Server

Clone Fermyon fork of Bindle and checkout tag 0.8.2

$ git clone https://github.com/fermyon/bindle
$ cd bindle
$ git checkout tags/0.8.2

Make and run Bindle server

$ make
$ target/debug/bindle-server --unauthenticated

Bindle images can now be pushed to this server

$ spin bindle push --bindle-server http://localhost:8081/v1

## Deploying Driver Plugins in Nomad
Build and plugin and start Nomad server.

```sh
$ make build
$ nomad agent -dev -config=./example/agent.hcl -plugin-dir=$PWD

Modify the example/example.nomad file to use the appropriate Bindle server and Bindle image id, then run the job in Nomad.

# in another shell
$ nomad run ./example/example.nomad
$ nomad logs <ALLOCATION ID>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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