Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
KnowledgePlanet
road-map
xfg-frame-archetype-lite
提交
dc0ba878
xfg-frame-archetype-lite
项目概览
KnowledgePlanet
/
road-map
/
xfg-frame-archetype-lite
通知
1157
Star
58
Fork
71
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
xfg-frame-archetype-lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
dc0ba878
编写于
3月 29, 2024
作者:
小傅哥
⛹
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
小傅哥,feat:maven 工程脚手架,增加redis安装
上级
16442f5b
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
118 addition
and
48 deletion
+118
-48
scaffold-lite/README.md
scaffold-lite/README.md
+2
-2
scaffold-lite/pom.xml
scaffold-lite/pom.xml
+15
-15
scaffold-lite/src/main/resources/archetype-resources/__rootArtifactId__-app/src/main/resources/application-dev.yml
...otArtifactId__-app/src/main/resources/application-dev.yml
+1
-0
scaffold-lite/src/main/resources/archetype-resources/docs/dev-ops/docker-compose-app.yml
...s/archetype-resources/docs/dev-ops/docker-compose-app.yml
+2
-2
scaffold-lite/src/main/resources/archetype-resources/docs/dev-ops/docker-compose-environment.yml
...ype-resources/docs/dev-ops/docker-compose-environment.yml
+96
-0
scaffold-lite/src/main/resources/archetype-resources/docs/dev-ops/mysql/docker-compose.yml
...archetype-resources/docs/dev-ops/mysql/docker-compose.yml
+0
-29
scaffold-lite/src/main/resources/archetype-resources/docs/dev-ops/redis/redis.conf
...sources/archetype-resources/docs/dev-ops/redis/redis.conf
+2
-0
未找到文件。
scaffold-lite/README.md
浏览文件 @
dc0ba878
...
...
@@ -5,8 +5,8 @@
### 1. 生成
```
shell
md5 ddd-scaffold-lite-1.
0.pom
>
ddd-scaffold-lite-1.0
.pom.md5
shasum ddd-scaffold-lite-1.
0.pom
>
ddd-scaffold-lite-1.0
.pom.sha1
md5 ddd-scaffold-lite-1.
1.pom
>
ddd-scaffold-lite-1.1
.pom.md5
shasum ddd-scaffold-lite-1.
1.pom
>
ddd-scaffold-lite-1.1
.pom.sha1
```
```
shell
...
...
scaffold-lite/pom.xml
浏览文件 @
dc0ba878
...
...
@@ -5,7 +5,7 @@
<groupId>
io.github.fuzhengwei
</groupId>
<artifactId>
ddd-scaffold-lite
</artifactId>
<version>
1.
0
</version>
<version>
1.
1
</version>
<packaging>
maven-archetype
</packaging>
<name>
ddd-scaffold-lite
</name>
...
...
@@ -79,20 +79,20 @@
</execution>
</executions>
</plugin>
<!-- <plugin>--
>
<!-- <groupId>org.apache.maven.plugins</groupId>--
>
<!-- <artifactId>maven-gpg-plugin</artifactId>--
>
<!-- <version>1.5</version>--
>
<!-- <executions>--
>
<!-- <execution>--
>
<!-- <id>sign-artifacts</id>--
>
<!-- <phase>verify</phase>--
>
<!-- <goals>--
>
<!-- <goal>sign</goal>--
>
<!-- </goals>--
>
<!-- </execution>--
>
<!-- </executions>--
>
<!-- </plugin>--
>
<plugin
>
<groupId>
org.apache.maven.plugins
</groupId
>
<artifactId>
maven-gpg-plugin
</artifactId
>
<version>
1.5
</version
>
<executions
>
<execution
>
<id>
sign-artifacts
</id
>
<phase>
verify
</phase
>
<goals
>
<goal>
sign
</goal
>
</goals
>
</execution
>
</executions
>
</plugin
>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-release-plugin
</artifactId>
...
...
scaffold-lite/src/main/resources/archetype-resources/__rootArtifactId__-app/src/main/resources/application-dev.yml
浏览文件 @
dc0ba878
...
...
@@ -33,6 +33,7 @@ spring:
connection-test-query
:
SELECT
1
type
:
com.zaxxer.hikari.HikariDataSource
# MyBatis 配置【如需使用记得打开】
#mybatis:
# mapper-locations: classpath:/mybatis/mapper/*.xml
# config-location: classpath:/mybatis/config/mybatis-config.xml
...
...
scaffold-lite/src/main/resources/archetype-resources/docs/dev-ops/
app/docker-compose-1.0
.yml
→
scaffold-lite/src/main/resources/archetype-resources/docs/dev-ops/
docker-compose-app
.yml
浏览文件 @
dc0ba878
# /usr/local/bin/docker-compose -f /docs/dev-ops/environment/environment-docker-compose-2.4.yml up -d
version
:
'
3.8'
# docker-compose -f docker-compose-
1.0
.yml up -d
# docker-compose -f docker-compose-
app
.yml up -d
# 你需要修改system为你自身系统的仓库名
services
:
x-api-app
:
${artifactId}
:
image
:
system/${artifactId}:${version}
container_name
:
${artifactId}
restart
:
on-failure
...
...
scaffold-lite/src/main/resources/archetype-resources/docs/dev-ops/docker-compose-environment.yml
0 → 100644
浏览文件 @
dc0ba878
# 命令执行 docker-compose -f docker-compose-environment.yml up -d
version
:
'
3.9'
services
:
mysql
:
image
:
mysql:8.0.32
container_name
:
mysql
command
:
--default-authentication-plugin=mysql_native_password
restart
:
always
environment
:
TZ
:
Asia/Shanghai
MYSQL_ROOT_PASSWORD
:
123456
networks
:
-
my-network
depends_on
:
-
mysql-job-dbdata
ports
:
-
"
13306:3306"
volumes
:
-
./mysql/sql:/docker-entrypoint-initdb.d
healthcheck
:
test
:
[
"
CMD"
,
"
mysqladmin"
,
"
ping"
,
"
-h"
,
"
localhost"
]
interval
:
5s
timeout
:
10s
retries
:
10
start_period
:
15s
volumes_from
:
-
mysql-job-dbdata
# 自动加载数据
mysql-job-dbdata
:
image
:
alpine:3.18.2
container_name
:
mysql-job-dbdata
volumes
:
-
/var/lib/mysql
# phpmyadmin https://hub.docker.com/_/phpmyadmin
phpmyadmin
:
image
:
phpmyadmin:5.2.1
container_name
:
phpmyadmin
hostname
:
phpmyadmin
ports
:
-
8899:80
environment
:
-
PMA_HOST=mysql
-
PMA_PORT=3306
-
MYSQL_ROOT_PASSWORD=123456
depends_on
:
mysql
:
condition
:
service_healthy
networks
:
-
my-network
# Redis
redis
:
image
:
redis:6.2
container_name
:
redis
restart
:
always
hostname
:
redis
privileged
:
true
ports
:
-
16379:6379
volumes
:
-
./redis/redis.conf:/usr/local/etc/redis/redis.conf
command
:
redis-server /usr/local/etc/redis/redis.conf
networks
:
-
my-network
healthcheck
:
test
:
[
"
CMD"
,
"
redis-cli"
,
"
ping"
]
interval
:
10s
timeout
:
5s
retries
:
3
# RedisAdmin https://github.com/joeferner/redis-commander
redis-admin
:
image
:
spryker/redis-commander:0.8.0
container_name
:
redis-admin
hostname
:
redis-commander
restart
:
always
ports
:
-
8081:8081
environment
:
-
REDIS_HOSTS=local:redis:6379
-
HTTP_USER=admin
-
HTTP_PASSWORD=admin
-
LANG=C.UTF-8
-
LANGUAGE=C.UTF-8
-
LC_ALL=C.UTF-8
networks
:
-
my-network
depends_on
:
redis
:
condition
:
service_healthy
networks
:
my-network
:
driver
:
bridge
\ No newline at end of file
scaffold-lite/src/main/resources/archetype-resources/docs/dev-ops/mysql/docker-compose.yml
已删除
100644 → 0
浏览文件 @
16442f5b
# 命令执行 docker-compose up -d
version
:
'
3.9'
services
:
mysql
:
image
:
mysql:8.0.32
container_name
:
mysql
command
:
--default-authentication-plugin=mysql_native_password
restart
:
always
environment
:
TZ
:
Asia/Shanghai
# MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' # 可配置无密码,注意配置 SPRING_DATASOURCE_PASSWORD=
MYSQL_ROOT_PASSWORD
:
123456
MYSQL_USER
:
xfg
MYSQL_PASSWORD
:
123456
depends_on
:
-
mysql-job-dbdata
ports
:
-
"
3306:3306"
volumes
:
-
./sql:/docker-entrypoint-initdb.d
volumes_from
:
-
mysql-job-dbdata
# 自动加载数据
mysql-job-dbdata
:
image
:
alpine:3.18.2
container_name
:
mysql-job-dbdata
volumes
:
-
/var/lib/mysql
\ No newline at end of file
scaffold-lite/src/main/resources/archetype-resources/docs/dev-ops/redis/redis.conf
0 → 100644
浏览文件 @
dc0ba878
bind
0
.
0
.
0
.
0
port
6379
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录