Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to the Dev VM environment/tooling #3149

Merged
merged 2 commits into from Feb 9, 2022
Merged

Conversation

marcparadise
Copy link
Member

This makes many changes to improve the Dev VM environment:

  • remove 'sync' tool, because native/direct file share with host
    is now performant enough on both Mac and Linux
  • removed unsupported scenarios and code from Vagrantfile
  • clarify Vagrantfile contents via renames and comments
  • fix project loading for erlang and ruby projects
  • fix project loading for cookbooks and ctl commands
  • fix erlang project depenency handling and hotloading
  • update README to reflect latest changes
  • install some additional tooling (tree, jq, ripgrep)
  • update distro to ubuntu 20.04
  • remove 'quickstart' behaviors which weren't used and didn't always
    work very well.
  • set up a default org and admin user; ensure knife works out of the
    box for this configuration for root.
  • with the sync tool gone, remove dvmtools.rb and move the remaining
    code into the Vagrantfile

Signed-off-by: Marc A. Paradise marc.paradise@gmail.com

@marcparadise marcparadise requested review from a team as code owners February 7, 2022 17:29
@netlify
Copy link

netlify bot commented Feb 7, 2022

👷 Deploy Preview for chef-server processing.

🔨 Explore the source changes: e514877

🔍 Inspect the deploy log: https://app.netlify.com/sites/chef-server/deploys/6203fdca5c078500078eed90

dev/README.md Outdated Show resolved Hide resolved
dev/README.md Outdated Show resolved Hide resolved
If you need to work on an erlang project dependency (for example, you want to modify chef_authn)
this can also be loaded into the VM with hot code loading support. After loading the service
in the VM (eg. `dvm load oc_erchef`) , switch to the host and clone the dependency into `external-deps`
directory. For example, to load `chef_authn` into a loaded and running `oc_erchef`:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for writing this up!

dev/README.md Outdated Show resolved Hide resolved
@jashaik
Copy link
Contributor

jashaik commented Feb 9, 2022

Testing Report:

  • use virtualbox native sharing to access host files.
  • remove the ‘sync’ tool -> sync of files is working without sync lib
  • project loading from host is fixed for:
  • oc-id -> working
  • bifrost -> working
  • erchef -> working
  • bookshelf -> working
  • server cookbooks -> working
  • server ctl commands -> working
  • hot code updates from host works for erlang projects -> working
  • automatically set up an org with an admin user -> Working
  • fix path so that chef/knife work by default -> working but knife is giving some warnings . please refer the attached screenshot
  • install additional default packages: tree, jq, ripgrep -> installed
  • remove broken ‘quickstart’ support -> removed this with load & start
  • update readme to reflect any usage changes -> Need to review

@PrajaktaPurohit @vinay-satish @marcparadise
Screenshot 2022-02-09 at 3 14 56 PM

This makes many changes to improve the Dev VM environment:

* remove 'sync' tool, because native/direct file share with host
  is now performant enough on both Mac and Linux
* removed unsupported scenarios and code from Vagrantfile
* clarify Vagrantfile contents via renames and comments
* fix project loading for erlang and ruby projects
* fix project loading for cookbooks and ctl commands
* fix erlang project depenency handling and hotloading
* update README to reflect latest changes
* install some additional tooling (tree, jq, ripgrep)
* update distro to ubuntu 20.04
* remove 'quickstart' behaviors which weren't used and didn't always
  work very well.
* set up a default org and admin user; ensure `knife` works out of the
  box for this configuration for root.
* with the sync tool gone, remove dvmtools.rb and move the remaining
  code into the Vagrantfile

Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants