Commit Graph

266 Commits

Author SHA1 Message Date
Gao Hanxiang
8e54a0cc82 docs: Add quick start docs
1. Add a quick start, the document explains how to use the container to
quickly deploy the skyline service.

2. Modify the format of the original `Development skyline-apiserver`
section.

Change-Id: I4ff1c179791b782311be4d8c391565bfcaf16bf9
2021-07-27 05:09:20 +00:00
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
Gao Hanxiang
8d8c8bd89f chore: Add make clean to clean up project directory
1. Add make clean
2. Specify configuration file used by mypy
3. Add some directories to dockerignore

Change-Id: I4f6b0d5ba894214bb0fcff21443f9808f56d595e
2021-07-26 14:35:55 +00:00
Gao Hanxiang
ee84ba0b8f feat: Add make build
1. Add dockerfile
2. Modify gunicorn config

Change-Id: I99d233908b3f21e5e0a4cd739ee7702839a8fb46
2021-07-26 03:51:01 +00:00
Gao Hanxiang
4fa4083d57 refactor: Streamline libs directory structure
1. Adjust makefile
2. Delete unused files

Change-Id: I73a7490e658763b57ef528359ebbde6d945740db
2021-07-26 03:50:00 +00:00
Gao Hanxiang
4935be6f47 refactor: Move skyline-apiserver to libs
1. Move skyline-apiserver to libs
2. Modify Makefile
3. Rename the skyline-apiserver.yaml.sample file to skyline.yaml.sample

At the top level, we use "skyline" as the namespace, using the idea of
monorepo to manage the project. At the top level, only some common
configuration files (mypy.ini, black.conf, isort.conf, etc.) and
common tools are included.

In the `libs` directory, there are three core libraries,
skyline-console, skyline-apiserver, skyline-nginx, and some dependent
libraries.
There are cross-imports between these libraries,
for example: skyline-nginx requires skyline-apiserver;
Both skyline-nginx and skyline-apiserver require skyline-config.

Therefore, skyline-apiserver should not be placed
at the top level, it is also suitable for management as a library.


Change-Id: Ie2f1f4bdfbc2e985ec4327705eecaae3181f5b50
2021-07-26 03:48:54 +00:00
Gao Hanxiang
5e4f40f364 feat: Add skyline-nginx package
1. Add skyline-nginx package for managing and generating nginx
   configuration.

Change-Id: I68afd9ab9ad52fc96c13e745cb1e89a8061a53ba
2021-07-26 03:46:20 +00:00
Gao Hanxiang
dfaf962aca feat: Add skyline-console to submodule
When building a docker image, skyline-console is required,
so add skyline-console as a git submodule.

Change-Id: I429879dbfb93f48aacbe09966388f25a5afab43d
2021-07-19 02:46:39 +00:00
zhu.boxiang
826234e9db feat: Add skyline-config under libs
1. remove base.py under config folder
2. add skyline-config library under libs

Change-Id: I71561bc3f6acbff3d90c9ad1922095e71497f226
2021-07-07 16:14:11 +08:00
Zuul
3b39497ac6 Merge "refactor: Use __version__ instead of VERSION in constants" 2021-07-07 08:10:15 +00:00
zhu.boxiang
a65e543bdf feat: Add make genconfig to generate sample config
1. add a cmd script to generate sample config
2. set setup as False for generate_swagger, so we can make swagger
without skyline-apiserver yaml config
3. add make genconfig into Makefile
4. add config-sample-generator scripts into pyproject.toml
5. replace async with sync for generate_swagger script
6. add items, keys, values function for Group and Configuration

Change-Id: I4c7196f1d766a6abdc24c71c4b3135cd40cc26ef
2021-07-02 10:54:51 +08:00
zhu.boxiang
8eb2825b9b refactor: Use __version__ instead of VERSION in constants
Remove the VERSION from constants. Just use __version__ as
version in profile.

Change-Id: I6128077182e223d708c17753524a1f42dc6fad27
2021-07-01 15:26:43 +08:00
zhu.boxiang
c1bb509391 fix: Add sample yaml config file
Under etc dictory, add sample yaml config file
named skyline-apiserver.yaml.sample
Updated the README.md and README-zh_CN.md file
to make quick start more clearly.

Closes-Bug: #1931673
Change-Id: I023cfbeac33543d2989f5017c878cd17160f8c76
2021-06-16 06:22:14 +00:00
Hanxiang Gao
38ea9e3d59 feat: Add initial code of skyline-apiserver
Add initial code of skyline-apiserver

Change-Id: Ib425960b707237193fd8531fb3989f29282f5b58
2021-06-01 23:39:57 +08:00
Thierry Carrez
f18ff79249 Add Zuul support for new repository
Before adding any code, add basic Zuul support for the repository
(noop-tests) so that it can pass Zuul checks and gating.

Change-Id: Ib728f83fedd08c989c38f02672f700fe133b39f5
2021-05-10 12:47:51 +02:00
OpenDev Project Creator
f941a04712 Added .gitreview 2021-05-08 17:14:30 +00:00