hashicorp / faas-nomad

OpenFaaS plugin for Nomad
https://www.openfaas.com
MIT License
254 stars 46 forks source link

Local Vagrant environment for portable integration testing #43

Closed acornies-tc closed 5 years ago

acornies-tc commented 5 years ago

Since this feature doesn't quite fit the issue template, I'll outline it below:

Provide a portable Vagrant environment via Vagrantfile that can:

Discussed briefly with @nicholasjackson, but wanted to track it.

acornies commented 5 years ago

This is me ^ forgot to switch accounts when drafting up the issue.

alexellis commented 5 years ago

This would be useful for testing. Do you know if it'd work with KVM on Linux too?

acornies commented 5 years ago

Hi @alexellis, in theory it should be fine with vagrant-libvirt plugin and the libvirt provider (I haven't tried it myself). More info here: https://github.com/vagrant-libvirt/vagrant-libvirt.

I could see adding something like this in the Vagrantfile:

config.vm.provider "libvirt" do |lv|
  lv.cpus = 4
  lv.memory = 1024
  ...
end

then to trigger it would be: vagrant up --provider=libvirt

nicholasjackson commented 5 years ago

Liking this so far, I have left a couple of comments, I think we can probably make things a little more generic.

nicholasjackson commented 5 years ago

Thanks @acornies this is merged in #46