Skip to content

rhsakarpos/opensds-dashboard

 
 

Repository files navigation

Summary

OpenSDS dashboard uses the front-end development framework Angular5 (https://angular.io/) and relies on PrimeNG UI Components (https://www.primefaces.org/primeng/). Regardless of deployment or two development, prepare the corresponding environment.

Prerequisite

1. Ubuntu

  • Version information
root@proxy:~# cat /etc/issue
Ubuntu 16.04.2 LTS \n \l

2. Nginx installation

sudo apt-get install -y nginx

3. NodeJS installation, NPM will be installed with nodejs.

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

4. Angular CLI installation

Specify the version[1.7.4] of angular5 suitable for installation.

sudo npm install -g @angular/cli@1.7.4

Build & Start

1. Git clone dashboard code.

git clone https://github.com/opensds/opensds-dashboard.git

2. Build opensds dashboard.

After the build work finished, the files in the dist folder should be copied to the folder /var/www/html/.

cd opensds-dashboard
sudo npm install
sudo ng build --prod
cp -R opensds-dashboard/dist/* /var/www/html/

3. Set nginx default config.

vi /etc/nginx/sites-available/default 

Configure proxy, points to the resource server, multi-cloud server and the authentication server respectively. Parameter 'client_max_body_size' configuration supports uploaded file size. Such as:

  • Keystone server http://1.1.1.0/identity
  • Resource server http://1.1.1.0:50040
  • Multi-cloud server http://1.1.1.0:8089
location /v3/ {
    proxy_pass http://1.1.1.0/identity/v3/;
}

location /v1beta/ {
    proxy_pass http://1.1.1.0:50040/v1beta/;
}

location /v1/ {
    proxy_pass http://1.1.1.0:8089/v1/;
    client_max_body_size 10240m;
}

4. Restart nginx

service nginx restart 

5. Access dashboard in browser.

http://localhost/

About

This is the dashboard for OpenSDS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 77.9%
  • CSS 12.5%
  • HTML 7.9%
  • JavaScript 1.3%
  • Shell 0.2%
  • Dockerfile 0.1%
  • Other 0.1%