-
Notifications
You must be signed in to change notification settings - Fork 72
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
Embeds xhyve #27
Embeds xhyve #27
Conversation
@johanneswuerbach Thanks PR! Yes, I knew that repository. I think we should include that repository. How do you think? |
As far as I understand https://github.com/xhyve-xyz/xhyve has no go bindings, just xhyve and some patches. Looks like hooklift/xhyve#5 there is already work in progress to update the gobindings from the repo you mentioned. |
@johanneswuerbach BTW, this PR does not run xhyve VM. Could you rebase #28 and separating commit of |
c8e12df
to
770c325
Compare
You are right, this breaks the driver. I'll revisit when I have time, rebased for now.
Dunno, I'm usually not really a fan of forking and duplicating, but your call. Maybe we could ask the creators of |
FWIW, the goal of xhyve-xyz is to have a central place to work on xhyve rather than seeing the proliferation of different forks for different needs. I'd much prefer to see work like this inside the main xhyve repo. I like the idea of making xhyve into a library that can have bindings for different languages and a thin CLI on top of it. |
There are a couple of reasons https://github.com/hooklift/xhyve exists:
|
770c325
to
061b467
Compare
@zchee updated and now it works for me 🙇 Hello 👋 first dependency free docker-machine driver! |
@johanneswuerbach and, I want contact you on twitter. |
docker-machine expects the first stdout line to be the plugin address, patch hooklift/xhyve to log to stderr instead
061b467
to
bdc229b
Compare
@@ -55,7 +55,7 @@ test-url: | |||
${DOCKER_MACHINE_CMD} --storage-path ${DOCKER_MACHINE_STORAGEPATH} url ${DOCKER_MACHINE_VM_NAME} | |||
|
|||
driver-run: clean build install driver-kill | |||
rm -rf ${DOCKER_MACHINE_STORAGEPATH}/machines/${DOCKER_MACHINE_VM_NAME} && ${DOCKER_MACHINE_CMD} --storage-path ${DOCKER_MACHINE_STORAGEPATH} create --driver xhyve --xhyve-disk-size ${DOCKER_MACHINE_VM_DISKSIZE} ${DOCKER_MACHINE_VM_NAME} | |||
${DOCKER_MACHINE_CMD} --storage-path ${DOCKER_MACHINE_STORAGEPATH} rm -f ${DOCKER_MACHINE_VM_NAME} && ${DOCKER_MACHINE_CMD} --storage-path ${DOCKER_MACHINE_STORAGEPATH} create --driver xhyve --xhyve-disk-size ${DOCKER_MACHINE_VM_DISKSIZE} ${DOCKER_MACHINE_VM_NAME} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@johanneswuerbach
If does not exists xhyve-test
VM, occurred error.
Solution
${DOCKER_MACHINE_CMD} --storage-path ${DOCKER_MACHINE_STORAGEPATH} rm -f ${DOCKER_MACHINE_VM_NAME} || true
${DOCKER_MACHINE_CMD} --storage-path ${DOCKER_MACHINE_STORAGEPATH} create --driver xhyve --xhyve-disk-size ${DOCKER_MACHINE_VM_DISKSIZE} ${DOCKER_MACHINE_VM_NAME}
bdc229b
to
b9507ea
Compare
I have the discussion with @johanneswuerbach in the twitter. LGTM. |
Embeds xhyve golang bindings
Uses https://github.com/hooklift/xhyve, which is also used by https://github.com/TheNewNormal/corectl