Add ciao-webui support to ciao-down and Single VM#1006
Conversation
|
@jorgevgut I need your help with this one. The ciao-webui is working okay but I cannot build the latest version of the code inside single VM, e.g., make install-dev errors out. It seems to be complaining about proxy issues but I have set the proxies using npm config. Perhaps there are other npm configs I need to set, like the prefix. I'd be grateful if you could take a look. To test, git checkout -b markdryan-singlevm-webui master cd $GOPATH/src/github.com/01org/ciao/testutil/ciao-down Wait 10 minutes ciao-down connect Now you're in the VM. cd to the ciao-webui directory ( should be the same directory you use on the HOST) make install-dev It will fail. Please help me figure out why. |
d45e803 to
c812d43
Compare
This commit generates a certificate and a conf file for use by the web-ui. The conf file contains all the settings the web-ui needs to access the Single VM ciao cluster. Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
Launcher was crashing when creating containers if the attempt to create the Vnic failed. This commit fixes the crash by checking to see if an error has been returned before trying to access the inof structure. Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
This commit adds webui support to ciao-down. In short it - Adds a new option to the prepare command that allows a directory containing the ciao-webui repo to be shared between the host and the guest - Clones the web-ui if necessary - Installs nodejs and make in the guest - Configures noodejs - Adds ciao-webui launching instructions to the bash prompt Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
|
@jorgevgut I fixed all the proxy and installation issues. If you follow the instructions above and build with DESTDIR=/usr/local/nodejs make install-dev most of the errors are gone. But I still see some compile errors when building some of the modules, This happens on both the master and development branches. It seems to be related to bablify but I have no idea how to fix it. |
|
@jorgevgut Note you should update your make file to initialize DESTDIR using npm config get prefix |
1 similar comment
|
@jorgevgut Okay, the issue seems to be an existing ciao-webui build bug (intel/ciao-webui#129). What should I do? Do an npm install d3-scale when setting up the VM or will you guys fix this in the web-ui. |
|
@rbradford , @tpepper This should be good to go now. |
| return nil | ||
| } | ||
|
|
||
| func getProxy(upper, lower string) (string, error) { |
There was a problem hiding this comment.
If we keep osprepare, it probably should leverage this as a higher level library utility function.
This PR adds ciao-webui support to ciao-down and Single VM. In short ciao-down installs and configures node and downloads the ciao-webui repo into a directory shared with the host. Single VM creates a configuration file that contains all the information the webui needs to talk to the Single VM ciao instance.
We also fix a bug which causes a launcher crash when container creation fails due to a network error.