Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kiaragrouwstra/nomad-driver-nix2
https://github.com/kiaragrouwstra/nomad-driver-nix2
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kiaragrouwstra/nomad-driver-nix2
- Owner: KiaraGrouwstra
- License: mpl-2.0
- Created: 2024-01-29T22:30:28.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-05T23:29:16.000Z (12 months ago)
- Last Synced: 2024-10-15T13:29:41.796Z (3 months ago)
- Language: Go
- Size: 116 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Nomad Nix Driver Plugin
==========A Nomad driver to run Nix jobs.
Uses the same isolation mechanism as the `exec` driver.
Partially based on [`nomad-driver-nix`](https://github.com/input-output-hk/nomad-driver-nix)Requirements
-------------------- [Go](https://golang.org/doc/install) v1.19 or later (to compile the plugin)
- [Nomad](https://www.nomadproject.io/downloads.html) v1.3 or later (to run the plugin)
- [Nix](https://nixos.org/download.html) v2.11 or later (to run the plugin), either through NixOS or installed in root modeBuilding and using the Nix driver plugin
-------------------To build the plugin and run a dev agent:
```sh
$ make build
$ nomad agent -dev -config=./example/agent.hcl -plugin-dir=$(pwd)# in another shell
$ nomad run ./example/example-batch.hcl
$ nomad run ./example/example-service.hcl
$ nomad logs
```Writing Nix job specifications
-------------------See documentation comments in example HCL files.