Skip to content

Plugin Development Environment

Mark Gilbert edited this page Jul 10, 2022 · 2 revisions

Preparing OS for Development

  • ooce/library/libarchive
  • system/bhyve
  • driver/virtualization/kvm
  • system/zones/brand/kvm
  • system/kvm
  • zadm
  • gcc10
  • lx
  • system/bhyve/firmware
  • ooce/application/vagrant
  • ruby-27
  • developer/build/gnu-make
  • isc-dhcp
pfexec pkg install ooce/library/libarchive  system/bhyve  driver/virtualization/kvm  system/zones/brand/kvm  system/kvm  zadm gcc10 lx system/bhyve/firmware  ruby-27 developer/build/gnu-make

Setup vagrant-zones environment

    pfexec gem install bundler
    pfexec chown user /rpool/vagrant-zones
    git clone https://github.com/StartCloud/vagrant-zones.git /rpool/vagrant-zones
    cd vagrant-zones
    bundle config set --local path 'vendor/bundle'
    MAKE=gmake bundle install
    bundle binstubs --all

note: we are using GMake to build Nokogiri

Lint your code

pfexec bundle exec rake rubocop:auto_correct

To Hide Vagrant Warning while in Dev:

export VAGRANT_I_KNOW_WHAT_IM_DOING_PLEASE_BE_QUIET=true