-
Notifications
You must be signed in to change notification settings - Fork 2k
Adding VMware AppCatalyst Driver and Photon provisioner. #1401
Conversation
Signed-off-by: Fabio Rapposelli <fabio@vmware.com>
@frapposelli Wow! Great! |
@frapposelli Nice! I'll check this out. |
@frapposelli can we set |
when you create the shared folder, what are the flag options? I saw your passing 4, I'm getting some permission issues. Specifically if you try running npm install in a shared folder. |
untar errors along with this: npm ERR! Error: EPERM, chown '/usr/src/app/node_modules/cookie-parser/package.json' |
these are the tar errors that occur first npm ERR! tar.unpack untar error /root/.npm/cookie-parser/1.3.5/package.tgz |
replicating this is just pulling down the official node image.. mapping in your root directory (remove your node_modules folder if it's there) and run npm install |
docker run --rm -it -v $(pwd):/usr/src/app node npm install |
I guess the working dir isn't set.. so you'll have to execute a change directory before running npm install or.. docker run --rm -it -v $(pwd):/usr/src/app node /bin/bash |
@silverbp apparently it's |
thanks! I'll probably end up using unison to sync.. |
last comment, is there a way to change the size of the hard drive? or is that a limitation on AppCatalyst? |
@silverbp it's currently a limitation of the first tech preview of AppCatalyst, it will be removed with the next release and will update the driver accordingly. |
btw, the virtualbox driver for docker-machine (boot2docker image) doesn't have this issue. It also maps my user folder into the vm as docker:staff where as AppCatalyst maps my folder in as 501:20 (the user and group). My username is not docker, but I assume they are just mapping it that way. We were trying out AppCatalyst because of the poor disk performance in virtualbox. |
@silverbp I'll take a second look at that tomorrow, thanks for the tip. |
@silverbp I did a deep analysis on that specific problem, apparently the difference between the two shared folders implementations (vbox vs. vmw) is that vbox will do I understand this can cause some troubles when working with tools such as Thanks for bringing this up. |
return err | ||
} | ||
|
||
log.Infof("Creating VM...") |
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.
I'm assuming that AppCatalyst takes care of creating this VM upon installation? Will this work with a non-Photon based OS?
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.
Right now this only works with the embedded Photon VM that ships with AppCatalyst but there's nothing preventing support for other OS.
The embedded Photon VM is a template and docker-machine
creates a clone of it every time it spins up a new machine so the instances are completely independent.
Hi , thanks for your efforts and persistence in submitting this driver. We are extremely excited that there is so much interest in Docker Machine and we really appreciate your interest. However, at this time it is proving to be extremely difficult for us to keep up with reviewing and testing each of these drivers for inclusion in the Machine core. We really want to switch to a more pluggable model, as well as polish up a few things about the driver model which need to be changed to ensure a smooth and sustainable future. Therefore, we will be moving to a plugin model for 0.5 and would love to have you involved in the design and development process. We are closing the outstanding driver PRs at this time, but please keep the code. We will stick closely to the current driver interface and you should be able to re-use a lot (if not all) of the existing driver along with the new plugin model. We will be moving all of the drivers which are merged directly into Machine today to the plugin model when it is available, so there will be no special treatment of those, and there will be documentation outlining the process of developing and using a Docker Machine driver plugin. With all of that being said, we want to apologize for the lack of feedback on your pull request. As contributors ourselves, we understand that being left in limbo is no fun. We would have liked to address this sooner, and in the future we will be more responsive around these kinds of issues. Once again, we thank you for the contribution and the tremendous support. Keep hacking strong! If you want to contribute to the design of the plugin model, we'd love to get your input on this issue where we will be planning it: |
@frapposelli This driver should have been merged into master and matured. This setup appears to have magicked away my volume issues on OSX. Think of the hours lost on things like https://github.com/brikis98/docker-osx-dev I appreciate the time saved. |
@dan-compton It will not be merged into master, but the good news is that with the next release it will be possible to distribute support for this as its own driver plugin binary. |
Ah! That makes sense. Sorry! |
Did anyone create the driver actually that can be used with new docker-machine version? |
@GalGavu I'm working on the plugin right now, it will be available later this week. |
👍 |
@frapposelli is this plugin being worked on somewhere else? or is it on hold? would love to try appcatalyst with docker machine. |
... and a small fix to the
bats
test.VMware AppCatalyst can be downloaded here: https://communities.vmware.com/community/vmtn/devops/vmware-appcatalyst