Files
skyline-console/doc/source/install/source-install-ubuntu.rst
yangsngshaoxue a1cd7d8f55 docs: Add source install guide
Add skyline console source install guide

Change-Id: I96e5f56c03637ee70da2f59c83af8a8b97a0e257
2022-08-30 23:00:48 +08:00

2.5 KiB

Source Install Ubuntu

This section describes how to install and configure the Skyline Console service. Before you begin, you must have a ready OpenStack environment. At least it includes keystone, glance, nova, neutron and skyline-apiserver service.

For more information about skyline-apiserver installation, refer to the OpenStack Skyline APIServer Guide.

Prerequisites

  1. Install system dependencies

    sudo apt update
    sudo apt install -y git python3-pip nginx make
    sudo apt-get install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
  2. Install nvm ( version control system for nodejs )

    wget -P /root/ --tries=10 --retry-connrefused --waitretry=60 --no-dns-cache --no-cache  https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh
    bash /root/install.sh
    . /root/.nvm/nvm.sh
  3. Install nodejs

    nvm install --lts=Erbium
    nvm alias default lts/erbium
    nvm use default
  4. Install yarn

    npm install -g yarn

Install and configure components

We will install the Skyline Console service from source code.

  1. Git clone the repository from OpenDev (GitHub)

    cd ${HOME}
    git clone https://opendev.org/openstack/skyline-console.git

    Note

    If you meet the following error, you need to run command sudo apt install -y ca-certificates:

    fatal: unable to access 'https://opendev.org/openstack/skyline-sonsole.git/': server certificate verification failed. CAfile: none CRLfile: none

  2. Install skyline-console

    cd ${HOME}/skyline-console
    make package
    sudo pip3 install --force-reinstall dist/skyline_console-*.whl
  3. Ensure that skyline folders have been created

    sudo mkdir -p /etc/skyline /var/log/skyline

    Note

    Ensure that skyline.yaml file is available in /etc/skyline folder. For more information about skyline.yml, see skyline-settings.

  4. Generate nginx configuration file

    skyline-nginx-generator -o /etc/nginx/nginx.conf

Finalize installation

  1. Start nginx service

    sudo systemctl start nginx.service