Skip to content

Commit

Permalink
🎉 Hoxton.RELEASE、Nacos Server
Browse files Browse the repository at this point in the history
🎉 Hoxton.RELEASE、Nacos Server

🎉 Hoxton.RELEASE、Nacos Server

🎉 Hoxton.RELEASE、Nacos Server

🎉 Hoxton.RELEASE、Nacos Server

🎉 Hoxton.RELEASE、Nacos Server

🎉 Hoxton.RELEASE、Nacos Server
  • Loading branch information
lltx committed Nov 29, 2019
1 parent e962abf commit 23ae865
Show file tree
Hide file tree
Showing 357 changed files with 46,217 additions and 919 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,18 @@ pig-ui -- https://gitee.com/log4j/pig-ui

pig
├── pig-auth -- 授权服务提供[3000]
├── pig-codegen -- 图形化代码生成[5002]
└── pig-common -- 系统公共模块
├── pig-common-core -- 公共工具类核心包
├── pig-common-log -- 日志服务
├── pig-common-security -- 安全工具类
└── pig-common-swagger -- 接口文档
├── pig-config -- 配置中心[8888]
├── pig-eureka -- 服务注册与发现[8761]
├── pig-register -- Nacos Server[8848]
├── pig-gateway -- Spring Cloud Gateway网关[9999]
├── pig-monitor -- Spring Boot Admin监控 [5001]
└── pig-upms -- 通用用户权限管理模块
└── pig-upms-api -- 通用用户权限管理系统公共api模块
└── pig-upms-biz -- 通用用户权限管理系统业务处理模块[4000]
└── pig-visual -- 图形化模块
├── pig-monitor -- Spring Boot Admin监控 [5001]
├── pig-zipkin -- 链路调用监控 [5002]
└── pig-codegen -- 图形化代码生成[5003]

```
#### 提交反馈
Expand Down
2 changes: 2 additions & 0 deletions db/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ MAINTAINER lengleng(wangiegie@gmail.com)
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

COPY ./db/pig.sql /docker-entrypoint-initdb.d

COPY ./db/pig_config.sql /docker-entrypoint-initdb.d
2 changes: 1 addition & 1 deletion db/pig.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ DROP DATABASE IF EXISTS `pig`;

CREATE DATABASE `pig` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;

SET NAMES utf8;
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

USE `pig`;
Expand Down
228 changes: 228 additions & 0 deletions db/pig_config.sql

Large diffs are not rendered by default.

25 changes: 8 additions & 17 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,16 @@ services:
container_name: pig-redis
hostname: pig-redis

pig-eureka:
pig-register:
build:
context: ./
dockerfile: ./pig-eureka/Dockerfile
dockerfile: ./pig-register/Dockerfile
restart: always
ports:
- 8761:8761
container_name: pig-eureka
hostname: pig-eureka
image: pig-eureka

pig-config:
build:
context: ./
dockerfile: ./pig-config/Dockerfile
restart: always
container_name: pig-config
hostname: pig-config
image: pig-config
- 8848:8848
container_name: pig-register
hostname: pig-register
image: pig-register

pig-gateway:
build:
Expand Down Expand Up @@ -72,7 +63,7 @@ services:
pig-monitor:
build:
context: ./
dockerfile: ./pig-visual/pig-monitor/Dockerfile
dockerfile: ./pig-monitor/Dockerfile
restart: always
ports:
- 5001:5001
Expand All @@ -83,7 +74,7 @@ services:
pig-codegen:
build:
context: ./
dockerfile: ./pig-visual/pig-codegen/Dockerfile
dockerfile: ./pig-codegen/Dockerfile
restart: always
container_name: pig-codegen
hostname: pig-codegen
Expand Down
9 changes: 7 additions & 2 deletions pig-auth/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,15 @@
<description>pig 认证授权中心,基于 spring security oAuth2</description>

<dependencies>
<!--注册中心客户端-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!--配置中心客户端-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!--upms api、model 模块-->
<dependency>
Expand Down
29 changes: 9 additions & 20 deletions pig-auth/src/main/resources/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,14 @@ server:

spring:
application:
name: pig-auth
profiles:
active: dev
# 配置中心
name: @artifactId@
cloud:
config:
fail-fast: true
name: ${spring.application.name}
profile: ${spring.profiles.active}
nacos:
discovery:
enabled: true
service-id: pig-config
main:
allow-bean-definition-overriding: true

# 注册中心配置
eureka:
instance:
prefer-ip-address: true
client:
service-url:
defaultZone: http://pig:pig@pig-eureka:8761/eureka
server-addr: ${NACOS-HOST:pig-register}:${NACOS-PORT:8848}
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
file-extension: yml
shared-dataids: application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
profiles:
active: @profiles.active@
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ WORKDIR /pig-codegen

EXPOSE 5003

ADD ./pig-visual/pig-codegen/target/pig-codegen.jar ./
ADD ./pig-codegen/target/pig-codegen.jar ./

CMD sleep 60;java -Djava.security.egd=file:/dev/./urandom -jar pig-codegen.jar
11 changes: 8 additions & 3 deletions pig-visual/pig-codegen/pom.xml → pig-codegen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<parent>
<groupId>com.pig4cloud</groupId>
<artifactId>pig-visual</artifactId>
<artifactId>pig</artifactId>
<version>2.6.0</version>
</parent>

Expand All @@ -37,10 +37,15 @@
<artifactId>pig-common-swagger</artifactId>
<version>2.6.0</version>
</dependency>
<!--注册中心客户端-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!--配置中心客户端-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!--mybatis-->
<dependency>
Expand Down
16 changes: 16 additions & 0 deletions pig-codegen/src/main/resources/bootstrap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
server:
port: 5002

spring:
application:
name: @artifactId@
cloud:
nacos:
discovery:
server-addr: ${NACOS-HOST:pig-register}:${NACOS-PORT:8848}
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
file-extension: yml
shared-dataids: application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
profiles:
active: @profiles.active@
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ public interface ServiceNameConstants {
/**
* UMPS模块
*/
String UMPS_SERVICE = "pig-upms";
String UMPS_SERVICE = "pig-upms-biz";

}
15 changes: 0 additions & 15 deletions pig-config/Dockerfile

This file was deleted.

67 changes: 0 additions & 67 deletions pig-config/pom.xml

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions pig-config/src/main/resources/banner.txt

This file was deleted.

29 changes: 0 additions & 29 deletions pig-config/src/main/resources/bootstrap.yml

This file was deleted.

Loading

0 comments on commit 23ae865

Please sign in to comment.