Go to file
Gao Hanxiang a0701711be feat: Add bootstrap support for skyline image
When docker run, specify the KOLLA_BOOSTRAP environment variable, the
skyline image will initialize the database, and if it is not specified,
the skyline service will be run in the normal way.
This provides the basis for subsequent docking with kolla-ansible.

Change-Id: I5eaad038b3ed3c3189f2b41e41c14d28a346ee88
2021-07-26 11:01:31 -04:00
container feat: Add bootstrap support for skyline image 2021-07-26 11:01:31 -04:00
docs/api refactor: Streamline libs directory structure 2021-07-26 03:50:00 +00:00
etc feat: Add make build 2021-07-26 03:51:01 +00:00
libs refactor: Streamline libs directory structure 2021-07-26 03:50:00 +00:00
skyline refactor: Move skyline-apiserver to libs 2021-07-26 03:48:54 +00:00
tools/git_config feat: Add initial code of skyline-apiserver 2021-06-01 23:39:57 +08:00
.dockerignore feat: Add make build 2021-07-26 03:51:01 +00:00
.flake8 feat: Add initial code of skyline-apiserver 2021-06-01 23:39:57 +08:00
.gitignore feat: Add initial code of skyline-apiserver 2021-06-01 23:39:57 +08:00
.gitmodules feat: Add skyline-console to submodule 2021-07-19 02:46:39 +00:00
.gitreview Added .gitreview 2021-05-08 17:14:30 +00:00
.zuul.yaml Add Zuul support for new repository 2021-05-10 12:47:51 +02:00
alembic.ini feat: Add initial code of skyline-apiserver 2021-06-01 23:39:57 +08:00
LICENSE feat: Add initial code of skyline-apiserver 2021-06-01 23:39:57 +08:00
Makefile refactor: Streamline libs directory structure 2021-07-26 03:50:00 +00:00
mypy.ini feat: Add initial code of skyline-apiserver 2021-06-01 23:39:57 +08:00
poetry.lock refactor: Move skyline-apiserver to libs 2021-07-26 03:48:54 +00:00
poetry.toml feat: Add initial code of skyline-apiserver 2021-06-01 23:39:57 +08:00
pyproject.toml refactor: Move skyline-apiserver to libs 2021-07-26 03:48:54 +00:00
README-zh_CN.md refactor: Move skyline-apiserver to libs 2021-07-26 03:48:54 +00:00
README.md refactor: Move skyline-apiserver to libs 2021-07-26 03:48:54 +00:00

Skyline API

English | 简体中文

Quick Start

Dependent tools

Development mode

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

  • Installing dependency packages

    make install
    
  • Set skyline.yaml config file

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

    - database_url  (you can set sqlite:////tmp/skyline.db to use sqlite)
    - default_region
    - keystone_url
    - system_project
    - system_project_domain
    - system_user_domain
    - system_user_name
    - system_user_password
    
    cp etc/skyline.yaml.sample etc/skyline.yaml
    export OS_CONFIG_DIR=$(pwd)/etc
    
  • Init skyline database

    make db_sync
    
  • Run server

    $ poetry run uvicorn --reload --reload-dir libs/skyline-apiserver/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