1 Star 0 Fork 181

Xia,Rongfu / xcloud-dopaas

forked from hedden / xcloud-dopaas 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 8.71 KB
一键复制 编辑 原始数据 按行查看 历史
wanglsir 提交于 2021-03-14 20:25 . fix: rename starter class

XCloud DOPaaS

XCloud DoPaaS

中文文档 | English version goes here

One stop solution of PaaS platform based on DevSecOps

Based on SpringCloud/Docker/ServiceMesh(Istio), primary integrated modules: CMDB, Unified Continuous delivery of CI/CD (distributed compilation and deployment), IAM Certification Center, Unified monitoring center, Unified configuration center, Unified Distributed task scheduling center, Unified documents, Unified developer center(AutoGenerator), Private object storage, source/package/image repository management, Shell tools, various tool chains (such as HBase/OSS operation and maintenance), Timely communication, lightweight risk control, Flexible scaling, etc

Build Status License Maven JDK MySQL Redis Kafka Zookeeper Docker-ce QQ1 GithubStars GiteeStars Ubuntu CentOS

One click automatic deployment:

It is suitable for rapid deployment in server environment

bash -c "$(curl -L https://raw.githubusercontent.com/wl4g/xcloud-dopaas/master/script/deploy/deploy-boot.sh)"
# or
bash -c "$(curl -L https://gitee.com/wl4g/xcloud-dopaas/raw/master/script/deploy/deploy-boot.sh)"
  • Server specs requirements
Runtime Mode Min specs requirements(Suggested) Description
cluster CentOS7+ / Ubuntu18+ (4Core+ 8GB+) Only pseudo clusters can be deployed when there is only one host
standalone 2Core+ 2GB+ Monomer application

Manual compilation and build:

It is suitable for build secondary development environment

  • vim .m2/settings.xml
<mirror>
    <id>nexus-aliyun</id>
    <mirrorOf>central</mirrorOf>
    <name>Nexus aliyun</name>
    <url>http://maven.aliyun.com/nexus/content/groups/public<url>
</mirror>
  • Backend compiling

Compile according to the order of project dependency. The mvn -P options are: springExecJar (packaged as a single executable jar) and mvnAssTar (packaged as a general software release package), default.

git clone https://github.com/wl4g/xcloud-component.git # Relatively new upstream (recommended)
# git clone https://gitee.com/wl4g/xcloud-component.git # or
mvn -f xcloud-component -U clean install -DskipTests -T 2C

git clone https://github.com/wl4g/xcloud-iam.git # Relatively new upstream (recommended)
# git clone https://gitee.com/wl4g/xcloud-iam.git # or
mvn -f xcloud-iam -U clean install -DskipTests -T 2C

git clone https://github.com/wl4g/xcloud-dopaas.git # Relatively new upstream (recommended)
# git clone https://gitee.com/wl4g/xcloud-dopaas.git # or
mvn -f xcloud-dopaas -U clean install -DskipTests -T 2C
  • Frontend compiling
git clone https://github.com/wl4g/xcloud-dopaas-view.git # Relatively new upstream (recommended)
或者 git clone https://gitee.com/wl4g/xcloud-dopaas-view.git
npm run dev # Development debugging
npm run build # Production building
  • Initial DB: first, prepare a MySQL5.6+ instance and create a database named dopaas(utf8/utf8)_bin), and then Initial DB sql. (Notes: the SQL script should correspond to the source code version. We will update it regularly. It is recommended to use the latest version)

  • Configure local DNS: add local virtual domain name resolution (C:\Windows\System32\drivers\etc 或 vim /etc/hosts):

# Notes: The default virtual domain names of various environment databases are different. In rare cases, it may not correspond to the document due to the change of version module. Please check the retention table (sys_cluster_config.extranet_base_uri) The configuration of hosts is as follows:

# dev:
127.0.0.1 wl4g.debug
# fat:
127.0.0.1 wl4g.fat dopaas.wl4g.fat iam.wl4g.fat erm.wl4g.fat ci.wl4g.fat dts.wl4g.fat vcs.wl4g.fat umc.wl4g.fat
# uat:
127.0.0.1 wl4g.uat dopaas.wl4g.uat iam.wl4g.uat erm.wl4g.uat ci.wl4g.uat dts.wl4g.uat vcs.wl4g.uat umc.wl4g.uat
# pro:
127.0.0.1 wl4g.com dopaas.wl4g.com iam.wl4g.com erm.wl4g.com ci.wl4g.com dts.wl4g.com vcs.wl4g.com umc.wl4g.com
  • Quickly build a redis cluster/docker (optional)

https://github.com/wl4g/docker-redis-cluster 或者 https://gitee.com/wl4g/docker-redis-cluster

  • Browser Access (Chrome recommended)

http://wl4g.debug    Default account password: root/wl4g.com

  • Deployed successful screenshot:

Tips: the screenshot may be slightly different due to the version evolution.

registered-eureka-apps

Submodule documents

  • UCI Unified Continuous Integration Service(CI/CD)
  • UMC Unified Monitoring and Operation Center(applications healthing, tracking, alarming, ELK log analysis, etc)
  • URM Unified Repository Management(source repo/build repo/image repo)
  • UCM Unified Config Management(Online configuration of hot updates such as dataSource, redisClient, etc)
  • CMDB Configuration Management Database(hosts, applications, secretKeys, auditing, DNS zone resoluting, etc)
  • UDM Unified Document Management(Online APIs/swagger documents, etc)
  • UDC Unified Developer Center(Devel tools, WebIDE, AutoGenerator, etc)

Other related apps and components documents

  • DJOB Based on spring cloud distributed scheduling platform, the default is based on elastic-job enhanced implementation
  • COSS Based on the spring cloud composite object storage service, it supports NativeFS, HDFS, Aliyun OSS, AWS S3, GlusterFS, etc
  • SHELL Shell Cli, adding a hbase-shell-like console to your app
  • IAM Unified identity and access management services, support SSO/CAS/oauth2/opensaml etc, It also supports multiple deployment modes(local/cluster/gateway)
  • Gateway Enterprise microservice gateway based on spring cloud gateway, Can integrate with CI to realize Canary deployment.
  • IM Instant messaging system, project personnel communicate in a timely manner, internal data distribution.

Development and runtime depend on technology stack(primary)

  • Required dependencies:
Spring Boot:2.2 +
Spring Cloud:2.2 +
Eureka:1.10 +
Zipkin:2.15 +
Jdk:8 +
Maven:3.5 +
Mysql:5.6 +
  • Optional dependencies:
Kafka:0.10.0 +
Zookeeper:3.4.6 +
DockerCE:18.06 +
CoreDNS:1.7.0 +
MinIO:latest
Shardingsphere-Elasticjob:3.0.0+

Communicate, feedback and contribute?

Share Code?

Java
1
https://gitee.com/xiarongfu/xcloud-dopaas.git
git@gitee.com:xiarongfu/xcloud-dopaas.git
xiarongfu
xcloud-dopaas
xcloud-dopaas
master

搜索帮助