Skip to content

Commit

Permalink
🔖 0.3.0 support nacos 2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lltx committed Jun 11, 2024
1 parent 12c014e commit d017708
Show file tree
Hide file tree
Showing 16 changed files with 328 additions and 993 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: publish github release

on:
workflow_dispatch:
inputs:
releaseversion:
description: 'Release version'
required: true
default: '0.3.0'


jobs:
publish-github-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate changelog
id: changelog
uses: metcalfc/[email protected]
with:
myToken: ${{ secrets.GH_TOKEN }}

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
tag_name: ${{ github.event.inputs.releaseversion }}
release_name: ${{ github.event.inputs.releaseversion }}
body: |
### Things that changed in this release
${{ steps.changelog.outputs.changelog }}
draft: false
prerelease: ${{ contains(github.event.inputs.releaseversion, '-') }}
36 changes: 0 additions & 36 deletions .github/workflows/oss-release-deploy.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/oss-snapshot-deploy.yml

This file was deleted.

26 changes: 17 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Nacos 从 2.2.0 版本开始,可通过 SPI 机制注入多数据源实现插件,并在引入对应数据源实现后,便可在 Nacos 启动时通过读取 application.properties 配置文件中 spring.datasource.platform 配置项选择加载对应多数据源插件.
Nacos 从 2.2.0 版本开始,可通过 SPI 机制注入多数据源实现插件,并在引入对应数据源实现后,便可在 Nacos 启动时通过读取
application.properties 配置文件中 spring.datasource.platform 配置项选择加载对应多数据源插件.

![Nacos 插件化实现
](https://minio.pigx.top/oss/202212/1671179590.jpg)
Expand All @@ -13,27 +14,34 @@ Nacos 从 2.2.0 版本开始,可通过 SPI 机制注入多数据源实现插件,

> 依赖已上传 maven 中央仓库,请勿使用阿里云代理
| NACOS 版本 | 插件版本 |
|---------------|-------|
| 2.2.0 - 2.3.0 | 0.2.0 |
| 2.3.1 - 2.3.2 | 0.3.0 |

```xml
<!--达梦数据库插件-->
<dependency>
<groupId>com.pig4cloud.plugin</groupId>
<artifactId>nacos-datasource-plugin-dm8</artifactId>
<version>0.0.2</version>
<version>${VERSION}</version>
</dependency>

<dependency>
<groupId>com.dameng</groupId>
<artifactId>DmJdbcDriver18</artifactId>
<version>8.1.1.193</version>
<groupId>com.dameng</groupId>
<artifactId>DmJdbcDriver18</artifactId>
<version>8.1.1.193</version>
</dependency>
```

## 2.导入 nacos dm8 数据库脚本
在达梦数据库管理工具上创建名为 `nacos` 的表空间,导入一下数据库脚本
[数据库脚本](./sql/nacos.sql)
## 2. 使用达梦DTS迁移工具

达梦DTS能够支持将Nacos原版的MYSQL数据库迁移至支持达梦数据库的脚本。

<img src='https://minio.pigx.top/oss/202406/1718112771.png' alt='1718112771'/>

## 3.配置 nacos 数据源链接信息

```
db:
num: 1
Expand All @@ -46,8 +54,8 @@ db:
driver-class-name: dm.jdbc.driver.DmDriver
```


## 4.执行数据库平台

```
spring:
datasource:
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.pig4cloud.plugin</groupId>
<artifactId>nacos-datasource-plugin-dm8</artifactId>
<version>0.0.2</version>
<version>0.0.3</version>
<name>nacos-datasource-plugin-dm8</name>
<description>nacos-datasource-plugin-dm8</description>
<url>https://pig4cloud.com</url>
Expand All @@ -25,7 +25,7 @@
</licenses>

<properties>
<nacos.version>2.2.4</nacos.version>
<nacos.version>2.3.2</nacos.version>
<spring.checkstyle.plugin>0.0.32</spring.checkstyle.plugin>
<maven.compiler.version>3.8.1</maven.compiler.version>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down
198 changes: 0 additions & 198 deletions sql/nacos.sql

This file was deleted.

Loading

0 comments on commit d017708

Please sign in to comment.