ceph / calamari-clients

Ceph Manager API Client Code
Other
101 stars 59 forks source link

calamari-client build doesn't create tar file #95

Open XinliGuan opened 9 years ago

XinliGuan commented 9 years ago

I follow the instruction in this link: https://github.com/ceph/calamari-clients/wiki/Fedora-Build-Instructions

yum install nodejs npm ruby make git
npm install -g grunt-cli
download and install rubygems
gem install compass
checkout the code git clone git@github.com:ceph/calamari-clients.git
cd into calamari-clients folder
to build: make build-real

Upon successful build you will have dist folders in admin/login/dashboard/manage folders and you have to use them in your webapp/content folder of calamari.

The build process seems working correctly (no error message) The admin/login/dashboard/manage folders have been updated:

[root@acme64 calamari-clients]# ls -l total 76 drwxr-xr-x 8 root root 4096 Jul 27 13:18 admin -rw-r--r-- 1 root root 1398 Jul 23 13:46 bootstrap.md -rw-r--r-- 1 root root 2222 Jul 23 13:46 calamari-clients.suse.spec -rw-r--r-- 1 root root 1170 Jul 23 13:46 clients.spec -rw-r--r-- 1 root root 1646 Jul 23 13:46 COPYING drwxr-xr-x 10 root root 4096 Jul 27 13:21 dashboard drwxr-xr-x 2 root root 4096 Jul 23 13:46 debian -rwxr-xr-x 1 root root 874 Jul 23 13:46 get-versions.sh -rw-r--r-- 1 root root 1127 Jul 23 13:46 LICENSE.txt drwxr-xr-x 8 root root 4096 Jul 27 13:19 login -rw-r--r-- 1 root root 4569 Jul 23 13:46 Makefile -rw-r--r-- 1 root root 910 Jul 23 13:46 Makefile.sub drwxr-xr-x 9 root root 4096 Jul 27 13:17 manage -rw-r--r-- 1 root root 856 Jul 23 13:46 README.md drwxr-xr-x 2 root root 4096 Jul 23 13:46 screenshots -rw-r--r-- 1 root root 815 Jul 23 13:46 ui.build.instructions.md drwxr-xr-x 3 root root 4096 Jul 23 13:46 utils drwxr-xr-x 9 root root 4096 Jul 23 13:46 vagrant

for admin, the dist folder has been created.

[root@acme64 admin]# ls -l total 52 drwxr-xr-x 7 root root 4096 Jul 27 13:17 app -rw-r--r-- 1 root root 493 Jul 23 13:46 bower.json -rw-r--r-- 1 root root 0 Jul 27 13:18 build-stamp drwxr-xr-x 7 root root 4096 Jul 27 13:18 dist -rw-r--r-- 1 root root 8977 Jul 23 13:46 Gruntfile.js -rw-r--r-- 1 root root 1285 Jul 23 13:46 karma.conf.js -rw-r--r-- 1 root root 1134 Jul 23 13:46 karma-e2e.conf.js -rw-r--r-- 1 root root 24 Jul 23 13:46 Makefile drwxr-xr-x 32 root root 4096 Jul 27 13:17 node_modules -rw-r--r-- 1 root root 1018 Jul 23 13:46 package.json -rw-r--r-- 1 root root 480 Jul 23 13:46 README.md drwxr-xr-x 3 root root 4096 Jul 23 13:46 test [root@acme64 admin]#

for dashboard, the dist folder has been created:

[root@acme64 dashboard]# ls -l total 60 drwxr-xr-x 6 root root 4096 Jul 27 13:20 app -rw-r--r-- 1 root root 835 Jul 23 13:46 bower.json -rw-r--r-- 1 root root 0 Jul 27 13:21 build-stamp drwxr-xr-x 7 root root 4096 Jul 27 13:21 dist drwxr-xr-x 3 root root 4096 Jul 27 13:21 docs drwxr-xr-x 2 root root 4096 Jul 23 13:46 documentation -rw-r--r-- 1 root root 12894 Jul 23 13:46 Gruntfile.js -rw-r--r-- 1 root root 24 Jul 23 13:46 Makefile drwxr-xr-x 33 root root 4096 Jul 27 13:19 node_modules -rw-r--r-- 1 root root 1068 Jul 23 13:46 package.json -rw-r--r-- 1 root root 7606 Jul 23 13:46 README.md drwxr-xr-x 4 root root 4096 Jul 23 13:46 test [root@acme64 dashboard]#

for login , the dist folder has been created [root@acme64 login]# ls -l total 48 drwxr-xr-x 6 root root 4096 Jul 27 13:19 app -rw-r--r-- 1 root root 322 Jul 23 13:46 bower.json -rw-r--r-- 1 root root 0 Jul 27 13:19 build-stamp drwxr-xr-x 7 root root 4096 Jul 27 13:19 dist -rw-r--r-- 1 root root 12351 Jul 23 13:46 Gruntfile.js -rw-r--r-- 1 root root 24 Jul 23 13:46 Makefile drwxr-xr-x 33 root root 4096 Jul 27 13:18 node_modules -rw-r--r-- 1 root root 1066 Jul 23 13:46 package.json -rw-r--r-- 1 root root 451 Jul 23 13:46 README.md drwxr-xr-x 4 root root 4096 Jul 23 13:46 test [root@acme64 login]#

for manage, the dist folder has been created: drwxr-xr-x 7 root root 4096 Jul 27 13:16 app -rw-r--r-- 1 root root 676 Jul 23 13:46 bower.json -rw-r--r-- 1 root root 0 Jul 27 13:17 build-stamp drwxr-xr-x 8 root root 4096 Jul 27 13:17 dist drwxr-xr-x 2 root root 4096 Jul 23 13:46 documentation -rw-r--r-- 1 root root 13706 Jul 23 13:46 Gruntfile.js -rw-r--r-- 1 root root 1564 Jul 23 13:46 karma.conf.js -rw-r--r-- 1 root root 1348 Jul 23 13:46 karma-e2e.conf.js -rw-r--r-- 1 root root 24 Jul 23 13:46 Makefile drwxr-xr-x 45 root root 4096 Jul 27 13:15 node_modules -rw-r--r-- 1 root root 1632 Jul 27 13:14 package.json -rw-r--r-- 1 root root 8353 Jul 23 13:46 README.md drwxr-xr-x 3 root root 4096 Jul 23 13:46 test [root@acme64 manage]#

what is my next step, I need:

1) run some make dist command to create a new tar ball

2) do I need to manually copy all the tar files?

Thanks a lot;

Charley

XinliGuan commented 9 years ago

I did experiment (not sure is it correct), I run make dist under clalamari-clients to create a tar file with all the dist folders. after then, I copy the tar in the calamari server and gnuzip/tar the ball, then I copy all the items under calamari-clients into /opt/calamari/webapp/content I re initialize the calamari server with calamari-ctl initialize, it works fine, [root@centos7os calamari-clients-1.2.2]# calamari-ctl initialize [INFO] Loading configuration.. [INFO] Starting/enabling salt... [INFO] Starting/enabling postgres... [INFO] Updating database... [INFO] Initializing web interface... [INFO] Starting/enabling services... [INFO] Restarting services... [INFO] Complete.

I nagivate to the calamari server, but the admin GUI page doesn't show up.