Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Local Vagrant environment for portable integration testing #43

Closed
acornies-tc opened this issue Sep 5, 2018 · 5 comments
Closed

Local Vagrant environment for portable integration testing #43

acornies-tc opened this issue Sep 5, 2018 · 5 comments

Comments

@acornies-tc
Copy link
Contributor

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

Provide a portable Vagrant environment via Vagrantfile that can:

  • Provision entire Hashicorp stack (Docker, Consul, Nomad, Vault) in a standalone VM
  • Run OpenFaaS components using Nomad w/ Docker
  • Add debugging launch configuration which connects faas gateway to faas-nomad
  • Assume Go development is done on host/workstation, the rest is provisioned in the VM
  • Facilitate integration testing for all supported features of OpenFaaS

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

@acornies
Copy link
Collaborator

acornies commented Sep 5, 2018

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

@alexellis
Copy link
Contributor

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

@acornies
Copy link
Collaborator

acornies commented Sep 5, 2018

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
Copy link
Contributor

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

@nicholasjackson
Copy link
Contributor

Thanks @acornies this is merged in #46

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants