drucker-dashboard-0.4.5
توضیحات
A WebUI for managing machine learning services of Rekcurd.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | drucker-dashboard-0.4.5 |
| نام | drucker-dashboard |
| نسخه کتابخانه | 0.4.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Drucker team and contributors |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/rekcurd/drucker-dashboard |
| آدرس اینترنتی | https://pypi.org/project/drucker-dashboard/ |
| مجوز | Apache License Version 2.0 |
# Rekcurd-dashboard
[](https://travis-ci.com/rekcurd/drucker-dashboard)
[](https://badge.fury.io/py/rekcurd-dashboard)
[](https://codecov.io/gh/rekcurd/drucker-dashboard "Non-generated packages only")
[](https://pypi.python.org/pypi/rekcurd-dashboard)
Rekcurd dashboard is the project for managing ML model and deploying ML module. Any Rekcurd service is manageable. It can deploy the Rekcurd service to Kubernetes cluster.
## Parent Project
https://github.com/rekcurd/drucker-parent
## Components
- [Rekcurd](https://github.com/rekcurd/drucker): Project for serving ML module.
- [Rekcurd-dashboard](https://github.com/rekcurd/drucker-dashboard) (here): Project for managing ML model and deploying ML module.
- [Rekcurd-client](https://github.com/rekcurd/drucker-client): Project for integrating ML module.
## Environment
- Python 3.6
- flask 1.0.x
- [Node.js](https://nodejs.org/) 8.x
- [yarn](https://yarnpkg.com/)
## Installation
From source:
```bash
$ git clone --recursive https://github.com/rekcurd/drucker-dashboard.git
$ cd drucker-dashboard/frontend
$ yarn install && yarn run build && cd ..
$ pip install -e .
```
From PyPi directly:
```bash
$ pip install rekcurd-dashboard
```
## How to boot
### Preparation
You need to create [`settings.yml`](./drucker_dashboard/settings.yml).
### General users
Launched on `http://0.0.0.0:18080` as a default.
#### command line
```bash
$ rekcurdui --settings settings.yml db init
$ rekcurdui --settings settings.yml db migrate
$ rekcurdui --settings settings.yml server
```
#### docker-compose (Deprecated)
```bash
# For dev
$ docker-compose -f docker-compose/docker-compose.develop.yaml up
# For prod
$ docker-compose -f docker-compose/docker-compose.production.yaml up
```
### For AWS users
If you run this on AWS (such as EKS), you need to configure aws-cli setting.
Follow the [official document](https://docs.aws.amazon.com/streams/latest/dev/kinesis-tutorial-cli-installation.html).
**Rekcurd-dashboard docker container will mount the configuration files,
so the IAM account used by configuration needs to have enough permissions to access to Kubernetes resources on AWS.**
```bash
# For dev
$ docker-compose -f docker-compose/aws/docker-compose.develop.yaml up
# For prod
$ docker-compose -f docker-compose/aws/docker-compose.production.yaml up
```
## How to use
See [docs](./docs/README.md).
## Unittest
### Prerequisites
```bash
$ pip install -r requirements.txt
$ pip install -r test-requirements.txt
```
If you don't have VirtualBox, run it.
```bash
$ sudo yum install -y kernel-devel kernel-headers make patch gcc
$ sudo wget https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo -P /etc/yum.repos.d
$ sudo yum install -y VirtualBox-5.2
```
### Test
```bash
$ sudo sh drucker_dashboard/e2e_test/startup.sh
$ python -m unittest
$ sudo sh drucker_dashboard/e2e_test/cleanup.sh
```
## Kubernetes support
Rekcurd can be run on Kubernetes. See [here](https://github.com/rekcurd/drucker-parent).
نیازمندی
| مقدار | نام |
|---|---|
| >=1.0.2 | Flask |
| >=3.0.4 | Flask-Cors |
| >=1.13.0 | grpcio |
| >=1.13.0 | grpcio-tools |
| >=0.1.9 | python-json-logger |
| >=0.9.3 | fluent-logger |
| >=3.12 | PyYAML |
| >=1.2.7 | SQLAlchemy |
| >=0.8.0 | PyMySQL |
| >=2.3.2 | flask-sqlalchemy |
| >=v8.0.0 | kubernetes |
| >=0.11.0 | flask-restplus |
| >=0.7.1 | Flask-Testing |
| >=0.0.3 | Flask-JWT-Simple |
| >=3.1.0 | python-ldap |
| >=2.2.1 | Flask-Migrate |
| >=2.0.6 | Flask-Script |
| >=0.1.5 | protobuf3-to-dict |
نحوه نصب
نصب پکیج whl drucker-dashboard-0.4.5:
pip install drucker-dashboard-0.4.5.whl
نصب پکیج tar.gz drucker-dashboard-0.4.5:
pip install drucker-dashboard-0.4.5.tar.gz