Go to file
Boxiang Zhu fd7f1ea843 docs: Add docker install of skyline-apiserver
1. Add docker install of skyline-apiserver.
2. Change the logo images folder
3. Change the swagger.json folder
4. Delete docs folder

Change-Id: If0ae9a83dd9465af7057115d5b803bc641347a66
2022-08-19 17:26:19 +08:00
.vscode chore: Remove poetry 2022-05-25 22:26:42 +08:00
container Add skyline port settings 2022-06-23 14:44:23 +08:00
devstack chore: Remove poetry 2022-05-25 22:26:42 +08:00
doc docs: Add docker install of skyline-apiserver 2022-08-19 17:26:19 +08:00
etc feat: Support SSO login via openID 2022-08-11 17:35:07 +08:00
kolla fix: Update .zuul.yaml 2022-03-10 19:10:57 +08:00
playbooks/devstack chore: Remove poetry 2022-05-25 22:26:42 +08:00
releasenotes feat: Support SSO login via openID 2022-08-11 17:35:07 +08:00
skyline_apiserver fix: Fix server_name is null for ports list api 2022-08-18 16:20:38 +08:00
tools fix: Remove invalid panko policy 2022-08-17 14:05:06 +08:00
.dockerignore feat: Add doc base frame 2022-07-29 14:31:57 +08:00
.gitignore feat: Add doc base frame 2022-07-29 14:31:57 +08:00
.gitreview fix: update skyline nginx log file address 2022-02-09 16:42:42 +08:00
.isort.cfg chore: Remove poetry 2022-05-25 22:26:42 +08:00
.zuul.yaml feat: Add doc base frame 2022-07-29 14:31:57 +08:00
bindep.txt feature: Add ZUUL JOBs 2021-08-25 15:01:17 +08:00
LICENSE feat: Add initial code of skyline-apiserver 2021-06-01 23:39:57 +08:00
Makefile fix: Fix the folder name of skyline-console 2022-05-27 20:00:57 +08:00
MANIFEST.in fix: Add MANIFEST.in and remove templates from packages 2022-07-21 13:42:09 +08:00
mypy.ini feat: Support mypy check 2022-07-28 16:09:31 +08:00
pytest.ini chore: Remove poetry 2022-05-25 22:26:42 +08:00
README-zh_CN.rst docs: Add docker install of skyline-apiserver 2022-08-19 17:26:19 +08:00
README.rst docs: Add docker install of skyline-apiserver 2022-08-19 17:26:19 +08:00
requirements.txt fix: Update requirements 2022-08-18 15:12:17 +08:00
setup.cfg fix: Add MANIFEST.in and remove templates from packages 2022-07-21 13:42:09 +08:00
setup.py chore: Remove poetry 2022-05-25 22:26:42 +08:00
swagger.json docs: Add docker install of skyline-apiserver 2022-08-19 17:26:19 +08:00
test-requirements.txt fix: Update the package version 2022-08-18 13:44:30 +08:00
tox.ini docs: Add docker install of skyline-apiserver 2022-08-19 17:26:19 +08:00

===========================
OpenStack Skyline APIServer
===========================

.. image:: https://governance.openstack.org/tc/badges/skyline-apiserver.svg
    :target: https://governance.openstack.org/tc/reference/tags/index.html

.. Change things from this point on

OpenStack Skyline APIServer is the back-end server of Skyline.

Skyline is an OpenStack dashboard optimized by UI and UE, support OpenStack
Train+. It has a modern technology stack and ecology, is easier for developers
to maintain and operate by users, and has higher concurrency performance.

You can learn more about Skyline APIServer at:

* `Wiki <https://wiki.openstack.org/Skyline/>`__
* `Developer Docs <https://docs.openstack.org/skyline-apiserver/latest/>`__
* `Blueprints <https://blueprints.launchpad.net/skyline-apiserver/>`__
* `Release notes <https://docs.openstack.org/releasenotes/skyline-apiserver/>`__

Getting Started
---------------

If you'd like to run from the master branch, you can clone the git repo:

    git clone https://opendev.org/openstack/skyline-apiserver

You can raise bugs on `Launchpad <https://bugs.launchpad.net/skyline-apiserver>`__

Develop Skyline-apiserver
-------------------------

**Support Linux & Mac OS (Recommend Linux OS) (Because uvloop & cython)**

Dependent tools
~~~~~~~~~~~~~~~

   Use the new feature Context Variables of python37 & uvloop(0.15.0+
   requires python37). Considering that most systems do not support
   python37, we choose to support python38 at least.

-  make >= 3.82
-  python >= 3.8
-  node >= 10.22.0 (Optional if you only develop with apiserver)
-  yarn >= 1.22.4 (Optional if you only develop with apiserver)

Install & Run
~~~~~~~~~~~~~

1. Installing dependency packages

   .. code:: bash

      tox -e venv

2. Set skyline.yaml config file

   .. code:: bash

      cp etc/skyline.yaml.sample etc/skyline.yaml
      export OS_CONFIG_DIR=$(pwd)/etc

   Maybe you should change the params with your real environment as
   followed:

   .. code:: yaml

      - database_url
      - keystone_url
      - default_region
      - interface_type
      - system_project_domain
      - system_project
      - system_user_domain
      - system_user_name
      - system_user_password

   ..

      If you set such as ``sqlite:////tmp/skyline.db`` for
      ``database_url`` , just do as followed. If you set such as
      ``mysql://root:root@localhost:3306/skyline`` for ``database_url``
      , you should refer to steps ``1`` and ``2`` of the chapter
      ``Deployment with MariaDB`` at first.

3. Init skyline database

   .. code:: bash

      source .tox/venv/bin/activate
      make db_sync
      deactivate

4. Run skyline-apiserver

   .. code:: console

      $ source .tox/venv/bin/activate
      $ uvicorn --reload --reload-dir skyline_apiserver --port 28000 --log-level debug skyline_apiserver.main:app

      INFO:     Uvicorn running on http://127.0.0.1:28000 (Press CTRL+C to quit)
      INFO:     Started reloader process [154033] using statreload
      INFO:     Started server process [154037]
      INFO:     Waiting for application startup.
      INFO:     Application startup complete.

   You can now access the online API documentation:
   ``http://127.0.0.1:28000/docs``.

   Or, you can launch debugger with ``.vscode/lauch.json`` with vscode.

5. Build Image

   .. code:: bash

      make build

Devstack Integration
--------------------

`Fast integration with Devstack to build an
environment. <./devstack/README.rst>`__

Kolla Ansible Deployment
------------------------

`Kolla Ansible to build an environment. <./kolla/README.md>`__

|image1|

.. |image1| image:: docs/images/nine-color-deer-64.png