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

add vagrant playground #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

add vagrant playground #28

wants to merge 1 commit into from

Conversation

bganne
Copy link
Contributor

@bganne bganne commented Jan 11, 2021

Introduce vagrant environment #20

@jwhited
Copy link
Owner

jwhited commented Jan 19, 2021

thanks for breaking this out, it should be really helpful in a bunch of ways

Vagrant.configure("2") do |config|

config.trigger.before :up do |trigger|
trigger.run = {inline: "cp -uvf ../../../../../bin/coredns ../../../../../bin/wgsd-client ."}
Copy link
Owner

Choose a reason for hiding this comment

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

on Darwin I get this error:

% vagrant up
Bringing machine 'registry' up with 'virtualbox' provider...
Bringing machine 'client-1' up with 'virtualbox' provider...
Bringing machine 'client-2' up with 'virtualbox' provider...
Bringing machine 'client-3' up with 'virtualbox' provider...
Bringing machine 'client-4' up with 'virtualbox' provider...
==> registry: Running action triggers before up ...
==> registry: Running trigger...
    registry: Running local: Inline script
    registry: cp -uvf ../../../../../bin/coredns ../../../../../bin/wgsd-client .
    registry: /bin/cp: illegal option -- u

I imagine this won't work unless the host is a Linux kernel. Instead of copying binaries from the host, can we build within setup.sh so that the Vagrantfile is portable across host OS? That also removes any cross compilation confusion.

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.

2 participants