kuboard
This commit is contained in:
parent
2d0a3c1ce4
commit
3f3ae7d051
|
|
@ -64,7 +64,19 @@
|
|||
<artifactId>docker-maven-plugin</artifactId>
|
||||
<version>${docker.plugin.version}</version>
|
||||
<configuration>
|
||||
<skipDockerBuild>true</skipDockerBuild>
|
||||
<imageName>${docker.registry.url}/blade/${project.artifactId}:${project.version}</imageName>
|
||||
<dockerDirectory>${project.basedir}</dockerDirectory>
|
||||
<dockerHost>${docker.registry.host}</dockerHost>
|
||||
<resources>
|
||||
<resource>
|
||||
<targetPath>/</targetPath>
|
||||
<directory>${project.build.directory}</directory>
|
||||
<include>${project.build.finalName}.jar</include>
|
||||
</resource>
|
||||
</resources>
|
||||
<registryUrl>${docker.registry.url}</registryUrl>
|
||||
<serverId>${docker.registry.url}</serverId>
|
||||
<pushImage>true</pushImage>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
|
|
|
|||
22
doc/nacos/blade-k8s.yaml
Normal file
22
doc/nacos/blade-k8s.yaml
Normal 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
8
doc/sql/Dockerfile
Normal 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
|
||||
|
|
@ -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
7
doc/sql/my.cnf
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user