Skip to content

cklewar/cso-ui

Repository files navigation

Project CSO - SD-WAN POC DEMO UI

VM Specs

  • OS: Ubuntu 16.04 or 18.04
  • CPU: 1
  • RAM: 1024MB
  • STORAGE: Well at least 20MB for libs and actual code

Installation

Install a Ubuntu 16.04 or 18.04 virtual machine and login to this machine via ssh. Replace USER with user you created during Ubuntu setup and actual IP with machine IP.

ssh -l <USER> <IP> or ssh <USER>@<IP>

All upcoming operations are done with user root.

juniper@cso-ui:~$ sudo su
[sudo] password for juniper:

Change directory to user root home directory:

cd /root

Clone the repo with:

git clone https://git.juniper.net/cpo-solutions/cso-underlay-automation/cso-ui.git

Change into directory cso-ui

cd cso-ui

Start the installer:

root@cso-ui:/home/juniper/cso-ui# ./install.sh --help

Usage:
 ./install.sh [ --prepare <host_ip> <ws_ip>]
 ./install.sh [ --build=<host_ip> ]
 ./install.sh [ --buildUi=<host_ip> ]
 ./install.sh [ --buildGitlab=<host_ip> ]
 ./install.sh [ --cleanup ]
 ./install.sh [ --cleanupUi ]
 ./install.sh [ --cleanupGitlab ]
 ./install.sh [ --import <host_ip> <file> ]
 ./install.sh [ --all <host_ip> <ws_ip> <file> ]
 ./install.sh [ --help | -h ]

There are several options available within the installer. Since we have a fresh Ubuntu box we will go with:

./install --all 10.11.111.180 10.11.111.180 cso_ops_usecases_export.tar.gz
  • NOTE:
    • The <host_ip> option should be the ip of the host that the docker container is running on.
    • The <ws_ip> option should be the ip of the host that the docker container is running on.
    • The <file> option should point to the repo file which should be imported into gitlab. You will find this file inside <cso_ui> directory being called cso_ops_usecases_export.tar.gz.

Option --all will run through all the required steps to build the environment. Example output of running installer:

./install.sh --all 192.168.10.5 172.30.52.57 cso_ops_usecases_export.tar.gz 

#########################################################################
Prepare environment
#########################################################################
gpg: keyring `/tmp/tmpvw4aw1td/secring.gpg' created
gpg: keyring `/tmp/tmpvw4aw1td/pubring.gpg' created
gpg: requesting key CC86BB64 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpvw4aw1td/trustdb.gpg: trustdb created
gpg: key CC86BB64: public key "Launchpad PPA for Roberto Mier Escand?n \xee\x83\xbf" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
'ascii' codec can't decode byte 0xc3 in position 108: ordinal not in range(128)
Hit:1 http://ppa.launchpad.net/rmescandon/yq/ubuntu xenial InRelease
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]          
Get:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]                 
Fetched 325 kB in 0s (629 kB/s)                             
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
curl is already the newest version (7.47.0-1ubuntu2.12).
git is already the newest version (1:2.7.4-0ubuntu1.6).
yq is already the newest version (2.2-1).
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
#########################################################################
Build UI container
#########################################################################

After installer finishes open browser (preferred browser is Google Chrome) and access:

  • cso-ui: http://<HOST_IP>:8670 User: root Password: juniper123
  • Gitlab: http://<HOST_IP>:9080 User: root Password: juniper123

SSL

To enable SSL support for web server we need to create private key and a certificate. To do so we will use openssl. When asked for common name put in IP address or DNS name of actual host providing landing page. Private key and certificate file name are static and should not be changed for now. Both the files have to be placed in config directory.

openssl genrsa -out privkey.pem 2048
openssl req -new -x509 -days 365 -key privkey.pem -out cert.pem

If not already done copy these files to config/ssl.

About

CSO UI Use Case Runner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors