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 all 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
3 changes: 2 additions & 1 deletion changes/en-us/2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ 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
- [[#6827](https://github.com/apache/incubator-seata/pull/6827)] rename namingserver registry type


### 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 @@ -83,8 +83,10 @@
- [[#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的合并打包
- [[#6827](https://github.com/apache/incubator-seata/pull/6827)] 重命名namingserver注册类型改为seata


### 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
46 changes: 46 additions & 0 deletions distribution/docker/namingserver/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#
# 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.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# the Dockerfile support x86 & arrch64
# build:
# 1. mvn -Prelease-seata -Dmaven.test.skip=true clean install -U
# 2. cd distribution/target/apache-seata-x.x.x-SNAPSHOT-incubating-bin/seata-namingserver/
# 3. docker build --no-cache --build-arg SEATA_VERSION=2.2.0-SNAPSHOT -t seata-namingserver:2.2.0-dev .
#
# run:
# 1. docker run --name=seata-namingserver -d seata-namingserver:2.2.0-dev
#
# https://hub.docker.com/r/apache/seata-namingserver
FROM openjdk:8u342

# set label
LABEL maintainer="Seata <seata.apache.org>"

WORKDIR /$BASE_DIR

# ADD FORM distribution
ADD bin/ /seata-namingserver/bin
ADD lib/ /seata-namingserver/lib
ADD conf/ /seata-namingserver/conf
ADD target /seata-namingserver/target
ADD ../LICENSE ./LICENSE
ADD ../NOTICE ./LICENSE

# set extra environment
ENV LOADER_PATH="/seata-namingserver/lib"
ENV TZ="Asia/Shanghai"
CMD ["bash","-c","/seata-namingserver/bin/seata-namingserver.sh && tail -f /dev/null"]
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
# the Dockerfile support x86 & arrch64
# build:
# 1. mvn -Prelease-seata -Dmaven.test.skip=true clean install -U
# 2. cd distribution/target/seata-server-xxx/seata/
# 3. docker build --no-cache --build-arg SEATA_VERSION=1.6.0-SNAPSHOT -t seata-server:1.6.0-dev .
# 2. cd distribution/target/apache-seata-x.x.x-SNAPSHOT-incubating-bin/seata-server/
# 3. docker build --no-cache --build-arg SEATA_VERSION=2.2.0-SNAPSHOT -t seata-server:2.2.0-dev .
#
# run:
# 1. docker run --name=seata-server -d seata-server:1.6.0-dev
# 1. docker run --name=seata-server -d seata-server:2.2.0-dev
#
# https://hub.docker.com/orgs/seataio
# https://hub.docker.com/r/apache/seata-server
FROM openjdk:8u342

# set label
Expand All @@ -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 conf/ /seata-server/conf
ADD target /seata-server/target
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.

Loading
Loading