Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize: merge the packaging processes of namingserver and seata-server #6819

Merged
merged 29 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
e6873b4
Merge the packaging processes of Naming Server and Seata Server
funky-eyes Sep 5, 2024
e97be2f
Merge the packaging processes of Naming Server and Seata Server
funky-eyes Sep 5, 2024
70f9bf8
Merge branch '2.x' into 20240905
funky-eyes Sep 5, 2024
79314f7
Merge the packaging processes of Naming Server and Seata Server
funky-eyes Sep 5, 2024
5555ee6
Merge the packaging processes of Naming Server and Seata Server
funky-eyes Sep 5, 2024
75c737c
Update common/src/test/resources/io/TestFile.txt
funky-eyes Sep 5, 2024
f4896a4
Merge the packaging processes of Naming Server and Seata Server
funky-eyes Sep 5, 2024
22baf96
Merge branch '20240905' of github.com:funky-eyes/seata into 20240905
funky-eyes Sep 5, 2024
12567d0
test
funky-eyes Sep 5, 2024
bd245fe
Update script/server/helm/seata-server/templates/NOTES.txt
funky-eyes Sep 5, 2024
f9cf6b7
Update script/config-center/config.txt
funky-eyes Sep 5, 2024
5cc675e
test
funky-eyes Sep 5, 2024
7d0a84f
Merge branch '20240905' of github.com:funky-eyes/seata into 20240905
funky-eyes Sep 5, 2024
d569e3e
test
funky-eyes Sep 5, 2024
f2ee0cc
test
funky-eyes Sep 5, 2024
dad53da
test
funky-eyes Sep 5, 2024
e027a0d
test
funky-eyes Sep 5, 2024
14da294
test
funky-eyes Sep 5, 2024
703d206
test
funky-eyes Sep 5, 2024
08240e2
test
funky-eyes Sep 5, 2024
38ae934
fix ci
funky-eyes Sep 5, 2024
c04ef5e
Merge branch '2.x' into 20240905
funky-eyes Sep 6, 2024
0895c25
support namingserver dockerfile
funky-eyes Sep 8, 2024
18e9730
Merge remote-tracking branch 'origin/20240905' into 20240905
funky-eyes Sep 8, 2024
7661ff4
Merge branch '2.x' into 20240905
funky-eyes Sep 8, 2024
81c0c7a
Update .asf.yaml
funky-eyes Sep 9, 2024
3fb1be4
Update pom.xml
funky-eyes Sep 9, 2024
0e7fe9e
opt
funky-eyes Sep 9, 2024
8c4c38e
Merge branch '2.x' into 20240905
funky-eyes Sep 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

