diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md index ce93bc3771c..911d6fd466e 100644 --- a/changes/en-us/2.x.md +++ b/changes/en-us/2.x.md @@ -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: diff --git a/changes/zh-cn/2.x.md b/changes/zh-cn/2.x.md index 91322d33a3e..06d833c75b8 100644 --- a/changes/zh-cn/2.x.md +++ b/changes/zh-cn/2.x.md @@ -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: diff --git a/codecov.yml b/codecov.yml index 90f598c7a7c..7700d060120 100644 --- a/codecov.yml +++ b/codecov.yml @@ -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. diff --git a/distribution/docker/namingserver/Dockerfile b/distribution/docker/namingserver/Dockerfile new file mode 100644 index 00000000000..9fe827ae295 --- /dev/null +++ b/distribution/docker/namingserver/Dockerfile @@ -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 " + +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"] diff --git a/distribution/Dockerfile b/distribution/docker/server/Dockerfile similarity index 77% rename from distribution/Dockerfile rename to distribution/docker/server/Dockerfile index 81db190d54a..5f2f281f33f 100644 --- a/distribution/Dockerfile +++ b/distribution/docker/server/Dockerfile @@ -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 @@ -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" diff --git a/distribution/pom.xml b/distribution/pom.xml index 8c3f30e4216..5520c8ce09c 100644 --- a/distribution/pom.xml +++ b/distribution/pom.xml @@ -45,49 +45,17 @@ org.apache.seata - apm-seata-skywalking-plugin + seata-namingserver ${project.version} - - - apache-seata - - - org.apache.maven.plugins - maven-assembly-plugin - ${maven-assembly-plugin.version} - - - release-seata.xml - - - - - make-assembly - install - - single - - - - - - - - - release-seata-namingserver - - false - - org.apache.seata - seata-namingserver + apm-seata-skywalking-plugin ${project.version} - apache-seata-namingserver + apache-seata org.apache.maven.plugins @@ -95,7 +63,7 @@ ${maven-assembly-plugin.version} - release-seata-namingserver.xml + release-seata.xml diff --git a/distribution/release-seata-namingserver.xml b/distribution/release-seata-namingserver.xml deleted file mode 100644 index b5f85bb32bd..00000000000 --- a/distribution/release-seata-namingserver.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - ${project.version}-incubating-bin - true - - dir - tar.gz - zip - - - - - - - bin/seata-namingserver.bat - bin/seata-namingserver.sh - bin/seata-namingserver-setup.sh - - 0755 - - - - ../namingserver/target/lib/ - lib - - - ../namingserver/src/main/resources/logback/ - conf/logback/ - - **/*.xml - - - - - - logs/** - - - - - - - - - - ../namingserver/target/seata-namingserver-exec.jar - target/ - seata-namingserver.jar - - - ../namingserver/src/main/resources/logback-spring.xml - conf/ - - - ../namingserver/src/main/resources/application.yml - conf/ - - - - - - true - - org.apache.seata:namingserver - - - - \ No newline at end of file diff --git a/distribution/release-seata.xml b/distribution/release-seata.xml index d8232894841..04c8f88b608 100644 --- a/distribution/release-seata.xml +++ b/distribution/release-seata.xml @@ -19,7 +19,7 @@ --> ${project.version}-incubating-bin - true + false dir tar.gz @@ -39,18 +39,13 @@ bin/seata-server.sh bin/seata-setup.sh + seata-server/ 0755 - - - logs/** - - - ../server/src/main/resources/logback/ - conf/logback/ + seata-server/conf/logback/ **/*.xml @@ -58,29 +53,53 @@ ../ext/apm-seata-skywalking-plugin/target/ext/skywalking-agent/ - ext/apm-skywalking + seata-server/ext/apm-skywalking ../server/target/lib/ - lib + seata-server/lib ../script/ - script + seata-server/script **/server/ **/logstash/ **/config-center/ + + + + + bin/seata-namingserver.bat + bin/seata-namingserver.sh + bin/seata-namingserver-setup.sh + + seata-namingserver/ + 0755 + + + ../namingserver/target/lib/ + seata-namingserver/lib + + + ../namingserver/src/main/resources/logback/ + seata-namingserver/conf/logback/ + + **/*.xml + + + - Dockerfile + docker/server/Dockerfile Dockerfile + seata-server/ @@ -100,32 +119,53 @@ ../server/target/seata-server-exec.jar - target/ + seata-server/target/ seata-server.jar ../server/src/main/resources/application.yml - conf/ + seata-server/conf/ ../server/src/main/resources/application.example.yml - conf/ + seata-server/conf/ ../server/src/main/resources/application.raft.example.yml - conf/ + seata-server/conf/ ../server/src/main/resources/logback-spring.xml - conf/ + seata-server/conf/ NOTICE.md - lib/jdbc/ + seata-server/lib/jdbc/ + + + + + docker/namingserver/Dockerfile + Dockerfile + seata-namingserver/ + + ../namingserver/target/seata-namingserver-exec.jar + seata-namingserver/target/ + seata-namingserver.jar + + + ../namingserver/src/main/resources/logback-spring.xml + seata-namingserver/conf/ + + + ../namingserver/src/main/resources/application.yml + seata-namingserver/conf/ + + @@ -133,6 +173,7 @@ true org.apache.seata:seata-server + org.apache.seata:seata-namingserver diff --git a/namingserver/pom.xml b/namingserver/pom.xml index 4ed5764fa82..d424f3eb720 100644 --- a/namingserver/pom.xml +++ b/namingserver/pom.xml @@ -162,7 +162,7 @@ - release-seata-namingserver + release-seata false diff --git a/pom.xml b/pom.xml index 0edf5b10600..919ebc962e5 100644 --- a/pom.xml +++ b/pom.xml @@ -264,6 +264,7 @@ **/*.def + **/script/** **/generated/** **/antlr/mysql/parser/*.* **/antlr/mysql/antlr/*.*