第三次提交并推送代码
This commit is contained in:
parent
6a8c6da49f
commit
586d10ff3f
3394
.gitignore
vendored
3394
.gitignore
vendored
File diff suppressed because it is too large
Load Diff
27
Dockerfile
Normal file
27
Dockerfile
Normal file
@ -0,0 +1,27 @@
|
||||
FROM registry.cn-qingdao.aliyuncs.com/dataease/alpine-openjdk21-jre
|
||||
STOPSIGNAL SIGTERM
|
||||
RUN mkdir -p /opt/apps/config \
|
||||
/opt/dataease2.0/drivers/ \
|
||||
/opt/dataease2.0/cache/ \
|
||||
/opt/dataease2.0/data/map \
|
||||
/opt/dataease2.0/data/static-resource/ \
|
||||
/opt/dataease2.0/data/appearance/ \
|
||||
/opt/dataease2.0/data/exportData/ \
|
||||
/opt/dataease2.0/data/i8n/ \
|
||||
/opt/dataease2.0/data/plugin/
|
||||
|
||||
ADD drivers/* /opt/dataease2.0/drivers/
|
||||
ADD mapFiles/ /opt/dataease2.0/data/map/
|
||||
ADD staticResource/ /opt/dataease2.0/data/static-resource/
|
||||
|
||||
WORKDIR /opt/apps
|
||||
|
||||
ADD core/core-backend/target/CoreApplication.jar /opt/apps/app.jar
|
||||
|
||||
ENV JAVA_APP_JAR=/opt/apps/app.jar
|
||||
ENV RUNNING_PORT=8100
|
||||
ENV JAVA_OPTIONS="-Dfile.encoding=utf-8 -Dloader.path=/opt/apps -Dspring.config.additional-location=/opt/apps/config/"
|
||||
|
||||
HEALTHCHECK --interval=15s --timeout=5s --retries=20 --start-period=30s CMD nc -zv 127.0.0.1 $RUNNING_PORT
|
||||
|
||||
CMD ["/deployments/run-java.sh"]
|
78
docs/README.ar.md
Normal file
78
docs/README.ar.md
Normal file
@ -0,0 +1,78 @@
|
||||
<p align="center"><a href="https://dataease.io"><img src="https://dataease.oss-cn-hangzhou.aliyuncs.com/img/dataease-logo.png" alt="DataEase" width="300" /></a></p>
|
||||
<h3 align="center"> أداة استخبارات الأعمال مفتوحة المصدر بسيطة وسهلة الاستخدام. </h3>
|
||||
<p align="center">
|
||||
<a href="https://www.gnu.org/licenses/gpl-3.0.html"><img src="https://img.shields.io/github/license/dataease/dataease?color=%231890FF" alt="License: GPL v3"></a>
|
||||
<a href="https://app.codacy.com/gh/dataease/dataease?utm_source=github.com&utm_medium=referral&utm_content=dataease/dataease&utm_campaign=Badge_Grade_Dashboard"><img src="https://app.codacy.com/project/badge/Grade/da67574fd82b473992781d1386b937ef" alt="Codacy"></a>
|
||||
<a href="https://github.com/dataease/dataease"><img src="https://img.shields.io/github/stars/dataease/dataease?color=%231890FF&style=flat-square" alt="GitHub Stars"></a>
|
||||
<a href="https://github.com/dataease/dataease/releases"><img src="https://img.shields.io/github/v/release/dataease/dataease" alt="GitHub release"></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<a href="/README.md"><img alt="中文(简体)" src="https://img.shields.io/badge/中文(简体)-d9d9d9"></a>
|
||||
<a href="/docs/README.en.md"><img alt="English" src="https://img.shields.io/badge/English-d9d9d9"></a>
|
||||
<a href="/docs/README.zh-Hant.md"><img alt="中文(繁體)" src="https://img.shields.io/badge/中文(繁體)-d9d9d9"></a>
|
||||
<a href="/docs/README.ja.md"><img alt="日本語" src="https://img.shields.io/badge/日本語-d9d9d9"></a>
|
||||
<a href="/docs/README.pt-br.md"><img alt="Português (Brasil)" src="https://img.shields.io/badge/Português (Brasil)-d9d9d9"></a>
|
||||
<a href="/docs/README.ar.md"><img alt="العربية" src="https://img.shields.io/badge/العربية-d9d9d9"></a>
|
||||
<a href="/docs/README.de.md"><img alt="Deutsch" src="https://img.shields.io/badge/Deutsch-d9d9d9"></a>
|
||||
<a href="/docs/README.es.md"><img alt="Español" src="https://img.shields.io/badge/Español-d9d9d9"></a>
|
||||
<a href="/docs/README.fr.md"><img alt="français" src="https://img.shields.io/badge/français-d9d9d9"></a>
|
||||
<a href="/docs/README.ko.md"><img alt="한국어" src="https://img.shields.io/badge/한국어-d9d9d9"></a>
|
||||
<a href="/docs/README.id.md"><img alt="Bahasa Indonesia" src="https://img.shields.io/badge/Bahasa Indonesia-d9d9d9"></a>
|
||||
<a href="/docs/README.tr.md"><img alt="Türkçe" src="https://img.shields.io/badge/Türkçe-d9d9d9"></a>
|
||||
</p>
|
||||
|
||||
------------------------------
|
||||
|
||||
## ما هو DataEase؟
|
||||
|
||||
<div dir="rtl">
|
||||
DataEase هو أداة تحليل بيانات مفتوحة المصدر مصممة لمساعدة المستخدمين على تحليل البيانات بسرعة واحتساب رؤى عملية، مما يتيح لهم تحسين وتحسين عملياتهم. كما تدعم العديد من مصادر البيانات، مما يسمح للمستخدمين بإنشاء مخططات من خلال واجهة سحب ووضع بسيطة وشاركها بسهولة.
|
||||
|
||||
**مزايا DataEase:**
|
||||
|
||||
- مفتوح المصدر: بلا حواجز، استلام وتثبيت سريع عبر الإنترنت، تحديثات شهريّة.
|
||||
- مريح للاستخدام: من السهل الاستخدام؛ يمكن إكمال التحليل ببضعة نقرات وميقاتات بسيطة بالماوس.
|
||||
- متعدد الاستخدامات: يدعم تثبيت متعدد الأنصتات وخيارات تضمين متنوعة.
|
||||
- مشاركة آمنة: توفر طرقًا مختلفة لمشاركة البيانات مع التأكد من أمن البيانات.
|
||||
|
||||
**مصادر البيانات المدعومة:**
|
||||
|
||||
- قواعد OLTP: MySQL، Oracle، SQL Server، PostgreSQL، MariaDB، Db2، TiDB، MongoDB-BI، وما إلى ذلك.
|
||||
- قواعد OLAP: ClickHouse، Apache Doris، Apache Impala، StarRocks، وما إلى ذلك.
|
||||
- مخازن البيانات/بحيرات البيانات: Amazon RedShift، وما إلى ذلك.
|
||||
- ملفات البيانات: Excel، CSV، وما إلى ذلك.
|
||||
- مصادر البيانات عبر واجهة برمجة التطبيقات (API).
|
||||
|
||||
## التشغيل السريع
|
||||
|
||||
```
|
||||
# أعد تجهيز خادم Linux بحد أدنى معالجين مركزيين وذاكرة 4 غيغابايت، ثم قم بتشغيل سكربت تثبيت بضغطة واحدة التالي كوظيفة مستخدم جذر.
|
||||
curl -sSL https://dataease.oss-cn-hangzhou.aliyuncs.com/quick_start_v2.sh | bash
|
||||
# اسم المستخدم: admin
|
||||
# كلمة المرور: DataEase@123456
|
||||
```
|
||||
|
||||
## مكدس التقنية
|
||||
|
||||
- الواجهة الأمامية: [Vue.js](https://vuejs.org/), [Element](https://element.eleme.cn/)
|
||||
- مكتبة تصور البيانات.: [AntV](https://antv.vision/zh)
|
||||
- الخلفية: [Spring Boot](https://spring.io/projects/spring-boot)
|
||||
- قاعدة البيانات: [MySQL](https://www.mysql.com/)
|
||||
- معالجة البيانات: [Apache Calcite](https://github.com/apache/calcite/), [Apache SeaTunnel](https://github.com/apache/seatunnel)
|
||||
- بنية تحتية: [Docker](https://www.docker.com/)
|
||||
|
||||
## الحماية
|
||||
|
||||
إذا اكتشفت أي مشاكل أمنية، فالرجاء الاتصال بنا عبر: wei@fit2cloud.com.
|
||||
|
||||
## رخصة
|
||||
|
||||
حقوق النشر (م) 2014-2024 [FIT2CLOUD](https://fit2cloud.com/)، جميع الحقوق محفوظة.
|
||||
|
||||
رخصة بموجب الرخصة العامة العامة GNU النسخة 3 (GPLv3) (ما يسمى "الرخصة"); ربما لا تستطيع استخدام هذا الملف إلا في توافق مع الرخصة. يمكنك الحصول على نسخة من الرخصة من خلال الرابط التالي:
|
||||
|
||||
<https://www.gnu.org/licenses/gpl-3.0.html>
|
||||
|
||||
ما لم يكن ذلك مطلوبًا بموجب القانون المعمول به أو وافق عليه كتابيًا، فإن البرنامج الموزع بموجب الرخصة يتم توزيعه على أساس "كما هو"، بلا أي نوع من الضمانات أو الشروط، سواء كانت صريحة أو ضمنية. راجع الرخصة للحصول على اللغة المحددة التي تحكم الصلاحيات والقيود بموجب الرخصة.
|
||||
|
||||
</div>
|
76
docs/README.de.md
Normal file
76
docs/README.de.md
Normal file
@ -0,0 +1,76 @@
|
||||
<p align="center"><a href="https://dataease.io"><img src="https://dataease.oss-cn-hangzhou.aliyuncs.com/img/dataease-logo.png" alt="DataEase" width="300" /></a></p>
|
||||
<h3 align="center">Ein einfaches und benutzerfreundliches Open-Source-BI-Tool</h3>
|
||||
<p align="center">
|
||||
<a href="https://www.gnu.org/licenses/gpl-3.0.html"><img src="https://img.shields.io/github/license/dataease/dataease?color=%231890FF" alt="License: GPL v3"></a>
|
||||
<a href="https://app.codacy.com/gh/dataease/dataease?utm_source=github.com&utm_medium=referral&utm_content=dataease/dataease&utm_campaign=Badge_Grade_Dashboard"><img src="https://app.codacy.com/project/badge/Grade/da67574fd82b473992781d1386b937ef" alt="Codacy"></a>
|
||||
<a href="https://github.com/dataease/dataease"><img src="https://img.shields.io/github/stars/dataease/dataease?color=%231890FF&style=flat-square" alt="GitHub Stars"></a>
|
||||
<a href="https://github.com/dataease/dataease/releases"><img src="https://img.shields.io/github/v/release/dataease/dataease" alt="GitHub release"></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<a href="/README.md"><img alt="中文(简体)" src="https://img.shields.io/badge/中文(简体)-d9d9d9"></a>
|
||||
<a href="/docs/README.en.md"><img alt="English" src="https://img.shields.io/badge/English-d9d9d9"></a>
|
||||
<a href="/docs/README.zh-Hant.md"><img alt="中文(繁體)" src="https://img.shields.io/badge/中文(繁體)-d9d9d9"></a>
|
||||
<a href="/docs/README.ja.md"><img alt="日本語" src="https://img.shields.io/badge/日本語-d9d9d9"></a>
|
||||
<a href="/docs/README.pt-br.md"><img alt="Português (Brasil)" src="https://img.shields.io/badge/Português (Brasil)-d9d9d9"></a>
|
||||
<a href="/docs/README.ar.md"><img alt="العربية" src="https://img.shields.io/badge/العربية-d9d9d9"></a>
|
||||
<a href="/docs/README.de.md"><img alt="Deutsch" src="https://img.shields.io/badge/Deutsch-d9d9d9"></a>
|
||||
<a href="/docs/README.es.md"><img alt="Español" src="https://img.shields.io/badge/Español-d9d9d9"></a>
|
||||
<a href="/docs/README.fr.md"><img alt="français" src="https://img.shields.io/badge/français-d9d9d9"></a>
|
||||
<a href="/docs/README.ko.md"><img alt="한국어" src="https://img.shields.io/badge/한국어-d9d9d9"></a>
|
||||
<a href="/docs/README.id.md"><img alt="Bahasa Indonesia" src="https://img.shields.io/badge/Bahasa Indonesia-d9d9d9"></a>
|
||||
<a href="/docs/README.tr.md"><img alt="Türkçe" src="https://img.shields.io/badge/Türkçe-d9d9d9"></a>
|
||||
</p>
|
||||
|
||||
------------------------------
|
||||
## Was ist DataEase?
|
||||
|
||||
DataEase ist ein Open-Source-BI-Werkzeug (Business Intelligence-Werkzeug), das dazu ausgelegt ist, Benutzern zu helfen, Daten schnell zu analysieren und Geschäftsinformationen zu gewinnen, sodass sie ihre Geschäftsvorgänge verbessern und optimieren können. Es unterstützt eine Vielzahl von Datenquellen und ermöglicht es Benutzern, mit einer einfachen Drag-and-Drop-Schnittstelle Diagramme zu erstellen und diese mühelos zu teilen.
|
||||
|
||||
**Vorteile von DataEase:**
|
||||
|
||||
- Open Source: Keine Hindernisse, schnelle Online-Erwerb und -Installation, monatliche Updates.
|
||||
- Benutzerfreundlich: Einfach zu bedienen; die Analyse kann mit einfachen Mausklicks und Drag-and-Drop-Aktionen durchgeführt werden.
|
||||
- Vielseitig: Unterstützt die Installation auf mehreren Plattformen und vielfältige Einbettungsoptionen.
|
||||
- Sicherer Datenaustausch: Bietet verschiedene Methoden zum Datenaustausch und gewährleistet dabei die Datensicherheit.
|
||||
|
||||
**Unterstützte Datenquellen:**
|
||||
|
||||
- OLTP-Datenbanken: MySQL, Oracle, SQL Server, PostgreSQL, MariaDB, Db2, TiDB, MongoDB-BI usw.
|
||||
- OLAP-Datenbanken: ClickHouse, Apache Doris, Apache Impala, StarRocks usw.
|
||||
- Datenlager / Data Warehouses / Datenseen: Amazon RedShift usw.
|
||||
- Datendateien: Excel, CSV usw.
|
||||
- API-Datenquellen.
|
||||
|
||||
## Schnellstart
|
||||
|
||||
```
|
||||
# Bereiten Sie einen Linux-Server mit mindestens 2 CPUs und 4 GB RAM vor und führen Sie dann das folgende Skript für die Ein-Klick-Installation als Root-Benutzer aus:
|
||||
|
||||
curl -sSL https://dataease.oss-cn-hangzhou.aliyuncs.com/quick_start_v2.sh | bash
|
||||
|
||||
# Benutzername: admin
|
||||
# Passwort: DataEase@123456
|
||||
```
|
||||
|
||||
## Technologiestack
|
||||
|
||||
- Frontend: [Vue.js](https://vuejs.org/), [Element](https://element.eleme.cn/)
|
||||
- Visualisierungsbibliothek: [AntV](https://antv.vision/zh)
|
||||
- Backend: [Spring Boot](https://spring.io/projects/spring-boot)
|
||||
- Datenbank: [MySQL](https://www.mysql.com/)
|
||||
- Datenverarbeitung: [Apache Calcite](https://github.com/apache/calcite/), [Apache SeaTunnel](https://github.com/apache/seatunnel)
|
||||
- Infrastruktur: [Docker](https://www.docker.com/)
|
||||
|
||||
## Sicherheit
|
||||
|
||||
Wenn Sie irgendwelche Sicherheitsbedenken entdecken, kontaktieren Sie uns bitte über: wei@fit2cloud.com.
|
||||
|
||||
## Lizenz
|
||||
|
||||
Copyright (c) 2014-2024 [FIT2CLOUD](https://fit2cloud.com/), Alle Rechte vorbehalten.
|
||||
|
||||
Unterliegt der GNU General Public License Version 3 (GPLv3) (die „Lizenz“); Sie dürfen diese Datei nicht verwenden, es sei denn, Sie stimmen der Lizenz zu. Sie können eine Kopie der Lizenz unter folgender Adresse einsehen:
|
||||
|
||||
https://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
Sofern nicht durch anwendbares Recht vorgeschrieben oder schriftlich vereinbart, wird Software, die unter dieser Lizenz verteilt wird, auf der Grundlage „AS IS“ verteilt, ohne jegliche Zusicherungen oder Bedingungen, weder ausdrücklich noch stillschweigend. Lesen Sie die Lizenz für die spezifischen Bestimmungen zur Gewährung von Berechtigungen und Einschränkungen unter dieser Lizenz.
|
77
docs/README.en.md
Normal file
77
docs/README.en.md
Normal file
@ -0,0 +1,77 @@
|
||||
<p align="center"><a href="https://dataease.io"><img src="https://dataease.oss-cn-hangzhou.aliyuncs.com/img/dataease-logo.png" alt="DataEase" width="300" /></a></p>
|
||||
<h3 align="center">A simple and easy-to-use open-source BI (Business Intelligence) tool</h3>
|
||||
<p align="center">
|
||||
<a href="https://www.gnu.org/licenses/gpl-3.0.html"><img src="https://img.shields.io/github/license/dataease/dataease?color=%231890FF" alt="License: GPL v3"></a>
|
||||
<a href="https://app.codacy.com/gh/dataease/dataease?utm_source=github.com&utm_medium=referral&utm_content=dataease/dataease&utm_campaign=Badge_Grade_Dashboard"><img src="https://app.codacy.com/project/badge/Grade/da67574fd82b473992781d1386b937ef" alt="Codacy"></a>
|
||||
<a href="https://github.com/dataease/dataease"><img src="https://img.shields.io/github/stars/dataease/dataease?color=%231890FF&style=flat-square" alt="GitHub Stars"></a>
|
||||
<a href="https://github.com/dataease/dataease/releases"><img src="https://img.shields.io/github/v/release/dataease/dataease" alt="GitHub release"></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<a href="/README.md"><img alt="中文(简体)" src="https://img.shields.io/badge/中文(简体)-d9d9d9"></a>
|
||||
<a href="/docs/README.en.md"><img alt="English" src="https://img.shields.io/badge/English-d9d9d9"></a>
|
||||
<a href="/docs/README.zh-Hant.md"><img alt="中文(繁體)" src="https://img.shields.io/badge/中文(繁體)-d9d9d9"></a>
|
||||
<a href="/docs/README.ja.md"><img alt="日本語" src="https://img.shields.io/badge/日本語-d9d9d9"></a>
|
||||
<a href="/docs/README.pt-br.md"><img alt="Português (Brasil)" src="https://img.shields.io/badge/Português (Brasil)-d9d9d9"></a>
|
||||
<a href="/docs/README.ar.md"><img alt="العربية" src="https://img.shields.io/badge/العربية-d9d9d9"></a>
|
||||
<a href="/docs/README.de.md"><img alt="Deutsch" src="https://img.shields.io/badge/Deutsch-d9d9d9"></a>
|
||||
<a href="/docs/README.es.md"><img alt="Español" src="https://img.shields.io/badge/Español-d9d9d9"></a>
|
||||
<a href="/docs/README.fr.md"><img alt="français" src="https://img.shields.io/badge/français-d9d9d9"></a>
|
||||
<a href="/docs/README.ko.md"><img alt="한국어" src="https://img.shields.io/badge/한국어-d9d9d9"></a>
|
||||
<a href="/docs/README.id.md"><img alt="Bahasa Indonesia" src="https://img.shields.io/badge/Bahasa Indonesia-d9d9d9"></a>
|
||||
<a href="/docs/README.tr.md"><img alt="Türkçe" src="https://img.shields.io/badge/Türkçe-d9d9d9"></a>
|
||||
</p>
|
||||
|
||||
------------------------------
|
||||
|
||||
## What is DataEase?
|
||||
|
||||
DataEase is an open-source BI tool designed to help users quickly analyze data and gain business insights, enabling them to improve and optimize their operations. It supports a wide range of data sources, allowing users to create charts with a simple drag-and-drop interface and share them effortlessly.
|
||||
|
||||
**Advantages of DataEase:**
|
||||
|
||||
- Open Source: Zero barriers, fast online acquisition and installation, monthly updates.
|
||||
- User-Friendly: Easy to use; analysis can be completed with simple mouse clicks and drag-and-drop actions.
|
||||
- Versatile: Supports multi-platform installation and diversified embedding options.
|
||||
- Secure Sharing: Offers various data-sharing methods while ensuring data security.
|
||||
|
||||
**Supported Data Sources:**
|
||||
|
||||
- OLTP Databases: MySQL, Oracle, SQL Server, PostgreSQL, MariaDB, Db2, TiDB, MongoDB-BI, etc.
|
||||
- OLAP Databases: ClickHouse, Apache Doris, Apache Impala, StarRocks, etc.
|
||||
- Data Warehouses/Data Lakes: Amazon RedShift, etc.
|
||||
- Data Files: Excel, CSV, etc.
|
||||
- API Data Sources.
|
||||
|
||||
## Quick Start
|
||||
|
||||
```
|
||||
# Prepare a Linux server with at least 2 CPUs and 4GB of RAM, then run the following one-click installation script as the root user:
|
||||
|
||||
curl -sSL https://dataease.oss-cn-hangzhou.aliyuncs.com/quick_start_v2.sh | bash
|
||||
|
||||
# Username: admin
|
||||
# Password: DataEase@123456
|
||||
```
|
||||
|
||||
## Technology Stack
|
||||
|
||||
- Frontend: [Vue.js](https://vuejs.org/), [Element](https://element.eleme.cn/)
|
||||
- Visualization Library: [AntV](https://antv.vision/zh)
|
||||
- Backend: [Spring Boot](https://spring.io/projects/spring-boot)
|
||||
- Database: [MySQL](https://www.mysql.com/)
|
||||
- Data Processing: [Apache Calcite](https://github.com/apache/calcite/), [Apache SeaTunnel](https://github.com/apache/seatunnel)
|
||||
- Infrastructure: [Docker](https://www.docker.com/)
|
||||
|
||||
## Security
|
||||
|
||||
If you discover any security issues, please contact us through: wei@fit2cloud.com.
|
||||
|
||||
## License
|
||||
|
||||
Copyright (c) 2014-2024 [FIT2CLOUD](https://fit2cloud.com/), All rights reserved.
|
||||
|
||||
Licensed under The GNU General Public License version 3 (GPLv3) (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
|
||||
|
||||
<https://www.gnu.org/licenses/gpl-3.0.html>
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
74
docs/README.es.md
Normal file
74
docs/README.es.md
Normal file
@ -0,0 +1,74 @@
|
||||
<p align="center"><a href="https://dataease.io"><img src="https://dataease.oss-cn-hangzhou.aliyuncs.com/img/dataease-logo.png" alt="DataEase" width="300" /></a></p>
|
||||
<h3 align="center">Una herramienta BI de código abierto simple y fácil de usar</h3>
|
||||
<p align="center">
|
||||
<a href="https://www.gnu.org/licenses/gpl-3.0.html"><img src="https://img.shields.io/github/license/dataease/dataease?color=%231890FF" alt="License: GPL v3"></a>
|
||||
<a href="https://app.codacy.com/gh/dataease/dataease?utm_source=github.com&utm_medium=referral&utm_content=dataease/dataease&utm_campaign=Badge_Grade_Dashboard"><img src="https://app.codacy.com/project/badge/Grade/da67574fd82b473992781d1386b937ef" alt="Codacy"></a>
|
||||
<a href="https://github.com/dataease/dataease"><img src="https://img.shields.io/github/stars/dataease/dataease?color=%231890FF&style=flat-square" alt="GitHub Stars"></a>
|
||||
<a href="https://github.com/dataease/dataease/releases"><img src="https://img.shields.io/github/v/release/dataease/dataease" alt="GitHub release"></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<a href="/README.md"><img alt="中文(简体)" src="https://img.shields.io/badge/中文(简体)-d9d9d9"></a>
|
||||
<a href="/docs/README.en.md"><img alt="English" src="https://img.shields.io/badge/English-d9d9d9"></a>
|
||||
<a href="/docs/README.zh-Hant.md"><img alt="中文(繁體)" src="https://img.shields.io/badge/中文(繁體)-d9d9d9"></a>
|
||||
<a href="/docs/README.ja.md"><img alt="日本語" src="https://img.shields.io/badge/日本語-d9d9d9"></a>
|
||||
<a href="/docs/README.pt-br.md"><img alt="Português (Brasil)" src="https://img.shields.io/badge/Português (Brasil)-d9d9d9"></a>
|
||||
<a href="/docs/README.ar.md"><img alt="العربية" src="https://img.shields.io/badge/العربية-d9d9d9"></a>
|
||||
<a href="/docs/README.de.md"><img alt="Deutsch" src="https://img.shields.io/badge/Deutsch-d9d9d9"></a>
|
||||
<a href="/docs/README.es.md"><img alt="Español" src="https://img.shields.io/badge/Español-d9d9d9"></a>
|
||||
<a href="/docs/README.fr.md"><img alt="français" src="https://img.shields.io/badge/français-d9d9d9"></a>
|
||||
<a href="/docs/README.ko.md"><img alt="한국어" src="https://img.shields.io/badge/한국어-d9d9d9"></a>
|
||||
<a href="/docs/README.id.md"><img alt="Bahasa Indonesia" src="https://img.shields.io/badge/Bahasa Indonesia-d9d9d9"></a>
|
||||
<a href="/docs/README.tr.md"><img alt="Türkçe" src="https://img.shields.io/badge/Türkçe-d9d9d9"></a>
|
||||
</p>
|
||||
|
||||
------------------------------
|
||||
## ¿Qué es DataEase?
|
||||
|
||||
DataEase es una herramienta de BI de código abierto diseñada para ayudar a los usuarios a analizar datos rápidamente y obtener información empresarial, lo que les permite mejorar y optimizar sus operaciones. Soporta una amplia gama de fuentes de datos, permitiendo a los usuarios crear gráficos con una interfaz simple de arrastrar y soltar y compartirlos sin esfuerzo.
|
||||
|
||||
**Ventajas de DataEase:**
|
||||
|
||||
- Código Abierto: Sin barreras, adquisición e instalación rápida en línea, actualizaciones mensuales.
|
||||
- Fácil de Usar: Sencillo de utilizar; el análisis se puede completar con simples clics del ratón y acciones de arrastrar y soltar.
|
||||
- Versátil: Soporta instalación multiplataforma y opciones de integración diversificadas.
|
||||
- Compartición Segura: Ofrece varios métodos de compartición de datos mientras garantiza la seguridad de los datos.
|
||||
|
||||
** Fuentes de Datos Soportadas:**
|
||||
|
||||
- Bases de Datos OLTP: MySQL, Oracle, SQL Server, PostgreSQL, MariaDB, Db2, TiDB, MongoDB-BI, etc.
|
||||
- Bases de Datos OLAP: ClickHouse, Apache Doris, Apache Impala, StarRocks, etc.
|
||||
- Almacenes de Datos/Lagos de Datos: Amazon RedShift, etc.
|
||||
- Archivos de Datos: Excel, CSV, etc.
|
||||
- Fuentes de Datos API.
|
||||
|
||||
## Inicio Rápido
|
||||
|
||||
```
|
||||
# Prepara un servidor Linux con al menos 2 CPUs y 4GB de RAM, luego ejecuta el siguiente script de instalación con un solo clic como usuario root:
|
||||
curl -sSL https://dataease.oss-cn-hangzhou.aliyuncs.com/quick_start_v2.sh | bash
|
||||
# Nombre de usuario: admin
|
||||
# Contraseña: DataEase@123456
|
||||
```
|
||||
|
||||
## Pila Tecnológica
|
||||
|
||||
- Frontend: [Vue.js](https://vuejs.org/), [Element](https://element.eleme.cn/)
|
||||
- Biblioteca de Visualización: [AntV](https://antv.vision/zh)
|
||||
- Backend: [Spring Boot](https://spring.io/projects/spring-boot)
|
||||
- Base de Datos: [MySQL](https://www.mysql.com/)
|
||||
- Procesamiento de Datos: [Apache Calcite](https://github.com/apache/calcite/), [Apache SeaTunnel](https://github.com/apache/seatunnel)
|
||||
- Infraestructura: [Docker](https://www.docker.com/)
|
||||
|
||||
## Seguridad
|
||||
|
||||
Si descubres algún problema de seguridad, por favor contáctanos a través de: wei@fit2cloud.com.
|
||||
|
||||
## Licencia
|
||||
|
||||
Copyright (c) 2014-2024 [FIT2CLOUD](https://fit2cloud.com/), Todos los derechos reservados.
|
||||
|
||||
Licenciado bajo la Licencia Pública General GNU versión 3 (GPLv3) (la "Licencia"); no puedes usar este archivo excepto en cumplimiento con la Licencia. Puedes obtener una copia de la Licencia en
|
||||
|
||||
<https://www.gnu.org/licenses/gpl-3.0.html>
|
||||
|
||||
A menos que lo exija la ley aplicable o se acuerde por escrito, el software distribuido bajo la Licencia se distribuye en una base "TAL CUAL", SIN GARANTÍAS O CONDICIONES DE NINGÚN TIPO, ya sean expresas o implícitas. Consulta la Licencia para el lenguaje específico que rige los permisos y limitaciones bajo la Licencia.
|
77
docs/README.fr.md
Normal file
77
docs/README.fr.md
Normal file
@ -0,0 +1,77 @@
|
||||
<p align="center"><a href="https://dataease.io"><img src="https://dataease.oss-cn-hangzhou.aliyuncs.com/img/dataease-logo.png" alt="DataEase" width="300" /></a></p>
|
||||
<h3 align="center">Un outil BI open source simple et facile à utiliser</h3>
|
||||
<p align="center">
|
||||
<a href="https://www.gnu.org/licenses/gpl-3.0.html"><img src="https://img.shields.io/github/license/dataease/dataease?color=%231890FF" alt="License: GPL v3"></a>
|
||||
<a href="https://app.codacy.com/gh/dataease/dataease?utm_source=github.com&utm_medium=referral&utm_content=dataease/dataease&utm_campaign=Badge_Grade_Dashboard"><img src="https://app.codacy.com/project/badge/Grade/da67574fd82b473992781d1386b937ef" alt="Codacy"></a>
|
||||
<a href="https://github.com/dataease/dataease"><img src="https://img.shields.io/github/stars/dataease/dataease?color=%231890FF&style=flat-square" alt="GitHub Stars"></a>
|
||||
<a href="https://github.com/dataease/dataease/releases"><img src="https://img.shields.io/github/v/release/dataease/dataease" alt="GitHub release"></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<a href="/README.md"><img alt="中文(简体)" src="https://img.shields.io/badge/中文(简体)-d9d9d9"></a>
|
||||
<a href="/docs/README.en.md"><img alt="English" src="https://img.shields.io/badge/English-d9d9d9"></a>
|
||||
<a href="/docs/README.zh-Hant.md"><img alt="中文(繁體)" src="https://img.shields.io/badge/中文(繁體)-d9d9d9"></a>
|
||||
<a href="/docs/README.ja.md"><img alt="日本語" src="https://img.shields.io/badge/日本語-d9d9d9"></a>
|
||||
<a href="/docs/README.pt-br.md"><img alt="Português (Brasil)" src="https://img.shields.io/badge/Português (Brasil)-d9d9d9"></a>
|
||||
<a href="/docs/README.ar.md"><img alt="العربية" src="https://img.shields.io/badge/العربية-d9d9d9"></a>
|
||||
<a href="/docs/README.de.md"><img alt="Deutsch" src="https://img.shields.io/badge/Deutsch-d9d9d9"></a>
|
||||
<a href="/docs/README.es.md"><img alt="Español" src="https://img.shields.io/badge/Español-d9d9d9"></a>
|
||||
<a href="/docs/README.fr.md"><img alt="français" src="https://img.shields.io/badge/français-d9d9d9"></a>
|
||||
<a href="/docs/README.ko.md"><img alt="한국어" src="https://img.shields.io/badge/한국어-d9d9d9"></a>
|
||||
<a href="/docs/README.id.md"><img alt="Bahasa Indonesia" src="https://img.shields.io/badge/Bahasa Indonesia-d9d9d9"></a>
|
||||
<a href="/docs/README.tr.md"><img alt="Türkçe" src="https://img.shields.io/badge/Türkçe-d9d9d9"></a>
|
||||
</p>
|
||||
|
||||
------------------------------
|
||||
|
||||
## Qu'est-ce que DataEase?
|
||||
|
||||
DataEase est un outil BI open-source conçu pour aider les utilisateurs à analyser rapidement les données et à obtenir des informations commerciales, leur permettant d'améliorer et d'optimiser leurs opérations. Il prend en charge une large gamme de sources de données, permettant aux utilisateurs de créer des graphiques avec une interface simple de glisser-déposer et de les partager sans effort.
|
||||
|
||||
**Les avantages de DataEase:**
|
||||
|
||||
- Open Source : Aucune barrière, acquisition et installation en ligne rapides, mises à jour mensuelles.
|
||||
- Facile à utiliser : Simple d'utilisation ; l'analyse peut être effectuée en cliquant simplement avec la souris et en effectuant des actions de glisser-déposer.
|
||||
- Polyvalent : Prend en charge l'installation sur plusieurs plates-formes et propose diverses options d'intégration.
|
||||
- Partage sécurisé : Offre divers moyens de partage de données tout en garantissant la sécurité des données.
|
||||
|
||||
**Sources de données prises en charge:**
|
||||
|
||||
- Bases de données OLTP : MySQL, Oracle, SQL Server, PostgreSQL, MariaDB, Db2, TiDB, MongoDB-BI, etc.
|
||||
- Bases de données OLAP : ClickHouse, Apache Doris, Apache Impala, StarRocks, etc.
|
||||
- Entrepôts de données/Lacs de données : Amazon RedShift, etc.
|
||||
- Fichiers de données : Excel, CSV, etc.
|
||||
- Sources de données API.
|
||||
|
||||
## Démarrage rapide
|
||||
|
||||
```
|
||||
# Préparer un serveur Linux avec au moins 2 processeurs et 4 Go de mémoire vive, puis exécuter le script d'installation automatique (un clic) suivant en tant qu'utilisateur root:
|
||||
|
||||
curl -sSL https://dataease.oss-cn-hangzhou.aliyuncs.com/quick_start_v2.sh | bash
|
||||
|
||||
# Username: admin
|
||||
# Password: DataEase@123456
|
||||
```
|
||||
|
||||
## Pile technologique
|
||||
|
||||
- Interface utilisateur: [Vue.js](https://vuejs.org/), [Element](https://element.eleme.cn/)
|
||||
- Bibliothèque de visualisation: [AntV](https://antv.vision/zh)
|
||||
- Côté serveur: [Spring Boot](https://spring.io/projects/spring-boot)
|
||||
- Base de données: [MySQL](https://www.mysql.com/)
|
||||
- Traitement des données: [Apache Calcite](https://github.com/apache/calcite/), [Apache SeaTunnel](https://github.com/apache/seatunnel)
|
||||
- Infrastructure: [Docker](https://www.docker.com/)
|
||||
|
||||
## Sécurité
|
||||
|
||||
Si vous découvrez des problèmes de sécurité, veuillez nous contacter via: wei@fit2cloud.com.
|
||||
|
||||
## Licence
|
||||
|
||||
Copyright (c) 2014-2024 [FIT2CLOUD](https://fit2cloud.com/), Tous droits réservés.
|
||||
|
||||
Sous licence The GNU General Public License version 3 (GPLv3) (la « Licence ») ; vous n'êtes pas autorisé à utiliser ce fichier sauf en conformité avec la Licence. Vous pouvez obtenir une copie de la Licence à l'adresse suivante
|
||||
|
||||
<https://www.gnu.org/licenses/gpl-3.0.html>
|
||||
|
||||
Sauf obligation imposée par la loi applicable ou accord écrit, le logiciel distribué sous la Licence est distribué « tel quel », sans garantie ni condition de quelque nature que ce soit, qu'elle soit expresse ou implicite. Consultez la Licence pour le langage spécifique régissant les autorisations et les limitations prévues par la Licence.
|
76
docs/README.id.md
Normal file
76
docs/README.id.md
Normal file
@ -0,0 +1,76 @@
|
||||
<p align="center"><a href="https://dataease.io"><img src="https://dataease.oss-cn-hangzhou.aliyuncs.com/img/dataease-logo.png" alt="DataEase" width="300" /></a></p>
|
||||
<h3 align="center">Alat BI (Business Intelligence) sumber terbuka yang simple dan mudah digunakan</h3>
|
||||
<p align="center">
|
||||
<a href="https://www.gnu.org/licenses/gpl-3.0.html"><img src="https://img.shields.io/github/license/dataease/dataease?color=%231890FF" alt="License: GPL v3"></a>
|
||||
<a href="https://app.codacy.com/gh/dataease/dataease?utm_source=github.com&utm_medium=referral&utm_content=dataease/dataease&utm_campaign=Badge_Grade_Dashboard"><img src="https://app.codacy.com/project/badge/Grade/da67574fd82b473992781d1386b937ef" alt="Codacy"></a>
|
||||
<a href="https://github.com/dataease/dataease"><img src="https://img.shields.io/github/stars/dataease/dataease?color=%231890FF&style=flat-square" alt="GitHub Stars"></a>
|
||||
<a href="https://github.com/dataease/dataease/releases"><img src="https://img.shields.io/github/v/release/dataease/dataease" alt="GitHub release"></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<a href="/README.md"><img alt="中文(简体)" src="https://img.shields.io/badge/中文(简体)-d9d9d9"></a>
|
||||
<a href="/docs/README.en.md"><img alt="English" src="https://img.shields.io/badge/English-d9d9d9"></a>
|
||||
<a href="/docs/README.zh-Hant.md"><img alt="中文(繁體)" src="https://img.shields.io/badge/中文(繁體)-d9d9d9"></a>
|
||||
<a href="/docs/README.ja.md"><img alt="日本語" src="https://img.shields.io/badge/日本語-d9d9d9"></a>
|
||||
<a href="/docs/README.pt-br.md"><img alt="Português (Brasil)" src="https://img.shields.io/badge/Português (Brasil)-d9d9d9"></a>
|
||||
<a href="/docs/README.ar.md"><img alt="العربية" src="https://img.shields.io/badge/العربية-d9d9d9"></a>
|
||||
<a href="/docs/README.de.md"><img alt="Deutsch" src="https://img.shields.io/badge/Deutsch-d9d9d9"></a>
|
||||
<a href="/docs/README.es.md"><img alt="Español" src="https://img.shields.io/badge/Español-d9d9d9"></a>
|
||||
<a href="/docs/README.fr.md"><img alt="français" src="https://img.shields.io/badge/français-d9d9d9"></a>
|
||||
<a href="/docs/README.ko.md"><img alt="한국어" src="https://img.shields.io/badge/한국어-d9d9d9"></a>
|
||||
<a href="/docs/README.id.md"><img alt="Bahasa Indonesia" src="https://img.shields.io/badge/Bahasa Indonesia-d9d9d9"></a>
|
||||
<a href="/docs/README.tr.md"><img alt="Türkçe" src="https://img.shields.io/badge/Türkçe-d9d9d9"></a>
|
||||
</p>
|
||||
|
||||
------------------------------
|
||||
|
||||
## Apa itu DataEase?
|
||||
|
||||
DataEase adalah alat BI sumber terbuka yang dirancang untuk membantu pengguna dengan cepat menganalisis data dan mendapatkan wawasan bisnis, memungkinkan mereka untuk meningkatkan dan mengoptimalkan operasi mereka. Itu mendukung berbagai macam sumber data, memungkinkan pengguna untuk membuat bagan dengan antarmuka drag-and-drop yang simple dan berbagi dengan mudah.
|
||||
|
||||
**Keunggulan DataEase:**
|
||||
|
||||
- Sumber Terbuka: Tidak ada hambatan, pengadaan dan pemasangan online yang cepat, pembaruan bulanan.
|
||||
- Mudah Digunakan: Mudah digunakan; analisis dapat diselesaikan dengan klik mouse yang simple dan tindakan drag-and-drop.
|
||||
- Beragam: Mendukung pemasangan multi-platform dan opsi penyisipan yang beragam.
|
||||
- Berbagi yang Aman: Menawarkan berbagai metode berbagi data sambil memastikan keamanan data.
|
||||
|
||||
**Sumber Data yang Didukung:**
|
||||
|
||||
- Database OLTP: MySQL, Oracle, SQL Server, PostgreSQL, MariaDB, Db2, TiDB, MongoDB-BI, dll.
|
||||
- Database OLAP: ClickHouse, Apache Doris, Apache Impala, StarRocks, dll.
|
||||
- Warehouse/Data Lake: Amazon RedShift, dll.
|
||||
- File Data: Excel, CSV, dll.
|
||||
- Sumber Data API.
|
||||
|
||||
## Panduan Cepat Memulai
|
||||
|
||||
```
|
||||
# Prepare a Linux server with at least 2 CPUs and 4GB of RAM, then run the following one-click installation script as the root user:
|
||||
|
||||
curl -sSL https://dataease.oss-cn-hangzhou.aliyuncs.com/quick_start_v2.sh | bash
|
||||
|
||||
# Username: admin
|
||||
# Password: DataEase@123456
|
||||
```
|
||||
## Teknologi Stack
|
||||
|
||||
- Frontend: [Vue.js](https://vuejs.org/), [Element](https://element.eleme.cn/)
|
||||
- Pustaka Visualisasi: [AntV](https://antv.vision/zh)
|
||||
- Backend: [Spring Boot](https://spring.io/projects/spring-boot)
|
||||
- Database: [MySQL](https://www.mysql.com/)
|
||||
- Pemrosesan Data: [Apache Calcite](https://github.com/apache/calcite/), [Apache SeaTunnel](https://github.com/apache/seatunnel)
|
||||
- Infrastruktur: [Docker](https://www.docker.com/)
|
||||
|
||||
## Informasi Keamanan
|
||||
|
||||
Jika Anda menemukan masalah keamanan, silakan hubungi kami melalui: wei@fit2cloud.com.
|
||||
|
||||
## Lisensi
|
||||
|
||||
Hak cipta (c) 2014-2024 FIT2CLOUD, Hak cipta dilindungi undang-undang.
|
||||
|
||||
Dilisensikan di bawah Lisensi Publik Umum GNU versi 3 (GPLv3) ("Lisensi"); Anda tidak boleh menggunakan file ini kecuali dalam ketentuan Lisensi. Anda dapat mendapatkan salinan Lisensi di
|
||||
|
||||
https://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
Kecuali sesuai dengan undang-undang yang berlaku atau disepakati secara tertulis, perangkat lunak yang didistribusikan di bawah Lisensi didistribusikan pada DASAR "SEBENAR-BENAR", TANPA JAMINAN ATAU SYARAT APA PUN, baik yang diucapkan atau diimplikasikan. Lihat Lisensi untuk bahasa spesifik yang menentukan izin dan batasan di bawah Lisensi.
|
77
docs/README.ja.md
Normal file
77
docs/README.ja.md
Normal file
@ -0,0 +1,77 @@
|
||||
<p align="center"><a href="https://dataease.io"><img src="https://dataease.oss-cn-hangzhou.aliyuncs.com/img/dataease-logo.png" alt="DataEase" width="300" /></a></p>
|
||||
<h3 align="center">操作が簡単で使いやすいオープンソースのBIツール</h3>
|
||||
<p align="center">
|
||||
<a href="https://www.gnu.org/licenses/gpl-3.0.html"><img src="https://img.shields.io/github/license/dataease/dataease?color=%231890FF" alt="License: GPL v3"></a>
|
||||
<a href="https://app.codacy.com/gh/dataease/dataease?utm_source=github.com&utm_medium=referral&utm_content=dataease/dataease&utm_campaign=Badge_Grade_Dashboard"><img src="https://app.codacy.com/project/badge/Grade/da67574fd82b473992781d1386b937ef" alt="Codacy"></a>
|
||||
<a href="https://github.com/dataease/dataease"><img src="https://img.shields.io/github/stars/dataease/dataease?color=%231890FF&style=flat-square" alt="GitHub Stars"></a>
|
||||
<a href="https://github.com/dataease/dataease/releases"><img src="https://img.shields.io/github/v/release/dataease/dataease" alt="GitHub release"></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<a href="/README.md"><img alt="中文(简体)" src="https://img.shields.io/badge/中文(简体)-d9d9d9"></a>
|
||||
<a href="/docs/README.en.md"><img alt="English" src="https://img.shields.io/badge/English-d9d9d9"></a>
|
||||
<a href="/docs/README.zh-Hant.md"><img alt="中文(繁體)" src="https://img.shields.io/badge/中文(繁體)-d9d9d9"></a>
|
||||
<a href="/docs/README.ja.md"><img alt="日本語" src="https://img.shields.io/badge/日本語-d9d9d9"></a>
|
||||
<a href="/docs/README.pt-br.md"><img alt="Português (Brasil)" src="https://img.shields.io/badge/Português (Brasil)-d9d9d9"></a>
|
||||
<a href="/docs/README.ar.md"><img alt="العربية" src="https://img.shields.io/badge/العربية-d9d9d9"></a>
|
||||
<a href="/docs/README.de.md"><img alt="Deutsch" src="https://img.shields.io/badge/Deutsch-d9d9d9"></a>
|
||||
<a href="/docs/README.es.md"><img alt="Español" src="https://img.shields.io/badge/Español-d9d9d9"></a>
|
||||
<a href="/docs/README.fr.md"><img alt="français" src="https://img.shields.io/badge/français-d9d9d9"></a>
|
||||
<a href="/docs/README.ko.md"><img alt="한국어" src="https://img.shields.io/badge/한국어-d9d9d9"></a>
|
||||
<a href="/docs/README.id.md"><img alt="Bahasa Indonesia" src="https://img.shields.io/badge/Bahasa Indonesia-d9d9d9"></a>
|
||||
<a href="/docs/README.tr.md"><img alt="Türkçe" src="https://img.shields.io/badge/Türkçe-d9d9d9"></a>
|
||||
</p>
|
||||
|
||||
------------------------------
|
||||
|
||||
## DataEaseとは?
|
||||
|
||||
DataEaseは、ユーザーがデータを迅速に分析し、ビジネスの洞察を得るのを支援するオープンソースのBIツールです。これにより、ユーザーは業務の改善と最適化を実現できます。DataEaseは多様なデータソースをサポートし、ドラッグアンドドロップのインターフェースで簡単にチャートを作成し、他の人と簡単に共有できます。
|
||||
|
||||
**DataEaseの利点:**
|
||||
|
||||
- オープンソース:障壁がなく、オンラインで迅速に取得およびインストールでき、毎月更新されます。
|
||||
- 使いやすい:使いやすく、マウスクリックとドラッグアンドドロップで分析を完了できます。
|
||||
- 多用途:マルチプラットフォームインストールと多様な埋め込みオプションをサポートします。
|
||||
- 安全な共有:データのセキュリティを確保しながら、さまざまなデータ共有方法を提供します。
|
||||
|
||||
**サポートされているデータソース:**
|
||||
|
||||
- OLTPデータベース:MySQL、Oracle、SQL Server、PostgreSQL、MariaDB、Db2、TiDB、MongoDB-BIなど。
|
||||
- OLAPデータベース:ClickHouse、Apache Doris、Apache Impala、StarRocksなど。
|
||||
- データウェアハウス/データレイク:Amazon RedShiftなど。
|
||||
- データファイル:Excel、CSVなど。
|
||||
- APIデータソース。
|
||||
|
||||
## クイックスタート
|
||||
|
||||
```
|
||||
# 2CPU、4GB以上のRAMを備えたLinuxサーバーを準備し、rootユーザーとして以下のワンクリックインストールスクリプトを実行します:
|
||||
|
||||
curl -sSL https://dataease.oss-cn-hangzhou.aliyuncs.com/quick_start_v2.sh | bash
|
||||
|
||||
# ユーザー名: admin
|
||||
# パスワード: DataEase@123456
|
||||
```
|
||||
|
||||
## 技術スタック
|
||||
|
||||
- フロントエンド:[Vue.js](https://vuejs.org/)、[Element](https://element.eleme.cn/)
|
||||
- 可視化ライブラリ:[AntV](https://antv.vision/zh)
|
||||
- バックエンド:[Spring Boot](https://spring.io/projects/spring-boot)
|
||||
- データベース:[MySQL](https://www.mysql.com/)
|
||||
- データ処理:[Apache Calcite](https://github.com/apache/calcite/)、[Apache SeaTunnel](https://github.com/apache/seatunnel)
|
||||
- インフラストラクチャ:[Docker](https://www.docker.com/)
|
||||
|
||||
## セキュリティ
|
||||
|
||||
セキュリティ上の問題を発見した場合は、以下のメールアドレスにご連絡ください:wei@fit2cloud.com。
|
||||
|
||||
## ライセンス
|
||||
|
||||
Copyright (c) 2014-2024 [FIT2CLOUD](https://fit2cloud.com/), All rights reserved.
|
||||
|
||||
The GNU General Public License version 3 (GPLv3) に基づいてライセンスされています。ライセンスに従わない限り、このファイルを使用することはできません。ライセンスのコピーは以下のリンクから入手できます:
|
||||
|
||||
<https://www.gnu.org/licenses/gpl-3.0.html>
|
||||
|
||||
適用法または書面によって同意されない限り、ライセンスに基づいて配布されるソフトウェアは、「現状のまま」提供され、明示的または黙示的な保証はありません。ライセンスの下での権利と制限の詳細については、ライセンスを参照してください。
|
77
docs/README.ko.md
Normal file
77
docs/README.ko.md
Normal file
@ -0,0 +1,77 @@
|
||||
<p align="center"><a href="https://dataease.io"><img src="https://dataease.oss-cn-hangzhou.aliyuncs.com/img/dataease-logo.png" alt="DataEase" width="300" /></a></p>
|
||||
<h3 align="center">사용하기 쉬운 오픈소스 BI 도구 (Sayonghagi swiun open source BI dogu)</h3>
|
||||
<p align="center">
|
||||
<a href="https://www.gnu.org/licenses/gpl-3.0.html"><img src="https://img.shields.io/github/license/dataease/dataease?color=%231890FF" alt="License: GPL v3"></a>
|
||||
<a href="https://app.codacy.com/gh/dataease/dataease?utm_source=github.com&utm_medium=referral&utm_content=dataease/dataease&utm_campaign=Badge_Grade_Dashboard"><img src="https://app.codacy.com/project/badge/Grade/da67574fd82b473992781d1386b937ef" alt="Codacy"></a>
|
||||
<a href="https://github.com/dataease/dataease"><img src="https://img.shields.io/github/stars/dataease/dataease?color=%231890FF&style=flat-square" alt="GitHub Stars"></a>
|
||||
<a href="https://github.com/dataease/dataease/releases"><img src="https://img.shields.io/github/v/release/dataease/dataease" alt="GitHub release"></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<a href="/README.md"><img alt="中文(简体)" src="https://img.shields.io/badge/中文(简体)-d9d9d9"></a>
|
||||
<a href="/docs/README.en.md"><img alt="English" src="https://img.shields.io/badge/English-d9d9d9"></a>
|
||||
<a href="/docs/README.zh-Hant.md"><img alt="中文(繁體)" src="https://img.shields.io/badge/中文(繁體)-d9d9d9"></a>
|
||||
<a href="/docs/README.ja.md"><img alt="日本語" src="https://img.shields.io/badge/日本語-d9d9d9"></a>
|
||||
<a href="/docs/README.pt-br.md"><img alt="Português (Brasil)" src="https://img.shields.io/badge/Português (Brasil)-d9d9d9"></a>
|
||||
<a href="/docs/README.ar.md"><img alt="العربية" src="https://img.shields.io/badge/العربية-d9d9d9"></a>
|
||||
<a href="/docs/README.de.md"><img alt="Deutsch" src="https://img.shields.io/badge/Deutsch-d9d9d9"></a>
|
||||
<a href="/docs/README.es.md"><img alt="Español" src="https://img.shields.io/badge/Español-d9d9d9"></a>
|
||||
<a href="/docs/README.fr.md"><img alt="français" src="https://img.shields.io/badge/français-d9d9d9"></a>
|
||||
<a href="/docs/README.ko.md"><img alt="한국어" src="https://img.shields.io/badge/한국어-d9d9d9"></a>
|
||||
<a href="/docs/README.id.md"><img alt="Bahasa Indonesia" src="https://img.shields.io/badge/Bahasa Indonesia-d9d9d9"></a>
|
||||
<a href="/docs/README.tr.md"><img alt="Türkçe" src="https://img.shields.io/badge/Türkçe-d9d9d9"></a>
|
||||
</p>
|
||||
|
||||
------------------------------
|
||||
|
||||
## DataEase 란?
|
||||
|
||||
DataEase는 사용자가 신속하게 데이터를 분석하고 비즈니스 통찰력을 얻을 수 있도록 설계된 오픈소스 BI 도구로, 운영을 개선하고 최적화할 수 있습니다.광범위한 데이터 원본을 지원하므로 사용자는 간단한 드래그 앤 드롭 인터페이스로 차트를 만들고 손쉽게 공유할 수 있습니다.
|
||||
|
||||
**DataEase의 장점:**
|
||||
|
||||
- 오픈 소스:장벽이 없는, 빠른 온라인 획득 및 설치, 월별 업데이트.
|
||||
- 사용자 친화적인:사용하기 쉬운;간단한 마우스 클릭과 드래그 앤 드롭 동작으로 분석을 완료할 수 있습니다.
|
||||
- 다용도:멀티 플랫폼 설치 및 다양한 임베딩 옵션을 지원합니다.
|
||||
- 보안 공유:데이터 보안을 보장하면서 다양한 데이터 공유 방법을 제공합니다.
|
||||
|
||||
**지원되는 데이터 원본 Supported Data Sources:**
|
||||
|
||||
- OLTP 데이터베이스:MySQL, Oracle, SQL Server, PostgreSQL, MariaDB, Db2, TiDB, MongoDB-BI 등.
|
||||
- OLAP 데이터베이스:ClickHouse, Apache Doris, Apache Impala, StarRocks 등.
|
||||
- Data warehouse/Data Lakes:Amazon RedShift 등
|
||||
- 데이터파일:Excel, CSV 등.
|
||||
- API 데이터 원본.
|
||||
|
||||
## 빠 른 시작
|
||||
|
||||
```
|
||||
# 최소 2개의 cpu와 4GB의 RAM이 있는 Linux 서버를 준비한 후 루트 사용자로 다음 원클릭 설치 스크립트를 실행합니다:
|
||||
|
||||
컬 -sSL https://dataease.oss-cn-hangzhou.aliyuncs.com/quick_start_v2.sh | 파티
|
||||
|
||||
# 사용자 이름:관리
|
||||
# 암호:DataEase@123456
|
||||
```
|
||||
|
||||
## 기술 스택
|
||||
|
||||
- 프론트엔드:[Vue.js](https://vuejs.org/), [Element](https://element.eleme.cn/)
|
||||
- 시각화 라이브러리:[AntV](https://antv.vision/zh)
|
||||
- 백엔드:[스프링 부트](https://spring.io/projects/spring-boot)
|
||||
- 데이터베이스:[MySQL](https://www.mysql.com/)
|
||||
- 자료처리:[Apache Calcite](https://github.com/apache/calcite/), [Apache SeaTunnel](https://github.com/apache/seatunnel)
|
||||
- 인프라:[Docker](https://www.docker.com/)
|
||||
|
||||
## 보안
|
||||
|
||||
보안 문제를 발견하면 다음을 통해 문의하십시오:wei@fit2cloud.com.
|
||||
|
||||
## 라이선스
|
||||
|
||||
Copyright (c) 2014-2024 [FIT2CLOUD](https://fit2cloud.com/), All rights reserved.
|
||||
|
||||
GNU 일반 공중 사용 허가서 버전 3 (GPLv3)에 따라 허가 ("라이선스");라이센스를 준수하는 경우를 제외하고이 파일을 사용할 수 없습니다.라이센스의 사본을 받을 수 있습니다
|
||||
|
||||
< https://www.gnu.org/licenses/gpl-3.0.html >
|
||||
|
||||
해당 법률에서 요구하거나 서면으로 동의하지 않는 한, 라이선스에 따라 배포되는 소프트웨어는 명시적 또는 묵시적으로 어떤 종류의 보증이나 조건도 없이"있는 그대로"배포됩니다.라이선스에서 사용 권한 및 제한 사항을 관리하는 특정 언어는 라이선스를 참조하십시오.
|
77
docs/README.pt-br.md
Normal file
77
docs/README.pt-br.md
Normal file
@ -0,0 +1,77 @@
|
||||
<p align="center"><a href="https://dataease.io"><img src="https://dataease.oss-cn-hangzhou.aliyuncs.com/img/dataease-logo.png" alt="DataEase" width="300" /></a></p>
|
||||
<h3 align="center">Uma ferramenta BI de código aberto simples e fácil de usar</h3>
|
||||
<p align="center">
|
||||
<a href="https://www.gnu.org/licenses/gpl-3.0.html"><img src="https://img.shields.io/github/license/dataease/dataease?color=%231890FF" alt="License: GPL v3"></a>
|
||||
<a href="https://app.codacy.com/gh/dataease/dataease?utm_source=github.com&utm_medium=referral&utm_content=dataease/dataease&utm_campaign=Badge_Grade_Dashboard"><img src="https://app.codacy.com/project/badge/Grade/da67574fd82b473992781d1386b937ef" alt="Codacy"></a>
|
||||
<a href="https://github.com/dataease/dataease"><img src="https://img.shields.io/github/stars/dataease/dataease?color=%231890FF&style=flat-square" alt="GitHub Stars"></a>
|
||||
<a href="https://github.com/dataease/dataease/releases"><img src="https://img.shields.io/github/v/release/dataease/dataease" alt="GitHub release"></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<a href="/README.md"><img alt="中文(简体)" src="https://img.shields.io/badge/中文(简体)-d9d9d9"></a>
|
||||
<a href="/docs/README.en.md"><img alt="English" src="https://img.shields.io/badge/English-d9d9d9"></a>
|
||||
<a href="/docs/README.zh-Hant.md"><img alt="中文(繁體)" src="https://img.shields.io/badge/中文(繁體)-d9d9d9"></a>
|
||||
<a href="/docs/README.ja.md"><img alt="日本語" src="https://img.shields.io/badge/日本語-d9d9d9"></a>
|
||||
<a href="/docs/README.pt-br.md"><img alt="Português (Brasil)" src="https://img.shields.io/badge/Português (Brasil)-d9d9d9"></a>
|
||||
<a href="/docs/README.ar.md"><img alt="العربية" src="https://img.shields.io/badge/العربية-d9d9d9"></a>
|
||||
<a href="/docs/README.de.md"><img alt="Deutsch" src="https://img.shields.io/badge/Deutsch-d9d9d9"></a>
|
||||
<a href="/docs/README.es.md"><img alt="Español" src="https://img.shields.io/badge/Español-d9d9d9"></a>
|
||||
<a href="/docs/README.fr.md"><img alt="français" src="https://img.shields.io/badge/français-d9d9d9"></a>
|
||||
<a href="/docs/README.ko.md"><img alt="한국어" src="https://img.shields.io/badge/한국어-d9d9d9"></a>
|
||||
<a href="/docs/README.id.md"><img alt="Bahasa Indonesia" src="https://img.shields.io/badge/Bahasa Indonesia-d9d9d9"></a>
|
||||
<a href="/docs/README.tr.md"><img alt="Türkçe" src="https://img.shields.io/badge/Türkçe-d9d9d9"></a>
|
||||
</p>
|
||||
|
||||
------------------------------
|
||||
|
||||
## O que é DataEase?
|
||||
|
||||
DataEase é uma ferramenta de BI de código aberto projetada para ajudar os usuários a analisar rapidamente dados e obter insights de negócios, permitindo-lhes melhorar e otimizar suas operações. Ele suporta uma ampla gama de fontes de dados, permitindo aos usuários criar gráficos com uma interface simples de arrastar e soltar e compartilhá-los sem esforço.
|
||||
|
||||
**Vantagens do DataEase:**
|
||||
|
||||
- Open Source: Zero barreiras, rápida aquisição e instalação on-line, atualizações mensais.
|
||||
- Fácil de usar: Fácil de usar; A análise pode ser concluída com simples cliques do mouse e ações de arrastar e soltar.
|
||||
- Versátil: Suporta instalação multi-plataforma e opções de incorporação diversificadas.
|
||||
- Compartilhamento seguro: Oferece vários métodos de compartilhamento de dados, garantindo a segurança dos dados.
|
||||
|
||||
**Fontes de Dados Suportadas:**
|
||||
|
||||
- Bancos de dados OLTP: MySQL, Oracle, SQL Server, PostgreSQL, MariaDB, Db2, TiDB, MongoDB-BI, etc.
|
||||
- Bancos de dados OLAP: ClickHouse, Apache Doris, Apache Impala, StarRocks, etc.
|
||||
- Data Warehouses/Data Lakes: Amazon RedShift, etc.
|
||||
- Arquivos de dados: Excel, CSV, etc.
|
||||
- Fontes de Dados API.
|
||||
|
||||
## Início Rápido
|
||||
|
||||
```
|
||||
# Prepare um servidor Linux com pelo menos 2 CPUs e 4GB de RAM e execute o seguinte script de instalação com um clique como usuário root:
|
||||
|
||||
curl - sSL https://dataease.oss-cn-hangzhou.aliyuncs.com/quick_start_v2.sh | bash
|
||||
|
||||
# Nome de utilizador: admin
|
||||
# Senha: DataEase@123456
|
||||
```
|
||||
|
||||
## Tecnologia Stack
|
||||
|
||||
- Frontend: [Vue.js](https://vuejs.org/), [Elemento](https://element.eleme.cn/)
|
||||
- Biblioteca de Visualização: [AntV](https://antv.vision/zh)
|
||||
- Infra- Estrutura: [Spring Boot](https://spring.io/projects/spring-boot)
|
||||
- Base de dados: [MySQL](https://www.mysql.com/)
|
||||
- Processamento de dados: [Apache Calcite](https://github.com/apache/calcite/), [Apache SeaTunnel](https://github.com/apache/seatunnel)
|
||||
- Infra-estrutura: [Docker](https://www.docker.com/)
|
||||
|
||||
## Segurança
|
||||
|
||||
Se você descobrir algum problema de segurança, entre em contato conosco através de: wei@fit2cloud.com.
|
||||
|
||||
## Licença
|
||||
|
||||
Copyright (c) 2014- 2024 [FIT2CLOUD](https://fit2cloud.com/), Todos os direitos reservados.
|
||||
|
||||
Licenciado sob a Licença Pública Geral GNU versão 3 (GPLv3) (a "Licença"); você não pode usar este arquivo exceto em conformidade com a Licença. Você pode obter uma cópia da Licença em
|
||||
|
||||
<https://www.gnu.org/licenses/gpl-3.0.html>
|
||||
|
||||
A menos que exigido pela lei aplicável ou acordado por escrito, o software distribuído sob a Licença é distribuído "COMO ESTÁ", SEM GARANTIAS OU CONDIÇÕES DE QUALQUER TIPO, expressas ou implícitas. Consulte a Licença para o idioma específico que rege permissões e limitações sob a Licença.
|
76
docs/README.tr.md
Normal file
76
docs/README.tr.md
Normal file
@ -0,0 +1,76 @@
|
||||
<p align="center"><a href="https://dataease.io"><img src="https://dataease.oss-cn-hangzhou.aliyuncs.com/img/dataease-logo.png" alt="DataEase" width="300" /></a></p>
|
||||
<h3 align="center">Basit ve kullanımı kolay açık kaynaklı BI aracı</h3>
|
||||
<p align="center">
|
||||
<a href="https://www.gnu.org/licenses/gpl-3.0.html"><img src="https://img.shields.io/github/license/dataease/dataease?color=%231890FF" alt="License: GPL v3"></a>
|
||||
<a href="https://app.codacy.com/gh/dataease/dataease?utm_source=github.com&utm_medium=referral&utm_content=dataease/dataease&utm_campaign=Badge_Grade_Dashboard"><img src="https://app.codacy.com/project/badge/Grade/da67574fd82b473992781d1386b937ef" alt="Codacy"></a>
|
||||
<a href="https://github.com/dataease/dataease"><img src="https://img.shields.io/github/stars/dataease/dataease?color=%231890FF&style=flat-square" alt="GitHub Stars"></a>
|
||||
<a href="https://github.com/dataease/dataease/releases"><img src="https://img.shields.io/github/v/release/dataease/dataease" alt="GitHub release"></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<a href="/README.md"><img alt="中文(简体)" src="https://img.shields.io/badge/中文(简体)-d9d9d9"></a>
|
||||
<a href="/docs/README.en.md"><img alt="English" src="https://img.shields.io/badge/English-d9d9d9"></a>
|
||||
<a href="/docs/README.zh-Hant.md"><img alt="中文(繁體)" src="https://img.shields.io/badge/中文(繁體)-d9d9d9"></a>
|
||||
<a href="/docs/README.ja.md"><img alt="日本語" src="https://img.shields.io/badge/日本語-d9d9d9"></a>
|
||||
<a href="/docs/README.pt-br.md"><img alt="Português (Brasil)" src="https://img.shields.io/badge/Português (Brasil)-d9d9d9"></a>
|
||||
<a href="/docs/README.ar.md"><img alt="العربية" src="https://img.shields.io/badge/العربية-d9d9d9"></a>
|
||||
<a href="/docs/README.de.md"><img alt="Deutsch" src="https://img.shields.io/badge/Deutsch-d9d9d9"></a>
|
||||
<a href="/docs/README.es.md"><img alt="Español" src="https://img.shields.io/badge/Español-d9d9d9"></a>
|
||||
<a href="/docs/README.fr.md"><img alt="français" src="https://img.shields.io/badge/français-d9d9d9"></a>
|
||||
<a href="/docs/README.ko.md"><img alt="한국어" src="https://img.shields.io/badge/한국어-d9d9d9"></a>
|
||||
<a href="/docs/README.id.md"><img alt="Bahasa Indonesia" src="https://img.shields.io/badge/Bahasa Indonesia-d9d9d9"></a>
|
||||
<a href="/docs/README.tr.md"><img alt="Türkçe" src="https://img.shields.io/badge/Türkçe-d9d9d9"></a>
|
||||
</p>
|
||||
|
||||
------------------------------
|
||||
## DataEase nedir?
|
||||
|
||||
DataEase, kullanıcıların hızlı bir şekilde veri analizlerini yapmalarını ve iş içi bilgileri elde etmelerini sağlayarak işlemlerini geliştirmeleri ve optimize etmeleri için tasarlanmış açık kaynaklı bir BI aracıdır. Çeşitli veri kaynaklarını destekler ve kullanıcıların basit bir sürükle-bırak arayüzü ile grafikler oluşturmalarını ve bunları kolayca paylaşmalarını sağlar.
|
||||
|
||||
**DataEase'in Avantajları:**
|
||||
|
||||
- Açık Kaynaklı: Sıfır engel, hızlı çevrimiçi edinme ve yükleme, aylık güncellemeler.
|
||||
- Kullanıcı Dostu: Kolay kullanılır; analizler, basit fare tıklamaları ve sürükle-bırak işlemleri ile tamamlanabilir.
|
||||
- Çoklu Amaçlı: Çoklu platform yüklemeyi ve çeşitli gömme seçeneklerini destekler.
|
||||
- Güvenli Paylaşım: Veri güvenliğini sağlayarak çeşitli veri paylaşım yöntemleri sunar.
|
||||
|
||||
**Desteklenen Veri Kaynakları:**
|
||||
|
||||
- OLTP Veri Tabanları: MySQL, Oracle, SQL Server, PostgreSQL, MariaDB, Db2, TiDB, MongoDB-BI vb.
|
||||
- OLAP Veri Tabanları: ClickHouse, Apache Doris, Apache Impala, StarRocks vb.
|
||||
- Veri Ambarları/Veri Gölleri: Amazon RedShift vb.
|
||||
- Veri Dosyaları: Excel, CSV vb.
|
||||
- API Veri Kaynakları.
|
||||
|
||||
## Hızlı Başlangıç
|
||||
|
||||
```
|
||||
# En az 2 CPU ve 4GB RAM ile bir Linux sunucusu hazırlayın ve ardından root kullanıcısı olarak aşağıdaki tek tuşlu yükleme komut dosyasını çalıştırın:
|
||||
|
||||
curl -sSL https://dataease.oss-cn-hangzhou.aliyuncs.com/quick_start_v2.sh | bash
|
||||
|
||||
# Kullanıcı Adı: admin
|
||||
# Şifre: DataEase@123456
|
||||
```
|
||||
|
||||
## Teknoloji Yığını
|
||||
|
||||
- Ön Kısmı: [Vue.js](https://vuejs.org/), [Element](https://element.eleme.cn/)
|
||||
- Görselleştirme Kütüphanesi: [AntV](https://antv.vision/zh)
|
||||
- Arka Kısmı: [Spring Boot](https://spring.io/projects/spring-boot)
|
||||
- Veri Tabanı: [MySQL](https://www.mysql.com/)
|
||||
- Veri İşleme: [Apache Calcite](https://github.com/apache/calcite/), [Apache SeaTunnel](https://github.com/apache/seatunnel)
|
||||
- Altyapı: [Docker](https://www.docker.com/)
|
||||
|
||||
## Güvenlik
|
||||
|
||||
Eğer herhangi bir güvenlik sorunu keşfedin, lütfen bize wei@fit2cloud.com üzerinden ulaşın.
|
||||
|
||||
## Lisans
|
||||
|
||||
Copyright (c) 2014-2024 [FIT2CLOUD](https://fit2cloud.com/), Tüm hakları saklıdır.
|
||||
|
||||
GNU Genel Kamu Lisansı sürüm 3 (GPLv3) (aşağıda "Lisans" olarak adlandırılır) altında lisanslanmıştır; bu dosyayı Lisans'a uygunlukla kullanmadıkça kullanamazsınız. Lisansın bir kopyasını aşağıdaki adresten edinebilirsiniz
|
||||
|
||||
<https://www.gnu.org/licenses/gpl-3.0.html>
|
||||
|
||||
Uygulanabilir yasa tarafından gerekli olmadıkça veya yazılı olarak kabul edilmedikçe, Lisans altında dağıtılan yazılım "OLARAK" temsil edildiği gibi dağıtılır, hiçbir tür garanti veya koşul olmaksızın, açıkça veya dolaylı olarak. Lisans altında izinleri ve kısıtlamaları düzenleyen spesifik dil için Lisansı inceleyin.
|
112
docs/README.zh-Hant.md
Normal file
112
docs/README.zh-Hant.md
Normal file
@ -0,0 +1,112 @@
|
||||
<p align="center"><a href="https://dataease.io"><img src="https://dataease.oss-cn-hangzhou.aliyuncs.com/img/dataease-logo.png" alt="DataEase" width="300" /></a></p>
|
||||
<h3 align="center">簡單易用的開源 BI 工具</h3>
|
||||
<p align="center">
|
||||
<a href="https://www.gnu.org/licenses/gpl-3.0.html"><img src="https://img.shields.io/github/license/dataease/dataease?color=%231890FF" alt="License: GPL v3"></a>
|
||||
<a href="https://app.codacy.com/gh/dataease/dataease?utm_source=github.com&utm_medium=referral&utm_content=dataease/dataease&utm_campaign=Badge_Grade_Dashboard"><img src="https://app.codacy.com/project/badge/Grade/da67574fd82b473992781d1386b937ef" alt="Codacy"></a>
|
||||
<a href="https://github.com/dataease/dataease"><img src="https://img.shields.io/github/stars/dataease/dataease?color=%231890FF&style=flat-square" alt="GitHub Stars"></a>
|
||||
<a href="https://github.com/dataease/dataease/releases"><img src="https://img.shields.io/github/v/release/dataease/dataease" alt="GitHub release"></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<a href="/README.md"><img alt="中文(简体)" src="https://img.shields.io/badge/中文(简体)-d9d9d9"></a>
|
||||
<a href="/docs/README.en.md"><img alt="English" src="https://img.shields.io/badge/English-d9d9d9"></a>
|
||||
<a href="/docs/README.zh-Hant.md"><img alt="中文(繁體)" src="https://img.shields.io/badge/中文(繁體)-d9d9d9"></a>
|
||||
<a href="/docs/README.ja.md"><img alt="日本語" src="https://img.shields.io/badge/日本語-d9d9d9"></a>
|
||||
<a href="/docs/README.pt-br.md"><img alt="Português (Brasil)" src="https://img.shields.io/badge/Português (Brasil)-d9d9d9"></a>
|
||||
<a href="/docs/README.ar.md"><img alt="العربية" src="https://img.shields.io/badge/العربية-d9d9d9"></a>
|
||||
<a href="/docs/README.de.md"><img alt="Deutsch" src="https://img.shields.io/badge/Deutsch-d9d9d9"></a>
|
||||
<a href="/docs/README.es.md"><img alt="Español" src="https://img.shields.io/badge/Español-d9d9d9"></a>
|
||||
<a href="/docs/README.fr.md"><img alt="français" src="https://img.shields.io/badge/français-d9d9d9"></a>
|
||||
<a href="/docs/README.ko.md"><img alt="한국어" src="https://img.shields.io/badge/한국어-d9d9d9"></a>
|
||||
<a href="/docs/README.id.md"><img alt="Bahasa Indonesia" src="https://img.shields.io/badge/Bahasa Indonesia-d9d9d9"></a>
|
||||
<a href="/docs/README.tr.md"><img alt="Türkçe" src="https://img.shields.io/badge/Türkçe-d9d9d9"></a>
|
||||
</p>
|
||||
|
||||
------------------------------
|
||||
|
||||
## 什麼是 DataEase?
|
||||
|
||||
DataEase 是開源的 BI 工具,幫助用戶快速分析數據並洞察業務趨勢,從而實現業務的改進與優化。DataEase 支持豐富的數據源連接,能夠通過拖拉拽方式快速製作圖表,並可以方便地與他人分享。
|
||||
|
||||
**DataEase 的優勢:**
|
||||
|
||||
- 開源開放:零門檻,線上快速獲取和安裝,按月迭代;
|
||||
- 簡單易用:極易上手,通過鼠標點擊和拖拉即可完成分析;
|
||||
- 全場景支持:多平台安裝和多樣化嵌入支持;
|
||||
- 安全分享:支持多種數據分享方式,確保數據安全。
|
||||
|
||||
**DataEase 支持的數據源:**
|
||||
|
||||
- OLTP 數據庫: MySQL、Oracle、SQL Server、PostgreSQL、MariaDB、Db2、TiDB、MongoDB-BI 等;
|
||||
- OLAP 數據庫: ClickHouse、Apache Doris、Apache Impala、StarRocks 等;
|
||||
- 數據倉庫/數據湖: Amazon RedShift 等;
|
||||
- 數據文件: Excel、CSV 等;
|
||||
- API 數據源。
|
||||
|
||||
如果您需要向團隊介紹 DataEase,可以使用這個 [官方 PPT 材料](https://fit2cloud.com/dataease/download/introduce-dataease_202411.pdf)。
|
||||
|
||||
## 快速開始
|
||||
|
||||
**桌面版:**
|
||||
|
||||
您可以在 PC 上安裝 DataEase 桌面版,下載地址為:https://dataease.cn/
|
||||
|
||||
**伺服器版:**
|
||||
|
||||
```
|
||||
# 準備一台 2 核 4G 以上的 Linux 伺服器,並以 root 用戶運行以下一鍵安裝腳本:
|
||||
```
|
||||
|
||||
curl -sSL https://dataease.oss-cn-hangzhou.aliyuncs.com/quick_start_v2.sh | bash
|
||||
|
||||
|
||||
# 使用者名稱: admin
|
||||
# 密碼: DataEase@123456
|
||||
```
|
||||
|
||||
你也可以透過 [1Panel 應用商店](https://dataease.io/docs/v2/installation/1panel_installation/) 快速部署 DataEase。如果是用於生產環境,建議使用 [離線安裝包方式](https://dataease.io/docs/v2/installation/offline_INSTL_and_UPG/) 進行安裝部署。
|
||||
|
||||
如你有更多問題,可以查看線上文件,或者透過論壇與我們交流。
|
||||
|
||||
- [線上文件](https://dataease.io/docs/)
|
||||
- [社區論壇](https://bbs.fit2cloud.com/c/de/6)
|
||||
|
||||
## UI 展示
|
||||
|
||||
<table style="border-collapse: collapse; border: 1px solid black;">
|
||||
<tr>
|
||||
<td style="padding: 5px;background-color:#fff;"><img src= "https://github.com/dataease/dataease/assets/41712985/8dbed4e1-39f0-4392-aa8c-d1fd83ba42eb" alt="DataEase 工作台" /></td>
|
||||
<td style="padding: 5px;background-color:#fff;"><img src= "https://github.com/dataease/dataease/assets/41712985/7c54cb07-51ef-4bb6-a931-8a95c64c7e11" alt="DataEase 仪表板" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="padding: 5px;background-color:#fff;"><img src= "https://github.com/dataease/dataease/assets/41712985/ffa79361-a7b3-4486-b14a-f3fd3a28f01a" alt="DataEase 数据源" /></td>
|
||||
<td style="padding: 5px;background-color:#fff;"><img src= "https://github.com/dataease/dataease/assets/41712985/bb28f4e4-636e-4ab0-85c5-1dfbd7a5397e" alt="DataEase 模板中心" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
## 技術棧
|
||||
|
||||
- 前端:[Vue.js](https://vuejs.org/)、[Element](https://element.eleme.cn/)
|
||||
- 圖庫:[AntV](https://antv.vision/zh)
|
||||
- 後端:[Spring Boot](https://spring.io/projects/spring-boot)
|
||||
- 資料庫:[MySQL](https://www.mysql.com/)
|
||||
- 資料處理:[Apache Calcite](https://github.com/apache/calcite/)、[Apache SeaTunnel](https://github.com/apache/seatunnel)
|
||||
- 基礎設施:[Docker](https://www.docker.com/)
|
||||
|
||||
## 飛致雲的其他明星專案
|
||||
|
||||
- [1Panel](https://github.com/1panel-dev/1panel/) - 現代化、開源的 Linux 伺服器運維管理面板
|
||||
- [MaxKB](https://github.com/1panel-dev/MaxKB/) - 基於 LLM 大語言模型的開源知識庫問答系統
|
||||
- [JumpServer](https://github.com/jumpserver/jumpserver/) - 廣受歡迎的開源堡壘機
|
||||
- [Halo](https://github.com/halo-dev/halo/) - 強大易用的開源建站工具
|
||||
- [MeterSphere](https://github.com/metersphere/metersphere/) - 新一代的開源持續測試工具
|
||||
|
||||
## License
|
||||
|
||||
Copyright (c) 2014-2024 [FIT2CLOUD 飞致云](https://fit2cloud.com/), All rights reserved.
|
||||
|
||||
Licensed under The GNU General Public License version 3 (GPLv3) (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
|
||||
|
||||
<https://www.gnu.org/licenses/gpl-3.0.html>
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
21
docs/use-cases.md
Normal file
21
docs/use-cases.md
Normal file
@ -0,0 +1,21 @@
|
||||
<h3 align="center">DataEase 公开案例研究</h3>
|
||||
|
||||
------------------------------
|
||||
|
||||
- [HYPER PaaS低代码工具携手DataEase嵌入式版,服务工业制造企业数智化转型](https://blog.fit2cloud.com/?p=f6ec279f-a49d-4176-ac98-300b28cafa55)
|
||||
- [DataEase嵌入式版助力软件开发商提升行业软件交付效率](https://blog.fit2cloud.com/?p=043dc3c7-e2fb-423d-8cc8-ceb72a261369)
|
||||
- [小牛电动通过DataEase进行业务数据可视化分析](https://blog.fit2cloud.com/?p=edb31b15-4ce2-4fde-bf3b-3aa6cf185031)
|
||||
- [盛泰光电携手DataEase实现数据驱动智能制造](https://blog.fit2cloud.com/?p=ef5f7c8b-09c0-4016-a67d-d733b6ff776c)
|
||||
- [硬之城借助DataEase以数据驱动供应链精细化管理](https://blog.fit2cloud.com/?p=8d2ad36d-8727-4e02-bafb-65a6e644f4de)
|
||||
- [社区分享|百果园选择DataEase搭档蜜蜂微搭实现企业数据应用一体化](https://blog.fit2cloud.com/?p=364cd03d-9e73-4bed-8add-5d8ec4d9bf6d)
|
||||
- [案例研究|DataEase助力众陶联应对产业链数据可视化挑战](https://blog.fit2cloud.com/?p=1a4f85dd-c73c-4286-a667-3596514cf617)
|
||||
- [案例研究丨国控星鲨利用DataEase释放数据潜能,重塑业务视野](https://blog.fit2cloud.com/?p=c4612cdf-e983-42d2-9bbb-818929d2eba7)
|
||||
- [案例研究|北京交通大学基于DataEase开展多场景校园数据分析与展示](https://blog.fit2cloud.com/?p=9cdd8a00-5094-49c9-879e-a419546a0592)
|
||||
- [案例研究|辛格林电梯借助DataEase实现数据整合与智能展示](https://blog.fit2cloud.com/?p=a3cf8301-f10e-4597-87bb-76bb59c7ebc2)
|
||||
- [案例研究|作为一家BI厂商,飞致云是如何人人使用DataEase的?](https://blog.fit2cloud.com/?p=69eecf17-13c0-4994-8bba-a2a76352d2b4)
|
||||
- [社区分享|企业BI选型:从Quick BI、Superset到DataEase](https://blog.fit2cloud.com/?p=b86347ff-628f-4d97-b63c-308aea74adf9)
|
||||
- [案例研究|DataEase实现物业数据可视化管理与决策支持](https://blog.fit2cloud.com/?p=168d86c4-7483-456d-987c-91982393e50c)
|
||||
- [案例研究|柯尼卡美能达软件开发(大连)有限公司基于DataEase构筑内部数据可视化体系](https://blog.fit2cloud.com/?p=2e46436d-a023-4255-9ac5-253f8c26ee04)
|
||||
- [案例研究|DataEase助力无锡布勒业务数据可视化建设](https://blog.fit2cloud.com/?p=075bcf97-132f-4e79-b993-a1ec744859b5)
|
||||
- [案例研究|DataEase助力亚加达智能医学实验室场景BI展示](https://blog.fit2cloud.com/?p=e1d298cf-c239-438f-807c-19ab1e8bac20)
|
||||
- [案例研究|DataEase助力丹霞生物实现数据驱动的企业管理](https://blog.fit2cloud.com/?p=cdf2a37f-c11b-46cb-b287-8bc32dabd879)
|
674
installer/LICENSE
Normal file
674
installer/LICENSE
Normal file
@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
5
installer/README.md
Normal file
5
installer/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# DataEase 离线安装包制作工程
|
||||
|
||||
本工程用来制作 DataEase 离线安装包。
|
||||
|
||||
如需下载 DataEase 安装包,请移步:https://community.fit2cloud.com/#/products/dataease/downloads
|
24
installer/dataease/apisix/apisix_conf/config.yaml
Normal file
24
installer/dataease/apisix/apisix_conf/config.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
apisix:
|
||||
node_listen: 9080 # APISIX listening port
|
||||
enable_ipv6: false
|
||||
|
||||
enable_control: true
|
||||
control:
|
||||
ip: "0.0.0.0"
|
||||
port: 9092
|
||||
|
||||
deployment:
|
||||
admin:
|
||||
allow_admin:
|
||||
- 0.0.0.0/0
|
||||
|
||||
admin_key:
|
||||
- name: "admin"
|
||||
key: DE_APISIX_KEY
|
||||
role: admin
|
||||
|
||||
etcd:
|
||||
host:
|
||||
- "http://apisix-etcd:2379"
|
||||
prefix: "/apisix"
|
||||
timeout: 30
|
112
installer/dataease/apisix/dashboard_conf/conf.yaml
Normal file
112
installer/dataease/apisix/dashboard_conf/conf.yaml
Normal file
@ -0,0 +1,112 @@
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# this work for additional information regarding copyright ownership.
|
||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
# (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
conf:
|
||||
listen:
|
||||
host: 0.0.0.0 # `manager api` listening ip or host name
|
||||
port: 9000 # `manager api` listening port
|
||||
allow_list: # If we don't set any IP list, then any IP access is allowed by default.
|
||||
- 0.0.0.0/0
|
||||
etcd:
|
||||
endpoints: # supports defining multiple etcd host addresses for an etcd cluster
|
||||
- "http://apisix-etcd:2379"
|
||||
# yamllint disable rule:comments-indentation
|
||||
# etcd basic auth info
|
||||
# username: "root" # ignore etcd username if not enable etcd auth
|
||||
# password: "123456" # ignore etcd password if not enable etcd auth
|
||||
mtls:
|
||||
key_file: "" # Path of your self-signed client side key
|
||||
cert_file: "" # Path of your self-signed client side cert
|
||||
ca_file: "" # Path of your self-signed ca cert, the CA is used to sign callers' certificates
|
||||
# prefix: /apisix # apisix config's prefix in etcd, /apisix by default
|
||||
log:
|
||||
error_log:
|
||||
level: warn # supports levels, lower to higher: debug, info, warn, error, panic, fatal
|
||||
file_path:
|
||||
logs/error.log # supports relative path, absolute path, standard output
|
||||
# such as: logs/error.log, /tmp/logs/error.log, /dev/stdout, /dev/stderr
|
||||
access_log:
|
||||
file_path:
|
||||
logs/access.log # supports relative path, absolute path, standard output
|
||||
# such as: logs/access.log, /tmp/logs/access.log, /dev/stdout, /dev/stderr
|
||||
# log example: 2020-12-09T16:38:09.039+0800 INFO filter/logging.go:46 /apisix/admin/routes/r1 {"status": 401, "host": "127.0.0.1:9000", "query": "asdfsafd=adf&a=a", "requestId": "3d50ecb8-758c-46d1-af5b-cd9d1c820156", "latency": 0, "remoteIP": "127.0.0.1", "method": "PUT", "errs": []}
|
||||
security:
|
||||
# access_control_allow_origin: "http://httpbin.org"
|
||||
# access_control_allow_credentials: true # support using custom cors configuration
|
||||
# access_control_allow_headers: "Authorization"
|
||||
# access_control-allow_methods: "*"
|
||||
# x_frame_options: "deny"
|
||||
content_security_policy: "default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; frame-src *" # You can set frame-src to provide content for your grafana panel.
|
||||
|
||||
authentication:
|
||||
secret:
|
||||
secret # secret for jwt token generation.
|
||||
# NOTE: Highly recommended to modify this value to protect `manager api`.
|
||||
# if it's default value, when `manager api` start, it will generate a random string to replace it.
|
||||
expire_time: 3600 # jwt token expire time, in second
|
||||
users: # yamllint enable rule:comments-indentation
|
||||
- username: admin # username and password for login `manager api`
|
||||
password: Password123@apisix
|
||||
|
||||
plugins: # plugin list (sorted in alphabetical order)
|
||||
- api-breaker
|
||||
- authz-keycloak
|
||||
- basic-auth
|
||||
- batch-requests
|
||||
- consumer-restriction
|
||||
- cors
|
||||
- cas-auth
|
||||
# - dubbo-proxy
|
||||
- echo
|
||||
# - error-log-logger
|
||||
# - example-plugin
|
||||
- fault-injection
|
||||
- grpc-transcode
|
||||
- hmac-auth
|
||||
- http-logger
|
||||
- ip-restriction
|
||||
- jwt-auth
|
||||
- kafka-logger
|
||||
- key-auth
|
||||
- forward-auth
|
||||
- limit-conn
|
||||
- limit-count
|
||||
- limit-req
|
||||
# - log-rotate
|
||||
# - node-status
|
||||
- openid-connect
|
||||
- prometheus
|
||||
- proxy-cache
|
||||
- proxy-mirror
|
||||
- proxy-rewrite
|
||||
- redirect
|
||||
- referer-restriction
|
||||
- request-id
|
||||
- request-validation
|
||||
- response-rewrite
|
||||
- serverless-post-function
|
||||
- serverless-pre-function
|
||||
# - skywalking
|
||||
- sls-logger
|
||||
- syslog
|
||||
- tcp-logger
|
||||
- udp-logger
|
||||
- uri-blocker
|
||||
- wolf-rbac
|
||||
- zipkin
|
||||
- server-info
|
||||
- traffic-split
|
204
installer/dataease/apisix/plugins/cas-auth.lua
Normal file
204
installer/dataease/apisix/plugins/cas-auth.lua
Normal file
@ -0,0 +1,204 @@
|
||||
--
|
||||
---- Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
---- contributor license agreements. See the NOTICE file distributed with
|
||||
---- this work for additional information regarding copyright ownership.
|
||||
---- The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
---- (the "License"); you may not use this file except in compliance with
|
||||
---- the License. You may obtain a copy of the License at
|
||||
----
|
||||
---- http://www.apache.org/licenses/LICENSE-2.0
|
||||
----
|
||||
---- Unless required by applicable law or agreed to in writing, software
|
||||
---- distributed under the License is distributed on an "AS IS" BASIS,
|
||||
---- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
---- See the License for the specific language governing permissions and
|
||||
---- limitations under the License.
|
||||
----
|
||||
local core = require("apisix.core")
|
||||
local http = require("resty.http")
|
||||
local ngx = ngx
|
||||
local ngx_re_match = ngx.re.match
|
||||
local CAS_REQUEST_URI = "CAS_REQUEST_URI"
|
||||
local COOKIE_NAME = "CAS_SESSION"
|
||||
local COOKIE_PARAMS = "; Path=/; HttpOnly"
|
||||
local SESSION_LIFETIME = 3600
|
||||
local STORE_NAME = "cas_sessions"
|
||||
|
||||
local store = ngx.shared[STORE_NAME]
|
||||
|
||||
|
||||
local plugin_name = "cas-auth"
|
||||
local schema = {
|
||||
type = "object",
|
||||
properties = {
|
||||
idp_uri = {type = "string"},
|
||||
cas_callback_uri = {type = "string"},
|
||||
logout_uri = {type = "string"},
|
||||
cas_callback_domain={type="string"}
|
||||
},
|
||||
required = {
|
||||
"idp_uri", "cas_callback_uri", "logout_uri"
|
||||
}
|
||||
}
|
||||
|
||||
local _M = {
|
||||
version = 0.1,
|
||||
priority = 2597,
|
||||
name = plugin_name,
|
||||
schema = schema
|
||||
}
|
||||
|
||||
function _M.check_schema(conf)
|
||||
return core.schema.check(schema, conf)
|
||||
end
|
||||
|
||||
local function uri_without_ticket(conf, ctx)
|
||||
if conf.cas_callback_domain == nil then
|
||||
return ctx.var.scheme .. "://" .. ctx.var.host .. ":" ..
|
||||
ctx.var.server_port .. conf.cas_callback_uri
|
||||
else
|
||||
return conf.cas_callback_domain .. conf.cas_callback_uri
|
||||
end
|
||||
end
|
||||
|
||||
local function get_session_id(ctx)
|
||||
return ctx.var["cookie_" .. COOKIE_NAME]
|
||||
end
|
||||
|
||||
local function set_our_cookie(name, val)
|
||||
core.response.add_header("Set-Cookie", name .. "=" .. val .. COOKIE_PARAMS)
|
||||
end
|
||||
|
||||
local function first_access(conf, ctx)
|
||||
local login_uri = conf.idp_uri .. "/login?" ..
|
||||
ngx.encode_args({ service = uri_without_ticket(conf, ctx) })
|
||||
core.log.info("first access: ", login_uri,
|
||||
", cookie: ", ctx.var.http_cookie, ", request_uri: ", ctx.var.request_uri)
|
||||
set_our_cookie(CAS_REQUEST_URI, ctx.var.request_uri)
|
||||
core.response.set_header("Location", login_uri)
|
||||
return ngx.HTTP_MOVED_TEMPORARILY
|
||||
end
|
||||
|
||||
local function with_session_id(conf, ctx, session_id)
|
||||
-- does the cookie exist in our store?
|
||||
local user = store:get(session_id);
|
||||
core.log.info("ticket=", session_id, ", user=", user)
|
||||
if user == nil then
|
||||
set_our_cookie(COOKIE_NAME, "deleted; Max-Age=0")
|
||||
return first_access(conf, ctx)
|
||||
else
|
||||
-- refresh the TTL
|
||||
store:set(session_id, user, SESSION_LIFETIME)
|
||||
core.request.set_header("X-CAS-USER", user)
|
||||
end
|
||||
end
|
||||
|
||||
local function set_store_and_cookie(session_id, user)
|
||||
-- place cookie into cookie store
|
||||
local success, err, forcible = store:add(session_id, user, SESSION_LIFETIME)
|
||||
if success then
|
||||
if forcible then
|
||||
core.log.info("CAS cookie store is out of memory")
|
||||
end
|
||||
set_our_cookie(COOKIE_NAME, session_id)
|
||||
else
|
||||
if err == "no memory" then
|
||||
core.log.emerg("CAS cookie store is out of memory")
|
||||
elseif err == "exists" then
|
||||
core.log.error("Same CAS ticket validated twice, this should never happen!")
|
||||
else
|
||||
core.log.error("CAS cookie store: ", err)
|
||||
end
|
||||
end
|
||||
return success
|
||||
end
|
||||
|
||||
local function validate(conf, ctx, ticket)
|
||||
-- send a request to CAS to validate the ticket
|
||||
local httpc = http.new()
|
||||
local res, err = httpc:request_uri(conf.idp_uri ..
|
||||
"/serviceValidate",
|
||||
{ query = { ticket = ticket, service = uri_without_ticket(conf, ctx) } ,ssl_verify = false})
|
||||
|
||||
if res and res.status == ngx.HTTP_OK and res.body ~= nil then
|
||||
if core.string.find(res.body, "<cas:authenticationSuccess>") then
|
||||
local m = ngx_re_match(res.body, "<cas:user>(.*?)</cas:user>", "jo");
|
||||
if m then
|
||||
return m[1]
|
||||
end
|
||||
else
|
||||
core.log.info("CAS serviceValidate failed: ", res.body)
|
||||
end
|
||||
else
|
||||
core.log.error("validate ticket failed: status=", (res and res.status),
|
||||
", has_body=", (res and res.body ~= nil or false), ", err=", err)
|
||||
end
|
||||
return nil
|
||||
end
|
||||
|
||||
local function validate_with_cas(conf, ctx, ticket)
|
||||
local user = validate(conf, ctx, ticket)
|
||||
if user and set_store_and_cookie(ticket, user) then
|
||||
local request_uri = ctx.var["cookie_" .. CAS_REQUEST_URI]
|
||||
set_our_cookie(CAS_REQUEST_URI, "deleted; Max-Age=0")
|
||||
core.log.info("ticket: ", ticket,
|
||||
", cookie: ", ctx.var.http_cookie, ", request_uri: ", request_uri, ", user=", user)
|
||||
core.response.set_header("Location", request_uri)
|
||||
return ngx.HTTP_MOVED_TEMPORARILY
|
||||
else
|
||||
return ngx.HTTP_UNAUTHORIZED, {message = "invalid ticket"}
|
||||
end
|
||||
end
|
||||
|
||||
local function logout(conf, ctx)
|
||||
local session_id = get_session_id(ctx)
|
||||
if session_id == nil then
|
||||
return ngx.HTTP_UNAUTHORIZED
|
||||
end
|
||||
|
||||
core.log.info("logout: ticket=", session_id, ", cookie=", ctx.var.http_cookie)
|
||||
store:delete(session_id)
|
||||
set_our_cookie(COOKIE_NAME, "deleted; Max-Age=0")
|
||||
|
||||
core.response.set_header("Location", conf.idp_uri .. "/logout")
|
||||
return ngx.HTTP_MOVED_TEMPORARILY
|
||||
end
|
||||
|
||||
function _M.access(conf, ctx)
|
||||
local method = core.request.get_method()
|
||||
local uri = ctx.var.uri
|
||||
|
||||
if method == "GET" and uri == conf.logout_uri then
|
||||
return logout(conf, ctx)
|
||||
end
|
||||
|
||||
if method == "POST" and uri == conf.cas_callback_uri then
|
||||
local data = core.request.get_body()
|
||||
local ticket = data:match("<samlp:SessionIndex>(.*)</samlp:SessionIndex>")
|
||||
if ticket == nil then
|
||||
return ngx.HTTP_BAD_REQUEST,
|
||||
{message = "invalid logout request from IdP, no ticket"}
|
||||
end
|
||||
core.log.info("Back-channel logout (SLO) from IdP: LogoutRequest: ", data)
|
||||
local session_id = ticket
|
||||
local user = store:get(session_id);
|
||||
if user then
|
||||
store:delete(session_id)
|
||||
core.log.info("SLO: user=", user, ", tocket=", ticket)
|
||||
end
|
||||
else
|
||||
local session_id = get_session_id(ctx)
|
||||
if session_id ~= nil then
|
||||
return with_session_id(conf, ctx, session_id)
|
||||
end
|
||||
|
||||
local ticket = ctx.var.arg_ticket
|
||||
if ticket ~= nil and uri == conf.cas_callback_uri then
|
||||
return validate_with_cas(conf, ctx, ticket)
|
||||
else
|
||||
return first_access(conf, ctx)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return _M
|
419
installer/dataease/apisix/plugins/openid-connect.lua
Normal file
419
installer/dataease/apisix/plugins/openid-connect.lua
Normal file
@ -0,0 +1,419 @@
|
||||
--
|
||||
-- Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
-- contributor license agreements. See the NOTICE file distributed with
|
||||
-- this work for additional information regarding copyright ownership.
|
||||
-- The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
-- (the "License"); you may not use this file except in compliance with
|
||||
-- the License. You may obtain a copy of the License at
|
||||
--
|
||||
-- http://www.apache.org/licenses/LICENSE-2.0
|
||||
--
|
||||
-- Unless required by applicable law or agreed to in writing, software
|
||||
-- distributed under the License is distributed on an "AS IS" BASIS,
|
||||
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
-- See the License for the specific language governing permissions and
|
||||
-- limitations under the License.
|
||||
--
|
||||
|
||||
local core = require("apisix.core")
|
||||
local ngx_re = require("ngx.re")
|
||||
local openidc = require("resty.openidc")
|
||||
local random = require("resty.random")
|
||||
local string = string
|
||||
local ngx = ngx
|
||||
|
||||
local ngx_encode_base64 = ngx.encode_base64
|
||||
|
||||
local plugin_name = "openid-connect"
|
||||
|
||||
|
||||
local schema = {
|
||||
type = "object",
|
||||
properties = {
|
||||
client_id = {type = "string"},
|
||||
client_secret = {type = "string"},
|
||||
discovery = {type = "string"},
|
||||
scope = {
|
||||
type = "string",
|
||||
default = "openid",
|
||||
},
|
||||
ssl_verify = {
|
||||
type = "boolean",
|
||||
default = false,
|
||||
},
|
||||
timeout = {
|
||||
type = "integer",
|
||||
minimum = 1,
|
||||
default = 3,
|
||||
description = "timeout in seconds",
|
||||
},
|
||||
introspection_endpoint = {
|
||||
type = "string"
|
||||
},
|
||||
introspection_endpoint_auth_method = {
|
||||
type = "string",
|
||||
default = "client_secret_basic"
|
||||
},
|
||||
bearer_only = {
|
||||
type = "boolean",
|
||||
default = false,
|
||||
},
|
||||
session = {
|
||||
type = "object",
|
||||
properties = {
|
||||
secret = {
|
||||
type = "string",
|
||||
description = "the key used for the encrypt and HMAC calculation",
|
||||
minLength = 16,
|
||||
},
|
||||
},
|
||||
required = {"secret"},
|
||||
additionalProperties = false,
|
||||
},
|
||||
realm = {
|
||||
type = "string",
|
||||
default = "",
|
||||
},
|
||||
logout_path = {
|
||||
type = "string",
|
||||
default = "/logout",
|
||||
},
|
||||
redirect_uri = {
|
||||
type = "string",
|
||||
description = "use ngx.var.request_uri if not configured"
|
||||
},
|
||||
post_logout_redirect_uri = {
|
||||
type = "string",
|
||||
description = "the URI will be redirect when request logout_path",
|
||||
},
|
||||
unauth_action = {
|
||||
type = "string",
|
||||
default = "auth",
|
||||
enum = {"auth", "deny", "pass"},
|
||||
description = "The action performed when client is not authorized. Use auth to " ..
|
||||
"redirect user to identity provider, deny to respond with 401 Unauthorized, and " ..
|
||||
"pass to allow the request regardless."
|
||||
},
|
||||
public_key = {type = "string"},
|
||||
token_signing_alg_values_expected = {type = "string"},
|
||||
use_pkce = {
|
||||
description = "when set to true the PKEC(Proof Key for Code Exchange) will be used.",
|
||||
type = "boolean",
|
||||
default = false
|
||||
},
|
||||
set_access_token_header = {
|
||||
description = "Whether the access token should be added as a header to the request " ..
|
||||
"for downstream",
|
||||
type = "boolean",
|
||||
default = true
|
||||
},
|
||||
access_token_in_authorization_header = {
|
||||
description = "Whether the access token should be added in the Authorization " ..
|
||||
"header as opposed to the X-Access-Token header.",
|
||||
type = "boolean",
|
||||
default = false
|
||||
},
|
||||
set_id_token_header = {
|
||||
description = "Whether the ID token should be added in the X-ID-Token header to " ..
|
||||
"the request for downstream.",
|
||||
type = "boolean",
|
||||
default = true
|
||||
},
|
||||
set_userinfo_header = {
|
||||
description = "Whether the user info token should be added in the X-Userinfo " ..
|
||||
"header to the request for downstream.",
|
||||
type = "boolean",
|
||||
default = true
|
||||
},
|
||||
set_refresh_token_header = {
|
||||
description = "Whether the refresh token should be added in the X-Refresh-Token " ..
|
||||
"header to the request for downstream.",
|
||||
type = "boolean",
|
||||
default = false
|
||||
},
|
||||
proxy_opts = {
|
||||
description = "HTTP proxy server be used to access identity server.",
|
||||
type = "object",
|
||||
properties = {
|
||||
http_proxy = {
|
||||
type = "string",
|
||||
description = "HTTP proxy like: http://proxy-server:80.",
|
||||
},
|
||||
https_proxy = {
|
||||
type = "string",
|
||||
description = "HTTPS proxy like: http://proxy-server:80.",
|
||||
},
|
||||
http_proxy_authorization = {
|
||||
type = "string",
|
||||
description = "Basic [base64 username:password].",
|
||||
},
|
||||
https_proxy_authorization = {
|
||||
type = "string",
|
||||
description = "Basic [base64 username:password].",
|
||||
},
|
||||
no_proxy = {
|
||||
type = "string",
|
||||
description = "Comma separated list of hosts that should not be proxied.",
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
encrypt_fields = {"client_secret"},
|
||||
required = {"client_id", "client_secret", "discovery"}
|
||||
}
|
||||
|
||||
|
||||
local _M = {
|
||||
version = 0.2,
|
||||
priority = 2599,
|
||||
name = plugin_name,
|
||||
schema = schema,
|
||||
}
|
||||
|
||||
|
||||
function _M.check_schema(conf)
|
||||
if conf.ssl_verify == "no" then
|
||||
-- we used to set 'ssl_verify' to "no"
|
||||
conf.ssl_verify = false
|
||||
end
|
||||
|
||||
if not conf.bearer_only and not conf.session then
|
||||
core.log.warn("when bearer_only = false, " ..
|
||||
"you'd better complete the session configuration manually")
|
||||
conf.session = {
|
||||
-- generate a secret when bearer_only = false and no secret is configured
|
||||
secret = ngx_encode_base64(random.bytes(32, true) or random.bytes(32))
|
||||
}
|
||||
end
|
||||
|
||||
local ok, err = core.schema.check(schema, conf)
|
||||
if not ok then
|
||||
return false, err
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
local function get_bearer_access_token(ctx)
|
||||
-- Get Authorization header, maybe.
|
||||
local auth_header = core.request.header(ctx, "Authorization")
|
||||
if not auth_header then
|
||||
-- No Authorization header, get X-Access-Token header, maybe.
|
||||
local access_token_header = core.request.header(ctx, "X-Access-Token")
|
||||
if not access_token_header then
|
||||
-- No X-Access-Token header neither.
|
||||
return false, nil, nil
|
||||
end
|
||||
|
||||
-- Return extracted header value.
|
||||
return true, access_token_header, nil
|
||||
end
|
||||
|
||||
-- Check format of Authorization header.
|
||||
local res, err = ngx_re.split(auth_header, " ", nil, nil, 2)
|
||||
|
||||
if not res then
|
||||
-- No result was returned.
|
||||
return false, nil, err
|
||||
elseif #res < 2 then
|
||||
-- Header doesn't split into enough tokens.
|
||||
return false, nil, "Invalid Authorization header format."
|
||||
end
|
||||
|
||||
if string.lower(res[1]) == "bearer" then
|
||||
-- Return extracted token.
|
||||
return true, res[2], nil
|
||||
end
|
||||
|
||||
return false, nil, nil
|
||||
end
|
||||
|
||||
|
||||
local function introspect(ctx, conf)
|
||||
-- Extract token, maybe.
|
||||
local has_token, token, err = get_bearer_access_token(ctx)
|
||||
|
||||
if err then
|
||||
return ngx.HTTP_BAD_REQUEST, err, nil, nil
|
||||
end
|
||||
|
||||
if not has_token then
|
||||
-- Could not find token.
|
||||
|
||||
if conf.bearer_only then
|
||||
-- Token strictly required in request.
|
||||
ngx.header["WWW-Authenticate"] = 'Bearer realm="' .. conf.realm .. '"'
|
||||
return ngx.HTTP_UNAUTHORIZED, "No bearer token found in request.", nil, nil
|
||||
else
|
||||
-- Return empty result.
|
||||
return nil, nil, nil, nil
|
||||
end
|
||||
end
|
||||
|
||||
-- If we get here, token was found in request.
|
||||
|
||||
if conf.public_key or conf.use_jwks then
|
||||
-- Validate token against public key or jwks document of the oidc provider.
|
||||
-- TODO: In the called method, the openidc module will try to extract
|
||||
-- the token by itself again -- from a request header or session cookie.
|
||||
-- It is inefficient that we also need to extract it (just from headers)
|
||||
-- so we can add it in the configured header. Find a way to use openidc
|
||||
-- module's internal methods to extract the token.
|
||||
local res, err = openidc.bearer_jwt_verify(conf)
|
||||
|
||||
if err then
|
||||
-- Error while validating or token invalid.
|
||||
ngx.header["WWW-Authenticate"] = 'Bearer realm="' .. conf.realm ..
|
||||
'", error="invalid_token", error_description="' .. err .. '"'
|
||||
return ngx.HTTP_UNAUTHORIZED, err, nil, nil
|
||||
end
|
||||
|
||||
-- Token successfully validated.
|
||||
local method = (conf.public_key and "public_key") or (conf.use_jwks and "jwks")
|
||||
core.log.debug("token validate successfully by ", method)
|
||||
return res, err, token, res
|
||||
else
|
||||
-- Validate token against introspection endpoint.
|
||||
-- TODO: Same as above for public key validation.
|
||||
local res, err = openidc.introspect(conf)
|
||||
|
||||
if err then
|
||||
ngx.header["WWW-Authenticate"] = 'Bearer realm="' .. conf.realm ..
|
||||
'", error="invalid_token", error_description="' .. err .. '"'
|
||||
return ngx.HTTP_UNAUTHORIZED, err, nil, nil
|
||||
end
|
||||
|
||||
-- Token successfully validated and response from the introspection
|
||||
-- endpoint contains the userinfo.
|
||||
core.log.debug("token validate successfully by introspection")
|
||||
return res, err, token, res
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
local function add_access_token_header(ctx, conf, token)
|
||||
if token then
|
||||
-- Add Authorization or X-Access-Token header, respectively, if not already set.
|
||||
if conf.set_access_token_header then
|
||||
if conf.access_token_in_authorization_header then
|
||||
if not core.request.header(ctx, "Authorization") then
|
||||
-- Add Authorization header.
|
||||
core.request.set_header(ctx, "Authorization", "Bearer " .. token)
|
||||
end
|
||||
else
|
||||
if not core.request.header(ctx, "X-Access-Token") then
|
||||
-- Add X-Access-Token header.
|
||||
core.request.set_header(ctx, "X-Access-Token", token)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function _M.rewrite(plugin_conf, ctx)
|
||||
local conf = core.table.clone(plugin_conf)
|
||||
|
||||
-- Previously, we multiply conf.timeout before storing it in etcd.
|
||||
-- If the timeout is too large, we should not multiply it again.
|
||||
if not (conf.timeout >= 1000 and conf.timeout % 1000 == 0) then
|
||||
conf.timeout = conf.timeout * 1000
|
||||
end
|
||||
|
||||
if not conf.redirect_uri then
|
||||
conf.redirect_uri = ctx.var.request_uri
|
||||
end
|
||||
|
||||
if not conf.ssl_verify then
|
||||
-- openidc use "no" to disable ssl verification
|
||||
conf.ssl_verify = "no"
|
||||
end
|
||||
|
||||
local response, err, session, _
|
||||
|
||||
if conf.bearer_only or conf.introspection_endpoint or conf.public_key then
|
||||
-- An introspection endpoint or a public key has been configured. Try to
|
||||
-- validate the access token from the request, if it is present in a
|
||||
-- request header. Otherwise, return a nil response. See below for
|
||||
-- handling of the case where the access token is stored in a session cookie.
|
||||
local access_token, userinfo
|
||||
response, err, access_token, userinfo = introspect(ctx, conf)
|
||||
|
||||
if err then
|
||||
-- Error while validating token or invalid token.
|
||||
core.log.error("OIDC introspection failed: ", err)
|
||||
return response
|
||||
end
|
||||
|
||||
if response then
|
||||
-- Add configured access token header, maybe.
|
||||
add_access_token_header(ctx, conf, access_token)
|
||||
|
||||
if userinfo and conf.set_userinfo_header then
|
||||
-- Set X-Userinfo header to introspection endpoint response.
|
||||
core.request.set_header(ctx, "X-Userinfo",
|
||||
ngx_encode_base64(core.json.encode(userinfo)))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if not response then
|
||||
-- Either token validation via introspection endpoint or public key is
|
||||
-- not configured, and/or token could not be extracted from the request.
|
||||
|
||||
local unauth_action = conf.unauth_action
|
||||
if unauth_action ~= "auth" then
|
||||
unauth_action = "deny"
|
||||
end
|
||||
|
||||
-- Authenticate the request. This will validate the access token if it
|
||||
-- is stored in a session cookie, and also renew the token if required.
|
||||
-- If no token can be extracted, the response will redirect to the ID
|
||||
-- provider's authorization endpoint to initiate the Relying Party flow.
|
||||
-- This code path also handles when the ID provider then redirects to
|
||||
-- the configured redirect URI after successful authentication.
|
||||
response, err, _, session = openidc.authenticate(conf, nil, unauth_action, conf.session)
|
||||
|
||||
if err then
|
||||
if err == "unauthorized request" then
|
||||
if conf.unauth_action == "pass" then
|
||||
return nil
|
||||
end
|
||||
return 401
|
||||
end
|
||||
core.log.error("OIDC authentication failed: ", err)
|
||||
return 500
|
||||
end
|
||||
|
||||
if response then
|
||||
-- If the openidc module has returned a response, it may contain,
|
||||
-- respectively, the access token, the ID token, the refresh token,
|
||||
-- and the userinfo.
|
||||
-- Add respective headers to the request, if so configured.
|
||||
|
||||
-- Add configured access token header, maybe.
|
||||
add_access_token_header(ctx, conf, response.access_token)
|
||||
|
||||
-- Add X-ID-Token header, maybe.
|
||||
if response.id_token and conf.set_id_token_header then
|
||||
local token = core.json.encode(response.id_token)
|
||||
core.request.set_header(ctx, "X-ID-Token", ngx.encode_base64(token))
|
||||
end
|
||||
|
||||
-- Add X-Userinfo header, maybe.
|
||||
if response.user and conf.set_userinfo_header then
|
||||
core.request.set_header(ctx, "X-Userinfo",
|
||||
ngx_encode_base64(core.json.encode(response.user)))
|
||||
end
|
||||
|
||||
-- Add X-Refresh-Token header, maybe.
|
||||
if session.data.refresh_token and conf.set_refresh_token_header then
|
||||
core.request.set_header(ctx, "X-Refresh-Token", session.data.refresh_token)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
return _M
|
17
installer/dataease/bin/dataease/dataease.service
Normal file
17
installer/dataease/bin/dataease/dataease.service
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=DataEase Service
|
||||
After=docker.service
|
||||
Requires=docker.service
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/dectl start
|
||||
ExecStop=/usr/bin/dectl stop
|
||||
ExecReload=/usr/bin/dectl reload
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
1
installer/dataease/bin/mysql/init.sql
Normal file
1
installer/dataease/bin/mysql/init.sql
Normal file
@ -0,0 +1 @@
|
||||
CREATE DATABASE `dataease` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;
|
44
installer/dataease/docker-compose-apisix.yml
Normal file
44
installer/dataease/docker-compose-apisix.yml
Normal file
@ -0,0 +1,44 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
apisix-dashboard:
|
||||
image: registry.cn-qingdao.aliyuncs.com/dataease/apisix-dashboard:3.0.1-alpine
|
||||
container_name: apisix-dashboard
|
||||
restart: always
|
||||
volumes:
|
||||
- ${DE_BASE}/dataease2.0/apisix/dashboard_conf/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml
|
||||
ports:
|
||||
- ${DE_APISIX_DASHBOARD_PORT}:9000
|
||||
networks:
|
||||
dataease-network:
|
||||
|
||||
apisix:
|
||||
image: registry.cn-qingdao.aliyuncs.com/dataease/apisix:3.6.0-debian
|
||||
container_name: apisix
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
restart: always
|
||||
volumes:
|
||||
- ${DE_BASE}/dataease2.0/apisix/apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro
|
||||
- ${DE_BASE}/dataease2.0/apisix/logs:/usr/local/apisix/logs
|
||||
- ${DE_BASE}/dataease2.0/apisix/plugins/cas-auth.lua:/usr/local/apisix/apisix/plugins/cas-auth.lua
|
||||
- ${DE_BASE}/dataease2.0/apisix/plugins/openid-connect.lua:/usr/local/apisix/apisix/plugins/openid-connect.lua
|
||||
depends_on:
|
||||
- etcd
|
||||
ports:
|
||||
- ${DE_APISIX_PORT}:9080
|
||||
networks:
|
||||
dataease-network:
|
||||
|
||||
etcd:
|
||||
image: registry.cn-qingdao.aliyuncs.com/dataease/etcd:3.5.10
|
||||
container_name: apisix-etcd
|
||||
restart: always
|
||||
volumes:
|
||||
- ${DE_BASE}/dataease2.0/data/etcd_data:/bitnami/etcd
|
||||
environment:
|
||||
ETCD_ENABLE_V2: "true"
|
||||
ALLOW_NONE_AUTHENTICATION: "yes"
|
||||
ETCD_ADVERTISE_CLIENT_URLS: "http://apisix-etcd:2379"
|
||||
networks:
|
||||
dataease-network:
|
19
installer/dataease/docker-compose-mysql.yml
Normal file
19
installer/dataease/docker-compose-mysql.yml
Normal file
@ -0,0 +1,19 @@
|
||||
version: '3'
|
||||
services:
|
||||
|
||||
DE_MYSQL_HOST:
|
||||
image: registry.cn-qingdao.aliyuncs.com/dataease/mysql:8.4.0
|
||||
container_name: ${DE_MYSQL_HOST}
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-u${DE_MYSQL_USER}", "-p${DE_MYSQL_PASSWORD}", "--protocol","tcp"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
env_file:
|
||||
- ${DE_BASE}/dataease2.0/conf/mysql.env
|
||||
volumes:
|
||||
- ${DE_BASE}/dataease2.0/conf/my.cnf:/etc/mysql/conf.d/my.cnf
|
||||
- ${DE_BASE}/dataease2.0/bin/mysql:/docker-entrypoint-initdb.d/
|
||||
- ${DE_BASE}/dataease2.0/data/mysql:/var/lib/mysql
|
||||
networks:
|
||||
- dataease-network
|
19
installer/dataease/docker-compose-selenium.yml
Normal file
19
installer/dataease/docker-compose-selenium.yml
Normal file
@ -0,0 +1,19 @@
|
||||
version: '3'
|
||||
services:
|
||||
de-selenium:
|
||||
image: registry.cn-qingdao.aliyuncs.com/dataease/standalone-chromium:123.0
|
||||
container_name: de-selenium
|
||||
shm_size: 2gb
|
||||
privileged: true
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: ${DE_SELENIUM_CPU_LIMIT}
|
||||
memory: ${DE_SELENIUM_MEM_LIMIT}
|
||||
environment:
|
||||
- SE_ENABLE_BROWSER_LEFTOVERS_CLEANUP=true
|
||||
- SE_NODE_OVERRIDE_MAX_SESSIONS=true
|
||||
- SE_NODE_MAX_SESSIONS=5
|
||||
- TZ=Asia/Shanghai
|
||||
networks:
|
||||
- dataease-network
|
9
installer/dataease/docker-compose-task.yml
Normal file
9
installer/dataease/docker-compose-task.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3'
|
||||
services:
|
||||
task-actuator:
|
||||
image: registry.cn-qingdao.aliyuncs.com/dataease/dataease-sync-task:DE_TAG
|
||||
container_name: sync-task-actuator
|
||||
volumes:
|
||||
- ${DE_BASE}/dataease2.0/logs:/opt/dataease2.0/logs
|
||||
networks:
|
||||
- dataease-network
|
30
installer/dataease/docker-compose.yml
Normal file
30
installer/dataease/docker-compose.yml
Normal file
@ -0,0 +1,30 @@
|
||||
version: '3'
|
||||
services:
|
||||
|
||||
dataease:
|
||||
image: registry.cn-qingdao.aliyuncs.com/dataease/dataease:DE_TAG
|
||||
stop_signal: SIGTERM
|
||||
stop_grace_period: 15s
|
||||
container_name: dataease
|
||||
ports:
|
||||
- ${DE_PORT}:8100
|
||||
volumes:
|
||||
- ${DE_BASE}/dataease2.0/conf:/opt/apps/config
|
||||
- ${DE_BASE}/dataease2.0/logs:/opt/dataease2.0/logs
|
||||
- ${DE_BASE}/dataease2.0/data/static-resource:/opt/dataease2.0/data/static-resource
|
||||
- ${DE_BASE}/dataease2.0/cache:/opt/dataease2.0/cache
|
||||
- ${DE_BASE}/dataease2.0/data/geo:/opt/dataease2.0/data/geo
|
||||
- ${DE_BASE}/dataease2.0/data/appearance:/opt/dataease2.0/data/appearance
|
||||
- ${DE_BASE}/dataease2.0/data/exportData:/opt/dataease2.0/data/exportData
|
||||
- ${DE_BASE}/dataease2.0/data/plugin:/opt/dataease2.0/data/plugin
|
||||
- ${DE_BASE}/dataease2.0/data/font:/opt/dataease2.0/data/font
|
||||
- ${DE_BASE}/dataease2.0/data/i18n:/opt/dataease2.0/data/i18n
|
||||
- ${DE_BASE}/dataease2.0/logs/dataease/sync-task:/opt/dataease2.0/logs/sync-task
|
||||
depends_on:
|
||||
DE_MYSQL_HOST:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- dataease-network
|
||||
|
||||
networks:
|
||||
dataease-network:
|
32
installer/dataease/templates/application.yml
Normal file
32
installer/dataease/templates/application.yml
Normal file
@ -0,0 +1,32 @@
|
||||
server:
|
||||
tomcat:
|
||||
connection-timeout: 70000
|
||||
servlet:
|
||||
context-path: ${DE_CONTEXT_PATH}
|
||||
spring:
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 500MB
|
||||
max-request-size: 500MB
|
||||
datasource:
|
||||
url: jdbc:mysql://${DE_MYSQL_HOST}:${DE_MYSQL_PORT}/${DE_MYSQL_DB}?${DE_MYSQL_PARAMS}
|
||||
username: ${DE_MYSQL_USER}
|
||||
password: ${DE_MYSQL_PASSWORD}
|
||||
dataease:
|
||||
apisix-api:
|
||||
domain: http://apisix:9180
|
||||
key: DE_APISIX_KEY
|
||||
export:
|
||||
views:
|
||||
limit: ${DE_EXPORT_VIEWS_LIMIT}
|
||||
dataset:
|
||||
limit: ${DE_EXPORT_DATASET_LIMIT}
|
||||
origin-list: ${DE_ORIGIN_LIST}
|
||||
login_timeout: ${DE_LOGIN_TIMEOUT}
|
||||
selenium-server: ${DE_SELENIUM_SERVER}
|
||||
dataease-servers: ${DE_SERVERS}
|
||||
task:
|
||||
executor:
|
||||
address: http://sync-task-actuator:9001
|
||||
log:
|
||||
path: /opt/dataease2.0/logs/sync-task/task-handler-log
|
27
installer/dataease/templates/my.cnf
Normal file
27
installer/dataease/templates/my.cnf
Normal file
@ -0,0 +1,27 @@
|
||||
[mysqld]
|
||||
datadir=/var/lib/mysql
|
||||
|
||||
default-storage-engine=INNODB
|
||||
character_set_server=utf8
|
||||
#lower_case_table_names=1
|
||||
table_open_cache=128
|
||||
max_connections=2000
|
||||
max_connect_errors=6000
|
||||
innodb_file_per_table=1
|
||||
innodb_buffer_pool_size=1G
|
||||
max_allowed_packet=64M
|
||||
transaction_isolation=READ-COMMITTED
|
||||
innodb_flush_method=O_DIRECT
|
||||
innodb_lock_wait_timeout=1800
|
||||
innodb_flush_log_at_trx_commit=0
|
||||
sync_binlog=0
|
||||
|
||||
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
|
||||
|
||||
skip-name-resolve
|
||||
|
||||
[mysql]
|
||||
default-character-set=utf8
|
||||
|
||||
[mysql.server]
|
||||
default-character-set=utf8
|
1
installer/dataease/templates/mysql.env
Normal file
1
installer/dataease/templates/mysql.env
Normal file
@ -0,0 +1 @@
|
||||
MYSQL_ROOT_PASSWORD=${DE_MYSQL_PASSWORD}
|
428
installer/dectl
Normal file
428
installer/dectl
Normal file
@ -0,0 +1,428 @@
|
||||
#!/bin/bash
|
||||
action=$1
|
||||
target=$2
|
||||
|
||||
DE_BASE=/opt
|
||||
DE_RUNNING_BASE=${DE_BASE}/dataease2.0
|
||||
need_init_apisix=false
|
||||
compose_files="-f docker-compose.yml"
|
||||
compose_cmd="docker-compose"
|
||||
server_url=""
|
||||
current_version=""
|
||||
latest_version=""
|
||||
|
||||
set -a
|
||||
source ${DE_RUNNING_BASE}/.env
|
||||
set +a
|
||||
export COMPOSE_HTTP_TIMEOUT=180
|
||||
|
||||
docker-compose version >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
docker compose version >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
compose_cmd="docker compose"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ! ${DE_EXTERNAL_MYSQL} ]] || [ "${DE_EXTERNAL_MYSQL}" = "false" ]; then
|
||||
compose_files="${compose_files} -f docker-compose-mysql.yml"
|
||||
fi
|
||||
|
||||
function usage() {
|
||||
echo "DATAEASE 控制脚本"
|
||||
echo
|
||||
echo "Usage: "
|
||||
echo " ./dectl [COMMAND] [ARGS...]"
|
||||
echo " ./dectl --help"
|
||||
echo
|
||||
echo "Commands: "
|
||||
echo " status 查看 DATAEASE 服务运行状态"
|
||||
echo " start 启动 DATAEASE 服务"
|
||||
echo " stop 停止 DATAEASE 服务"
|
||||
echo " restart 重启 DATAEASE 服务"
|
||||
echo " reload 重新加载 DATAEASE 服务"
|
||||
echo " upgrade 升级 DATAEASE 服务"
|
||||
echo " backup 备份 DATAEASE 服务"
|
||||
echo " restore xxx.tar.gz 还原 DATAEASE 服务"
|
||||
echo " clear-images 清理 DATAEASE 旧版本的相关镜像"
|
||||
echo " version 查看 DATAEASE 版本"
|
||||
}
|
||||
function _generate_compose_file_args() {
|
||||
if [[ $DE_INSTALL_MODE != "community" ]];then
|
||||
if [[ -f $DE_RUNNING_BASE/docker-compose-apisix.yml ]] && [[ "$DE_EXTERNAL_APISIX" != "true" ]];then
|
||||
compose_files="${compose_files} -f docker-compose-apisix.yml"
|
||||
fi
|
||||
|
||||
if [[ -f $DE_RUNNING_BASE/docker-compose-task.yml ]] && [[ "$DE_EXTERNAL_SYNC_TASK" != "true" ]];then
|
||||
compose_files="${compose_files} -f docker-compose-task.yml"
|
||||
fi
|
||||
|
||||
if [[ -f $DE_RUNNING_BASE/docker-compose-selenium.yml ]] && [[ "$DE_EXTERNAL_SELENIUM" != "true" ]];then
|
||||
compose_files="${compose_files} -f docker-compose-selenium.yml"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
function _check_apisix_init() {
|
||||
if [[ $DE_INSTALL_MODE != "community" ]] && [[ "$DE_EXTERNAL_APISIX" != "true" ]];then
|
||||
_prepare_apisix
|
||||
fi
|
||||
}
|
||||
function _prepare_apisix() {
|
||||
if [[ -z $DE_APISIX_KEY ]];then
|
||||
need_init_apisix=true
|
||||
DE_APISIX_KEY=$(head -c 32 /dev/urandom | base64 | sed 's#/#+#g')
|
||||
export DE_APISIX_KEY=$DE_APISIX_KEY
|
||||
cd $DE_RUNNING_BASE
|
||||
env | grep DE_ >.env
|
||||
sed -i -e "s/DE_APISIX_KEY/${DE_APISIX_KEY}/g" $DE_RUNNING_BASE/apisix/apisix_conf/config.yaml
|
||||
sed -i -e "s/DE_APISIX_KEY/${DE_APISIX_KEY}/g" $DE_RUNNING_BASE/conf/application.yml
|
||||
fi
|
||||
}
|
||||
function _healthcheck() {
|
||||
echo
|
||||
container_name=$(grep "container_name" $DE_RUNNING_BASE/docker-compose.yml | awk -F': ' '{print $2}')
|
||||
sleep 1
|
||||
if [ -z $(docker ps --filter "name=$container_name" -q) ];then
|
||||
echo "未找到容器 $container_name。"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for b in {1..90}
|
||||
do
|
||||
sleep 1
|
||||
read status healthy<<<$(docker inspect $container_name --format '{{.State.Status}} {{.State.Health.Status}}')
|
||||
if [[ "$healthy" == "starting" ]];then
|
||||
printf "\rDataEase 服务状态 : 正在启动 ... %3ds" $b
|
||||
elif [[ "$status" == "running" ]] && [[ "$healthy" == "healthy" ]];then
|
||||
printf "\rDataEase 服务状态 : 正常运行 "
|
||||
echo
|
||||
return;
|
||||
else
|
||||
echo
|
||||
echo -e "DataEase 服务状态 : \033[31m无法访问\033[0m"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
echo
|
||||
echo "【警告】服务在等待时间内未完全启动!请稍后使用 dectl status 检查服务运行状况。"
|
||||
echo
|
||||
}
|
||||
function _get_current_version() {
|
||||
de_current_version=$(grep "^ image:.*dataease:" ${DE_RUNNING_BASE}/docker-compose.yml | awk -F'dataease:' '{print $2}')
|
||||
if test -z $de_current_version; then
|
||||
echo "获取当前版本失败,请检查当前版本是否正确"
|
||||
exit 1
|
||||
fi
|
||||
current_version=$de_current_version
|
||||
}
|
||||
function _get_available_server() {
|
||||
git_urls=('github.com')
|
||||
|
||||
for git_url in ${git_urls[*]}; do
|
||||
echo -ne "检测 ${git_url} ... "
|
||||
curl -m 5 -kIs https://${git_url} >/dev/null
|
||||
if [ $? != 0 ]; then
|
||||
echo "failed"
|
||||
else
|
||||
echo "ok"
|
||||
server_url=${git_url}
|
||||
break
|
||||
fi
|
||||
done
|
||||
}
|
||||
function _get_latest_version() {
|
||||
rm -f /tmp/de_latest_release
|
||||
|
||||
_get_available_server
|
||||
if [[ "x${server_url}" == "x" ]];then
|
||||
echo "无法连接版本服务器,请稍候重试"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -x "$(command -v python)" ]]; then
|
||||
py_cmd='python'
|
||||
elif [[ -x "$(command -v python3)" ]]; then
|
||||
py_cmd='python3'
|
||||
fi
|
||||
|
||||
$py_cmd - <<EOF
|
||||
# -*- coding: UTF-8 -*-
|
||||
import os
|
||||
import json
|
||||
import re
|
||||
|
||||
latest_release=""
|
||||
release_pattern="v2\.\d+\.\d+$"
|
||||
|
||||
def get_releases(page):
|
||||
try:
|
||||
releases=os.popen("curl -s https://api.github.com/repos/dataease/dataease/releases?page=%d" % (page)).read()
|
||||
releases=[ x["name"] for x in json.loads(releases) if x["prerelease"] == False ]
|
||||
except Exception as e:
|
||||
print(str(e))
|
||||
print("Failed to obtain Release information, please check the network.")
|
||||
exit(1)
|
||||
else:
|
||||
for release in releases:
|
||||
if re.search(release_pattern,release) != None:
|
||||
return release
|
||||
|
||||
page = 1
|
||||
while (page <= 3):
|
||||
latest_release = get_releases(page)
|
||||
if (latest_release != "" and latest_release != None):
|
||||
break
|
||||
page += 1
|
||||
|
||||
if latest_release == None or latest_release == "":
|
||||
print("Failed to obtain latest version, please try again.")
|
||||
exit(1)
|
||||
|
||||
# 记录最新版本号
|
||||
os.popen("echo "+latest_release+" > /tmp/de_latest_release")
|
||||
EOF
|
||||
|
||||
if [ ! -f /tmp/de_latest_release ]; then
|
||||
echo "获取最新版本失败,请检查网络连接是否正常"
|
||||
exit 1
|
||||
fi
|
||||
latest_version=$(cat /tmp/de_latest_release)
|
||||
}
|
||||
function status() {
|
||||
echo
|
||||
echo "DataEase 容器运行状态"
|
||||
_generate_compose_file_args
|
||||
cd ${DE_RUNNING_BASE}
|
||||
${compose_cmd} ${compose_files} ps
|
||||
|
||||
echo
|
||||
docker_root_dir=$(docker info | grep "Docker Root Dir" | awk -F': ' '{print $2}')
|
||||
echo "Docker 目录及文件大小 : "
|
||||
du -sh $docker_root_dir
|
||||
echo
|
||||
echo "Docker 目录所在磁盘使用情况 : "
|
||||
df -H $docker_root_dir
|
||||
|
||||
echo
|
||||
echo "日志文件大小 : "
|
||||
du -Sh ${DE_RUNNING_BASE}/logs/
|
||||
|
||||
echo
|
||||
echo "DataEase 运行目录及文件大小 : "
|
||||
du -sh ${DE_BASE}
|
||||
echo
|
||||
echo "DataEase 运行目录使用情况 : "
|
||||
df -H ${DE_BASE}
|
||||
|
||||
_healthcheck
|
||||
}
|
||||
function start() {
|
||||
echo
|
||||
_check_apisix_init
|
||||
_generate_compose_file_args
|
||||
cd ${DE_RUNNING_BASE}
|
||||
${compose_cmd} ${compose_files} up -d
|
||||
_healthcheck
|
||||
}
|
||||
function stop() {
|
||||
echo
|
||||
_generate_compose_file_args
|
||||
cd ${DE_RUNNING_BASE}
|
||||
${compose_cmd} ${compose_files} down -v ${target}
|
||||
}
|
||||
function restart() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
function reload() {
|
||||
start
|
||||
}
|
||||
function version() {
|
||||
echo
|
||||
_get_current_version
|
||||
echo "current version is $current_version"
|
||||
_get_latest_version
|
||||
echo "latest version is $latest_version"
|
||||
}
|
||||
function upgrade() {
|
||||
version
|
||||
|
||||
if [ "${latest_version}" = "" ]; then
|
||||
echo "未获取到最新版本"
|
||||
exit 1
|
||||
elif [ "${latest_version}" = "${current_version}" ]; then
|
||||
echo "最新版本与当前版本一致,退出升级过程"
|
||||
exit 0
|
||||
else
|
||||
if [[ ! "$latest_version" =~ ^v2.* ]];then
|
||||
echo "获取到的最新版本与当前版本不匹配,请访问 https://community.fit2cloud.com/#/products/dataease/downloads 下载离线安装包"
|
||||
exit 1
|
||||
else
|
||||
echo "检测到 ${server_url} 上最新版本为 ${latest_version} 即将执行在线升级..."
|
||||
fi
|
||||
fi
|
||||
sleep 2
|
||||
|
||||
echo "开始下载最新版本..."
|
||||
echo "使用下载服务器 ${server_url}"
|
||||
cd /tmp
|
||||
|
||||
installer_file="dataease-online-installer-${latest_version}-ce.tar.gz"
|
||||
download_url="https://${server_url}/dataease/dataease/releases/download/${latest_version}/$installer_file"
|
||||
curl -LOk -m 60 -o $installer_file $download_url
|
||||
if [ $? -ne 0 ]; then
|
||||
echo -e "\e[31m升级失败:连接下载服务器超时!\n可手动下载升级包,然后执行\e[1;33m /bin/bash install.sh \e[0;31m离线升级,也可以重新执行一次 dectl upgrade 命令。\e[0m"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f $installer_file ]; then
|
||||
echo "下载在线安装包失败,请试试重新执行一次安装命令。"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
tar zxf $installer_file
|
||||
if [ $? != 0 ]; then
|
||||
echo "下载在线安装包失败,请试试重新执行一次安装命令。"
|
||||
rm -f $installer_file
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ${installer_file%.tar.gz}
|
||||
/bin/bash install.sh
|
||||
|
||||
cd ..
|
||||
rm -rf /tmp/${installer_file%.*}
|
||||
}
|
||||
function clear_images() {
|
||||
echo
|
||||
for f in $DE_RUNNING_BASE/*.yml; do
|
||||
[[ -e "$f" ]] || break
|
||||
grep "^ image:.*:" "$f" | uniq | while read -r component_image_defined; do
|
||||
component_version=$(echo ${component_image_defined} | awk -F":" '{print $3}' | uniq)
|
||||
component_image=$(echo ${component_image_defined} | awk -F'image: ' '{print $2}' | awk -F':' '{print $1}')
|
||||
|
||||
if [[ $(docker images | grep "$component_image[[:space:]]" | grep -v " $component_version " | wc -l) == 0 ]]; then
|
||||
echo "$component_image 不存在旧版本镜像"
|
||||
else
|
||||
echo "存在非当前版本镜像 : "
|
||||
docker images | grep "$component_image[[:space:]]" | grep -v " $component_version "
|
||||
echo "清理${component}镜像"
|
||||
docker rmi $(docker images | grep "$component_image[[:space:]]" | grep -v " $component_version " | awk -F' ' '{print $1":"$2}')
|
||||
echo "清理完毕"
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
if [ $(docker images -f dangling=true -q | wc -l) -gt 0 ]; then
|
||||
echo "清理虚悬镜像"
|
||||
docker rmi $(docker images -f dangling=true -q)
|
||||
echo "清理完毕"
|
||||
fi
|
||||
}
|
||||
function backup() {
|
||||
need_stop=0
|
||||
if [[ -z $1 ]];then
|
||||
echo "如需备份 DataEase 数据,建议您先停止 DataEase 服务,以保证备份数据的完整性。"
|
||||
read -r -p "即将备份 DataEase 数据,是否需要停止 DataEase 服务? [Y/n] " input
|
||||
|
||||
case $input in
|
||||
[yY][eE][sS]|[yY])
|
||||
echo "Yes"
|
||||
need_stop=1
|
||||
;;
|
||||
[nN][oO]|[nN])
|
||||
echo "No"
|
||||
;;
|
||||
*)
|
||||
echo "无效输入..."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
elif [[ "$1" == "stop" ]];then
|
||||
need_stop=1
|
||||
fi
|
||||
|
||||
if [[ $need_stop == 1 ]];then
|
||||
service dataease stop
|
||||
else
|
||||
echo "不停服进行备份"
|
||||
fi
|
||||
|
||||
backup_file_name=dataease-backup-$(date +%Y%m%d)_$(date +%H%M%S).tar.gz
|
||||
tar --exclude=logs/dataease -zcf $backup_file_name -C $DE_RUNNING_BASE .
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "备份失败"
|
||||
exit 1
|
||||
else
|
||||
echo "备份成功,备份文件 : $(pwd)/$backup_file_name"
|
||||
fi
|
||||
|
||||
if [[ $need_stop == 1 ]];then
|
||||
service dataease start
|
||||
fi
|
||||
}
|
||||
function restore() {
|
||||
if [[ -z $target ]];then
|
||||
echo "未指定需要恢复的备份文件!"
|
||||
exit 1
|
||||
elif [[ -f $target ]];then
|
||||
service dataease stop
|
||||
if [[ ! -d $DE_RUNNING_BASE ]];then
|
||||
mkdir -p $DE_RUNNING_BASE
|
||||
fi
|
||||
echo "恢复备份 $target"
|
||||
rm -rf $DE_RUNNING_BASE/data/mysql/*
|
||||
tar -zxf $target --directory=$DE_RUNNING_BASE
|
||||
service dataease start
|
||||
else
|
||||
echo "未找到备份文件 $target!"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
function main() {
|
||||
case "${action}" in
|
||||
status)
|
||||
status
|
||||
;;
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart)
|
||||
restart
|
||||
;;
|
||||
reload)
|
||||
reload
|
||||
;;
|
||||
upgrade)
|
||||
upgrade
|
||||
;;
|
||||
backup)
|
||||
backup $target
|
||||
;;
|
||||
restore)
|
||||
restore $target
|
||||
;;
|
||||
clear-images)
|
||||
clear_images
|
||||
;;
|
||||
version)
|
||||
version
|
||||
;;
|
||||
help)
|
||||
usage
|
||||
;;
|
||||
--help)
|
||||
usage
|
||||
;;
|
||||
"")
|
||||
usage
|
||||
;;
|
||||
*)
|
||||
echo "不支持的参数,请使用 help 或 --help 参数获取帮助"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
main
|
57
installer/install.conf
Normal file
57
installer/install.conf
Normal file
@ -0,0 +1,57 @@
|
||||
# 基础配置
|
||||
## 安装目录
|
||||
DE_BASE=/opt
|
||||
## Service 端口
|
||||
DE_PORT=8100
|
||||
## 登录超时时间,单位min。如果不设置则默认16小时,也就是960
|
||||
DE_LOGIN_TIMEOUT=960
|
||||
## 安装模式
|
||||
DE_INSTALL_MODE=community
|
||||
## 动态路径
|
||||
DE_CONTEXT_PATH=
|
||||
|
||||
# 数据库配置
|
||||
## 是否使用外部数据库
|
||||
DE_EXTERNAL_MYSQL=false
|
||||
## 数据库地址
|
||||
DE_MYSQL_HOST=mysql-de
|
||||
## 数据库端口 (仅使用外部数据库时才生效)
|
||||
DE_MYSQL_PORT=3306
|
||||
## DataEase 数据库库名
|
||||
DE_MYSQL_DB=dataease
|
||||
## 数据库用户名
|
||||
DE_MYSQL_USER=root
|
||||
## 数据库密码,密码如包含特殊字符,请用双引号引起来,例如 DE_MYSQL_PASSWORD="Test@4&^%*^"
|
||||
DE_MYSQL_PASSWORD=Password123@mysql
|
||||
## 数据库参数
|
||||
DE_MYSQL_PARAMS="autoReconnect=false&useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true"
|
||||
|
||||
# 定时报告镜像配置
|
||||
## 是否使用外部 Selenium,若使用外部 Selenium,则限制参数无效
|
||||
DE_EXTERNAL_SELENIUM=false
|
||||
## Selenium 服务地址
|
||||
DE_SELENIUM_SERVER=http://de-selenium:4444/wd/hub
|
||||
## selenium 镜像 CPU 限制
|
||||
DE_SELENIUM_CPU_LIMIT='1'
|
||||
## selenium 镜像 内存 限制
|
||||
DE_SELENIUM_MEM_LIMIT=2g
|
||||
|
||||
# APISIX配置
|
||||
## 是否使用外部 APISIX
|
||||
DE_EXTERNAL_APISIX=false
|
||||
## 使用外部 APISIX,则下列参数无效
|
||||
## APISIX dashboard 端口
|
||||
DE_APISIX_DASHBOARD_PORT=9000
|
||||
## APISIX 端口
|
||||
DE_APISIX_PORT=9080
|
||||
|
||||
# 同步模块配置
|
||||
## 是否使用外部同步模块
|
||||
DE_EXTERNAL_SYNC_TASK=false
|
||||
|
||||
# 其他配置
|
||||
DE_EXPORT_VIEWS_LIMIT=100000
|
||||
DE_EXPORT_DATASET_LIMIT=100000
|
||||
DE_ORIGIN_LIST="http://localhost:8000"
|
||||
## DataEase 节点列表,用于多节点部署,节点以逗号分隔,如 192.168.1.101,192.168.1.102
|
||||
DE_SERVERS=dataease
|
335
installer/install.sh
Normal file
335
installer/install.sh
Normal file
@ -0,0 +1,335 @@
|
||||
#!/bin/bash
|
||||
|
||||
INSTALL_TYPE='install'
|
||||
title_count=1
|
||||
|
||||
CURRENT_DIR=$(
|
||||
cd "$(dirname "$0")"
|
||||
pwd
|
||||
)
|
||||
|
||||
function log() {
|
||||
echo -e "${1}" 2>&1 | tee -a ${CURRENT_DIR}/install.log
|
||||
}
|
||||
|
||||
function log_title () {
|
||||
log "${title_count}. ${1}"
|
||||
let title_count++
|
||||
}
|
||||
|
||||
function log_content () {
|
||||
log "\t${1}"
|
||||
}
|
||||
|
||||
function prop {
|
||||
[ -f "$1" ] | grep -P "^\s*[^#]?${2}=.*$" $1 | cut -d'=' -f2
|
||||
}
|
||||
|
||||
function check_and_prepare_env_params() {
|
||||
log "当前时间 : $(date)"
|
||||
log_title "检查安装环境并初始化环境变量"
|
||||
DE_APISIX_PORT=9080
|
||||
|
||||
cd ${CURRENT_DIR}
|
||||
if [ -f /usr/bin/dectl ]; then
|
||||
v2_version=$(dectl version | head -n 2 | grep "v2.")
|
||||
if [[ -z $v2_version ]];then
|
||||
echo "系统当前版本不是 DataEase v2 版本系列,不支持升级到 v2,请检查离线包版本。"
|
||||
exit 1;
|
||||
fi
|
||||
# 获取已安装的 DataEase 的运行目录
|
||||
DE_BASE=$(grep "^DE_BASE=" /usr/bin/dectl | cut -d'=' -f2)
|
||||
DE_BASE_OLD=$DE_BASE
|
||||
sed -i -e "s#DE_BASE=.*#DE_BASE=${DE_BASE}#g" dectl
|
||||
\cp dectl /usr/local/bin && chmod +x /usr/local/bin/dectl
|
||||
|
||||
log_content "停止 DataEase 服务"
|
||||
if [[ -f /etc/systemd/system/dataease.service ]];then
|
||||
systemctl stop dataease
|
||||
else
|
||||
dectl stop
|
||||
fi
|
||||
|
||||
INSTALL_TYPE='upgrade'
|
||||
fi
|
||||
|
||||
set -a
|
||||
source ${CURRENT_DIR}/install.conf
|
||||
if [[ $DE_BASE_OLD ]];then
|
||||
DE_BASE=$DE_BASE_OLD
|
||||
export DE_BASE=$DE_BASE_OLD
|
||||
fi
|
||||
if [[ -d $DE_BASE ]] && [[ -f $DE_BASE/dataease2.0/.env ]]; then
|
||||
source $DE_BASE/dataease2.0/.env
|
||||
INSTALL_TYPE='upgrade'
|
||||
|
||||
conf_install_mode=$(prop $CURRENT_DIR/install.conf DE_INSTALL_MODE)
|
||||
if [[ $DE_INSTALL_MODE == 'community' ]] && [[ $conf_install_mode == 'enterprise' ]];then
|
||||
DE_INSTALL_MODE=$conf_install_mode
|
||||
export DE_INSTALL_MODE=$conf_install_mode
|
||||
fi
|
||||
log_content "升级安装"
|
||||
else
|
||||
INSTALL_TYPE='install'
|
||||
mkdir -p ${DE_BASE}
|
||||
log_content "全新安装"
|
||||
fi
|
||||
set +a
|
||||
|
||||
read available_disk <<< $(df -H --output=avail ${DE_BASE} | tail -1)
|
||||
available_disk=${available_disk%?}
|
||||
available_disk=${available_disk%.*}
|
||||
if [[ $available_disk -lt 20 ]];then
|
||||
log_content "\033[31m[警告] DataEase 运行目录所在磁盘剩余空间不足 20G 可能无法正常启动!\033[0m"
|
||||
fi
|
||||
}
|
||||
|
||||
function set_run_base_path() {
|
||||
log_title "设置运行目录"
|
||||
DE_RUN_BASE=$DE_BASE/dataease2.0
|
||||
CONF_FOLDER=${DE_RUN_BASE}/conf
|
||||
TEMPLATES_FOLDER=${DE_RUN_BASE}/templates
|
||||
log_content "运行目录 $DE_RUN_BASE"
|
||||
log_content "配置文件目录 $CONF_FOLDER"
|
||||
}
|
||||
|
||||
function prepare_de_run_base() {
|
||||
log_title "初始化运行目录"
|
||||
cd ${CURRENT_DIR}
|
||||
mkdir -p ${DE_RUN_BASE}
|
||||
log_content "复制安装文件到运行目录"
|
||||
cp -r ./dataease/* ${DE_RUN_BASE}/
|
||||
|
||||
cd $DE_RUN_BASE
|
||||
env | grep DE_ >.env
|
||||
|
||||
mkdir -p ${DE_RUN_BASE}/{cache,logs,conf}
|
||||
mkdir -p ${DE_RUN_BASE}/data/{mysql,static-resource,map,etcd_data,geo,appearance,exportData,plugin,font,i18n}
|
||||
mkdir -p ${DE_RUN_BASE}/apisix/logs
|
||||
mkdir -p ${DE_RUN_BASE}/task/logs
|
||||
chmod 777 ${DE_RUN_BASE}/apisix/logs ${DE_RUN_BASE}/data/etcd_data ${DE_RUN_BASE}/task/logs
|
||||
|
||||
if [ "${DE_EXTERNAL_MYSQL}" = "false" ]; then
|
||||
sed -i -e "s/^ DE_MYSQL_HOST/ ${DE_MYSQL_HOST}/g" docker-compose.yml
|
||||
sed -i -e "s/^. DE_MYSQL_HOST/ ${DE_MYSQL_HOST}/g" docker-compose-mysql.yml
|
||||
export DE_MYSQL_PORT=3306
|
||||
else
|
||||
sed -i -e "/^ depends_on/,+2d" docker-compose.yml
|
||||
fi
|
||||
|
||||
log_content "调整配置文件参数"
|
||||
cd $DE_RUN_BASE
|
||||
cp -r $TEMPLATES_FOLDER/* $CONF_FOLDER
|
||||
|
||||
cd ${TEMPLATES_FOLDER}
|
||||
templates_files=( application.yml mysql.env )
|
||||
for i in ${templates_files[@]}; do
|
||||
if [ -f $i ]; then
|
||||
envsubst < $i > $CONF_FOLDER/$i
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
function update_dectl() {
|
||||
log_title "安装 dectl 命令行工具"
|
||||
log_content "安装至 /usr/local/bin/dectl & /usr/bin/dectl"
|
||||
cd ${CURRENT_DIR}
|
||||
sed -i -e "s#DE_BASE=.*#DE_BASE=${DE_BASE}#g" dectl
|
||||
\cp dectl /usr/local/bin && chmod +x /usr/local/bin/dectl
|
||||
if [ ! -f /usr/bin/dectl ]; then
|
||||
ln -s /usr/local/bin/dectl /usr/bin/dectl 2>/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
function prepare_system_settings() {
|
||||
log_title "修改操作系统相关设置"
|
||||
if which getenforce >/dev/null 2>&1 && [ $(getenforce) == "Enforcing" ];then
|
||||
log_content "关闭 SELINUX"
|
||||
setenforce 0
|
||||
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
|
||||
fi
|
||||
|
||||
if which firewall-cmd >/dev/null 2>&1; then
|
||||
if systemctl is-active firewalld &>/dev/null ;then
|
||||
log_content "开启防火墙端口 ${DE_PORT}"
|
||||
firewall-cmd --zone=public --add-port=${DE_PORT}/tcp --permanent
|
||||
firewall-cmd --reload
|
||||
else
|
||||
log_content "防火墙未开启,忽略端口开放"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
function install_docker() {
|
||||
log_title "安装 docker"
|
||||
#Install docker
|
||||
##Install Latest Stable Docker Release
|
||||
cd ${CURRENT_DIR}
|
||||
|
||||
if which docker >/dev/null 2>&1; then
|
||||
log_content "检测到 Docker 已安装,跳过安装步骤"
|
||||
log_content "启动 Docker "
|
||||
service docker start >/dev/null 2>&1 | tee -a ${CURRENT_DIR}/install.log
|
||||
else
|
||||
if [[ -d docker ]]; then
|
||||
log_content "离线安装 docker"
|
||||
cp docker/bin/* /usr/bin/
|
||||
cp docker/service/docker.service /etc/systemd/system/
|
||||
chmod +x /usr/bin/docker*
|
||||
chmod 644 /etc/systemd/system/docker.service
|
||||
else
|
||||
log_content "在线安装 docker"
|
||||
curl -fsSL https://resource.fit2cloud.com/get-docker-linux.sh -o get-docker.sh 2>&1 | tee -a ${CURRENT_DIR}/install.log
|
||||
if [[ ! -f get-docker.sh ]];then
|
||||
log_content "docker 在线安装脚本下载失败,请稍候重试"
|
||||
exit 1
|
||||
fi
|
||||
sudo sh get-docker.sh 2>&1 | tee -a ${CURRENT_DIR}/install.log
|
||||
fi
|
||||
|
||||
docker_config_folder="/etc/docker"
|
||||
if [ ! -d "$docker_config_folder" ];then
|
||||
mkdir -p "$docker_config_folder"
|
||||
cat <<EOF> $docker_config_folder/daemon.json
|
||||
{
|
||||
"log-driver": "json-file",
|
||||
"log-opts": {
|
||||
"max-file": "3",
|
||||
"max-size": "10m"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
fi
|
||||
|
||||
log_content "启动 docker"
|
||||
systemctl enable docker >/dev/null 2>&1; systemctl daemon-reload; systemctl start docker 2>&1 | tee -a ${CURRENT_DIR}/install.log
|
||||
|
||||
docker version >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
log_content "docker 安装失败"
|
||||
exit 1
|
||||
else
|
||||
log_content "docker 安装成功"
|
||||
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
function install_docker_compose() {
|
||||
log_title "安装 docker-compose"
|
||||
#Install docker-compose
|
||||
cd ${CURRENT_DIR}
|
||||
##Install Latest Stable Docker Compose Release
|
||||
docker-compose version >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
docker compose version >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
echo 'docker compose "$@"' > /usr/bin/docker-compose
|
||||
chmod +x /usr/bin/docker-compose
|
||||
else
|
||||
if [[ -d docker ]]; then
|
||||
log_content "离线安装 docker-compose"
|
||||
cp docker/bin/docker-compose /usr/bin/
|
||||
chmod +x /usr/bin/docker-compose
|
||||
else
|
||||
log_content "在线安装 docker-compose"
|
||||
curl -L https://resource.fit2cloud.com/docker/compose/releases/download/v2.16.0/docker-compose-$(uname -s | tr A-Z a-z)-$(uname -m) -o /usr/local/bin/docker-compose 2>&1 | tee -a ${CURRENT_DIR}/install.log
|
||||
if [[ ! -f /usr/local/bin/docker-compose ]];then
|
||||
log_content "docker-compose 下载失败,请稍候重试"
|
||||
exit 1
|
||||
fi
|
||||
chmod +x /usr/local/bin/docker-compose
|
||||
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
|
||||
fi
|
||||
fi
|
||||
|
||||
docker-compose version >/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
log_content "docker-compose 安装失败"
|
||||
exit 1
|
||||
else
|
||||
log_content "docker-compose 安装成功"
|
||||
fi
|
||||
else
|
||||
log_content "检测到 Docker Compose 已安装,跳过安装步骤"
|
||||
fi
|
||||
export COMPOSE_HTTP_TIMEOUT=180
|
||||
}
|
||||
|
||||
function load_de_images() {
|
||||
log_title "加载 DataEase 镜像"
|
||||
cd ${CURRENT_DIR}
|
||||
|
||||
for i in $(docker images --format '{{.Repository}}:{{.Tag}}' | grep dataease); do
|
||||
current_images[${#current_images[@]}]=${i##*/}
|
||||
done
|
||||
|
||||
# 加载镜像
|
||||
if [[ -d images ]]; then
|
||||
for i in $(ls images); do
|
||||
if [[ "${current_images[@]}" =~ "${i%.tar.gz}" ]]; then
|
||||
log_content "已存在镜像 ${i%.tar.gz}"
|
||||
else
|
||||
log_content "加载镜像 ${i%.tar.gz}"
|
||||
docker load -i images/$i >/dev/null 2>&1 | tee -a ${CURRENT_DIR}/install.log
|
||||
fi
|
||||
done
|
||||
else
|
||||
DEVERSION=$(cat ${CURRENT_DIR}/dataease/templates/version)
|
||||
curl -sfL https://resource.fit2cloud.com/installation-log.sh | sh -s de ${INSTALL_TYPE} ${DEVERSION}
|
||||
fi
|
||||
}
|
||||
|
||||
function set_de_service() {
|
||||
log_title "配置 DataEase 服务"
|
||||
if [[ -f /etc/init.d/dataease ]];then
|
||||
if which chkconfig >/dev/null 2>&1;then
|
||||
chkconfig dataease >/dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
chkconfig --del dataease
|
||||
fi
|
||||
fi
|
||||
rm -f /etc/init.d/dataease
|
||||
fi
|
||||
|
||||
if [[ ! -f /etc/systemd/system/dataease.service ]];then
|
||||
log_content "配置 dataease Service"
|
||||
cp ${DE_RUN_BASE}/bin/dataease/dataease.service /etc/systemd/system/
|
||||
chmod 644 /etc/systemd/system/dataease.service
|
||||
log_content "配置开机自启动"
|
||||
systemctl enable dataease >/dev/null 2>&1; systemctl daemon-reload | tee -a ${CURRENT_DIR}/install.log
|
||||
fi
|
||||
}
|
||||
|
||||
function start_de_service() {
|
||||
log_title "启动 DataEase 服务"
|
||||
systemctl start dataease 2>&1 | tee -a ${CURRENT_DIR}/install.log
|
||||
|
||||
access_port=$DE_PORT
|
||||
if [[ $DE_INSTALL_MODE != "community" ]];then
|
||||
access_port=$DE_APISIX_PORT
|
||||
fi
|
||||
|
||||
echo
|
||||
if [[ $INSTALL_TYPE != "upgrade" ]];then
|
||||
echo -e "======================= 安装完成 =======================\n" 2>&1 | tee -a ${CURRENT_DIR}/install.log
|
||||
echo -e "系统登录信息如下:\n\t访问地址: http://服务器IP:$access_port\n\t用户名: admin\n\t初始密码: DataEase@123456" 2>&1 | tee -a ${CURRENT_DIR}/install.log
|
||||
else
|
||||
echo -e "======================= 升级完成 =======================\n" 2>&1 | tee -a ${CURRENT_DIR}/install.log
|
||||
fi
|
||||
}
|
||||
|
||||
function main() {
|
||||
check_and_prepare_env_params
|
||||
set_run_base_path
|
||||
prepare_de_run_base
|
||||
update_dectl
|
||||
prepare_system_settings
|
||||
install_docker
|
||||
install_docker_compose
|
||||
load_de_images
|
||||
set_de_service
|
||||
start_de_service
|
||||
}
|
||||
|
||||
main
|
86
installer/quick_start.sh
Normal file
86
installer/quick_start.sh
Normal file
@ -0,0 +1,86 @@
|
||||
|
||||
if [[ -x "$(command -v python)" ]];then
|
||||
py_cmd='python'
|
||||
elif [[ -x "$(command -v python3)" ]]; then
|
||||
py_cmd='python3'
|
||||
fi
|
||||
|
||||
server_url="github.com"
|
||||
|
||||
echo -ne "检测 ${server_url} ... "
|
||||
curl -m 5 -kIs https://${server_url} >/dev/null
|
||||
|
||||
if [ $? != 0 ];then
|
||||
echo "failed"
|
||||
echo "没有找到稳定的下载服务器,请稍候重试"
|
||||
exit 1
|
||||
else
|
||||
echo "ok"
|
||||
fi
|
||||
|
||||
rm -f /tmp/de_latest_release
|
||||
|
||||
$py_cmd - <<EOF
|
||||
# -*- coding: UTF-8 -*-
|
||||
import os
|
||||
import json
|
||||
import re
|
||||
|
||||
latest_release=""
|
||||
release_pattern="v2\.\d+\.\d+$"
|
||||
|
||||
def get_releases(page):
|
||||
try:
|
||||
releases=os.popen("curl -s https://api.github.com/repos/dataease/dataease/releases?page=%d" % (page)).read()
|
||||
releases=[ x["name"] for x in json.loads(releases) if x["prerelease"] == False ]
|
||||
except Exception as e:
|
||||
print(str(e))
|
||||
print("Failed to obtain Release information, please check the network.")
|
||||
exit(1)
|
||||
else:
|
||||
for release in releases:
|
||||
if re.search(release_pattern,release) != None:
|
||||
return release
|
||||
|
||||
page = 1
|
||||
while (page <= 3):
|
||||
latest_release = get_releases(page)
|
||||
if (latest_release != "" and latest_release != None):
|
||||
break
|
||||
page += 1
|
||||
|
||||
if latest_release == None or latest_release == "":
|
||||
print("Failed to obtain latest version, please try again.")
|
||||
exit(1)
|
||||
|
||||
# 记录最新版本号
|
||||
os.popen("echo "+latest_release+" > /tmp/de_latest_release")
|
||||
EOF
|
||||
|
||||
if [ ! -f /tmp/de_latest_release ]; then
|
||||
echo "获取最新版本失败,请检查网络连接是否正常"
|
||||
exit 1
|
||||
fi
|
||||
latest_version=$(cat /tmp/de_latest_release)
|
||||
|
||||
echo "开始下载 DataEase ${latest_version} 版本在线安装包"
|
||||
|
||||
installer_file="dataease-online-installer-${latest_version}-ce.tar.gz"
|
||||
download_url="https://${server_url}/dataease/dataease/releases/download/${latest_version}/$installer_file"
|
||||
echo "下载地址: ${download_url}"
|
||||
curl -LOk -m 60 -o $installer_file $download_url
|
||||
|
||||
if [ ! -f ${installer_file} ];then
|
||||
echo "下载在线安装包失败,请试试重新执行一次安装命令。"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
tar zxvf ${installer_file}
|
||||
if [ $? != 0 ];then
|
||||
echo "下载在线安装包失败,请试试重新执行一次安装命令。"
|
||||
rm -f ${installer_file}
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ${installer_file%.tar.gz}
|
||||
/bin/bash install.sh
|
60
installer/uninstall.sh
Normal file
60
installer/uninstall.sh
Normal file
@ -0,0 +1,60 @@
|
||||
#!/bin/bash
|
||||
|
||||
DE_BASE=/opt
|
||||
|
||||
echo "如需备份 DataEase 数据,请执行 dectl backup 进行备份。如您的 dectl 命令不支持 backup 命令,请升级版本。"
|
||||
read -r -p "即将卸载 DataEase 服务,包括删除运行目录、数据及相关镜像,是否继续? [Y/n] " input
|
||||
|
||||
case $input in
|
||||
[yY][eE][sS]|[yY])
|
||||
echo "Yes"
|
||||
;;
|
||||
[nN][oO]|[nN])
|
||||
echo "No"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "无效输入..."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "停止 DataEase 服务"
|
||||
service dataease stop >/dev/null 2>&1
|
||||
|
||||
echo "移除 DataEase 服务"
|
||||
if which chkconfig >/dev/null 2>&1;then
|
||||
chkconfig dataease >/dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
chkconfig --del dataease >/dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f /etc/systemd/system/dataease.service ];then
|
||||
systemctl disable dataease >/dev/null 2>&1
|
||||
rm -f /etc/systemd/system/dataease.service
|
||||
systemctl daemon-reload
|
||||
elif [[ -f /etc/init.d/dataease ]];then
|
||||
rm -f /etc/init.d/dataease
|
||||
fi
|
||||
|
||||
if [ -f /usr/bin/dectl ]; then
|
||||
# 获取已安装的 DataEase 的运行目录
|
||||
DE_BASE=$(grep "^DE_BASE=" /usr/bin/dectl | cut -d'=' -f2)
|
||||
fi
|
||||
|
||||
# 清理 DataEase 相关镜像
|
||||
if test ! -z "$(docker images -f dangling=true -q)"; then
|
||||
echo "清理虚悬镜像"
|
||||
docker rmi $(docker images -f dangling=true -q)
|
||||
fi
|
||||
|
||||
if test -n "$(docker images | grep 'registry.cn-qingdao.aliyuncs.com/dataease')"; then
|
||||
echo "清理 DataEase 镜像"
|
||||
docker rmi $(docker images | grep "registry.cn-qingdao.aliyuncs.com/dataease" | awk -F' ' '{print $1":"$2}')
|
||||
fi
|
||||
|
||||
# 清理 DataEase 运行目录及命令行工具 dectl
|
||||
rm -rf ${DE_BASE}/dataease2.0 /usr/bin/dectl
|
||||
|
||||
echo "DataEase 服务卸载完成"
|
Loading…
Reference in New Issue
Block a user