funky-eyes marked this conversation as resolved.
Show resolved Hide resolved
github:
description: ":fire: Seata is an easy-to-use, high-performance, open source distributed transaction solution."
homepage: https://seata.apache.org/
Expand Down
1 change: 1 addition & 0 deletions changes/en-us/2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#6794](https://github.com/apache/incubator-seata/pull/6794)] optimize NacosMockTest UT case
- [[#6806](https://github.com/apache/incubator-seata/pull/6806)] optimize `tableMeta` cache scheduled refresh issue
- [[#6808](https://github.com/apache/incubator-seata/pull/6808)] change version to 2.2.0-SNAPSHOT
- [[#6819](https://github.com/apache/incubator-seata/pull/6819)] merge the packaging processes of namingserver and seata-server


### refactor:
Expand Down
2 changes: 2 additions & 0 deletions changes/zh-cn/2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@
- [[#6793](https://github.com/apache/incubator-seata/pull/6795)] 独立server的meta信息初始化逻辑
- [[#6806](https://github.com/apache/incubator-seata/pull/6806)] 优化`tableMeta`缓存定时刷新问题
- [[#6808](https://github.com/apache/incubator-seata/pull/6808)] 修改版本号为2.2.0-SNAPSHOT
- [[#6819](https://github.com/apache/incubator-seata/pull/6819)] namingserver与server的合并打包


### refactor:

Expand Down
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
Expand Down
9 changes: 4 additions & 5 deletions distribution/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@ WORKDIR /$BASE_DIR

# ADD FORM distribution
ADD bin/ /seata-server/bin
ADD conf/ /seata-server/conf
ADD ext/ /seata-server/ext
ADD lib/ /seata-server/lib
ADD script/ /seata-server/script
ADD target/ /seata-server/target
ADD LICENSE /seata-server/LICENSE
ADD NOTICE /seata-server/NOTICE
ADD lib/ /seata-server/lib
ADD conf/ /seata-server/conf
ADD LICENSE ./LICENSE
ADD NOTICE ./LICENSE

# set extra environment
ENV LOADER_PATH="/seata-server/lib"
Expand Down
40 changes: 4 additions & 36 deletions distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,57 +45,25 @@
</dependency>
<dependency>
<groupId>org.apache.seata</groupId>
<artifactId>apm-seata-skywalking-plugin</artifactId>
<artifactId>seata-namingserver</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<finalName>apache-seata</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven-assembly-plugin.version}</version>
<configuration>
<descriptors>
<descriptor>release-seata.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>install</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release-seata-namingserver</id>
<properties>
<maven.git-commit-id.skip>false</maven.git-commit-id.skip>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.seata</groupId>
<artifactId>seata-namingserver</artifactId>
<artifactId>apm-seata-skywalking-plugin</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<finalName>apache-seata-namingserver</finalName>
<finalName>apache-seata</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven-assembly-plugin.version}</version>
<configuration>
<descriptors>
<descriptor>release-seata-namingserver.xml</descriptor>
<descriptor>release-seata.xml</descriptor>
</descriptors>
</configuration>
<executions>
Expand Down
86 changes: 0 additions & 86 deletions distribution/release-seata-namingserver.xml

This file was deleted.

67 changes: 51 additions & 16 deletions distribution/release-seata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,42 +39,60 @@
<include>bin/seata-server.sh</include>
<include>bin/seata-setup.sh</include>
</includes>
<outputDirectory>seata-server/</outputDirectory>
<fileMode>0755</fileMode>
</fileSet>

<fileSet>
<includes>
<include>logs/**</include>
</includes>
</fileSet>

<fileSet>
<directory>../server/src/main/resources/logback/</directory>
<outputDirectory>conf/logback/</outputDirectory>
<outputDirectory>seata-server/conf/logback/</outputDirectory>
<includes>
<include>**/*.xml</include>
</includes>
</fileSet>

<fileSet>
<directory>../ext/apm-seata-skywalking-plugin/target/ext/skywalking-agent/</directory>
<outputDirectory>ext/apm-skywalking</outputDirectory>
<outputDirectory>seata-server/ext/apm-skywalking</outputDirectory>
</fileSet>

<fileSet>
<directory>../server/target/lib/</directory>
<outputDirectory>lib</outputDirectory>
<outputDirectory>seata-server/lib</outputDirectory>
</fileSet>

<fileSet>
<directory>../script/</directory>
<outputDirectory>script</outputDirectory>
<outputDirectory>seata-server/script</outputDirectory>
<includes>
<include>**/server/</include>
<include>**/logstash/</include>
<include>**/config-center/</include>
</includes>
</fileSet>

<!-- namingserver -->
<fileSet>
<includes>
<include>bin/seata-namingserver.bat</include>
<include>bin/seata-namingserver.sh</include>
<include>bin/seata-namingserver-setup.sh</include>
</includes>
<outputDirectory>seata-namingserver/</outputDirectory>
<fileMode>0755</fileMode>
</fileSet>
<fileSet>
<directory>../namingserver/target/lib/</directory>
<outputDirectory>seata-namingserver/lib</outputDirectory>
</fileSet>
<fileSet>
<directory>../namingserver/src/main/resources/logback/</directory>
<outputDirectory>seata-namingserver/conf/logback/</outputDirectory>
<includes>
<include>**/*.xml</include>
</includes>
</fileSet>

</fileSets>

<files>
Expand All @@ -100,39 +118,56 @@

<file>
<source>../server/target/seata-server-exec.jar</source>
<outputDirectory>target/</outputDirectory>
<outputDirectory>seata-server/target/</outputDirectory>
<destName>seata-server.jar</destName>
</file>

<file>
<source>../server/src/main/resources/application.yml</source>
<outputDirectory>conf/</outputDirectory>
<outputDirectory>seata-server/conf/</outputDirectory>
</file>
<file>
<source>../server/src/main/resources/application.example.yml</source>
<outputDirectory>conf/</outputDirectory>
<outputDirectory>seata-server/conf/</outputDirectory>
</file>
<file>
<source>../server/src/main/resources/application.raft.example.yml</source>
<outputDirectory>conf/</outputDirectory>
<outputDirectory>seata-server/conf/</outputDirectory>
</file>

<file>
<source>../server/src/main/resources/logback-spring.xml</source>
<outputDirectory>conf/</outputDirectory>
<outputDirectory>seata-server/conf/</outputDirectory>
</file>

<file>
<source>NOTICE.md</source>
<outputDirectory>lib/jdbc/</outputDirectory>
<outputDirectory>seata-server/lib/jdbc/</outputDirectory>
</file>

<!-- namingserver -->
<file>
<source>../namingserver/target/seata-namingserver-exec.jar</source>
<outputDirectory>seata-namingserver/target/</outputDirectory>
<destName>seata-namingserver.jar</destName>
</file>
<file>
<source>../namingserver/src/main/resources/logback-spring.xml</source>
<outputDirectory>seata-namingserver/conf/</outputDirectory>
</file>
<file>
<source>../namingserver/src/main/resources/application.yml</source>
<outputDirectory>seata-namingserver/conf/</outputDirectory>
</file>

</files>

<moduleSets>
<moduleSet>
<useAllReactorProjects>true</useAllReactorProjects>
<includes>
<include>org.apache.seata:seata-server</include>
<include>org.apache.seata:seata-namingserver</include>
</includes>
</moduleSet>
</moduleSets>
Expand Down
2 changes: 1 addition & 1 deletion namingserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@

<profiles>
<profile>
<id>release-seata-namingserver</id>
<id>release-seata</id>
<properties>
<dependencies.copy.skip>false</dependencies.copy.skip>
</properties>
Expand Down
Loading