Skip to content

briancain/devpod-provider-nomad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevPod Provider for Nomad

Author: Brian Cain

Go Release

This is a provider for DevPod that allows you to create a DevPod using HashiCorp Nomad.

Please report any issues or feature requests to the Github Issues page.

This project is still a work in progress, excuse our mess! <3

devpod.sh

Getting Started

  1. Install the provider to your local machine

From Github:

devpod provider add briancain/devpod-provider-nomad
  1. Use the provider
devpod up <repository-url> --provider nomad

Provider Configurations

Set this options through DevPod to configure them when DevPod launches the Nomad job during a workspace creation.

  • NOMAD_NAMESPACE:
    • description: The namespace for the Nomad job
    • default:
  • NOMAD_REGION:
    • description: The region for the Nomad job
    • default:
  • NOMAD_CPU:
    • description: The cpu in mhz to use for the Nomad Job
    • default: "200"
  • NOMAD_MEMORYMB:
    • description: The memory in mb to use for the Nomad Job
    • default: "512"

Testing Locally

  1. Build the provider locally
RELEASE_VERSION=0.0.1-dev ./hack/build.sh --dev
  1. Delete the old provider from DevPod
devpod provider delete nomad
  1. Install the new provider from a local build
devpod provider add --name nomad --use ./release/provider.yaml 
  1. Test the provider
devpod up <repository-url> --provider nomad --debug