使用 Kuboard 部署 SpringBlade

增加基于k8s的 Kuboard 部署脚本
This commit is contained in:
smallchill 2021-05-05 17:51:08 +08:00 committed by Gitee
commit 1e946f90aa
4 changed files with 40 additions and 0 deletions

22
doc/nacos/blade-k8s.yaml Normal file
View File

@ -0,0 +1,22 @@
#spring配置
spring:
redis:
##redis 单机环境配置
host: redis
port: 6379
password:
database: 0
ssl: false
##redis 集群环境配置
#cluster:
# nodes: 127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003
# commandTimeout: 5000
#项目模块集中配置
blade:
#通用开发生产环境数据库地址(特殊情况可在对应的子工程里配置覆盖)
datasource:
test:
url: jdbc:mysql://saber-db-0.saber-db:3306/blade?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8
username: root
password: root

8
doc/sql/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM mysql:5.7.26
ADD my.cnf /etc/mysql/conf.d/my.cnf
COPY blade/blade-saber-mysql.sql /docker-entrypoint-initdb.d/blade-saber-mysql.sql
# COPY blade/blade-sword-mysql.sql /docker-entrypoint-initdb.d/blade-sword-mysql.sql
# COPY seata/seata_order.sql /docker-entrypoint-initdb.d/seata_order.sql
# COPY seata/seata_storage.sql /docker-entrypoint-initdb.d/seata_storage.sql
# COPY seata/seata.sql /docker-entrypoint-initdb.d/seata.sql
EXPOSE 3306

View File

@ -17,6 +17,9 @@
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
CREATE SCHEMA IF NOT EXISTS `blade` DEFAULT CHARACTER SET utf8mb4 ;
USE `blade` ;
-- ----------------------------
-- Table structure for blade_client
-- ----------------------------

7
doc/sql/my.cnf Normal file
View File

@ -0,0 +1,7 @@
[mysqld]
init_connect='SET collation_connection = utf8_unicode_ci'
init_connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake