Skip to content

Commit

Permalink
optimize: optimize docker image and oss publish (apache#4805) (apache…
Browse files Browse the repository at this point in the history
…#4807)

Signed-off-by: slievrly <[email protected]>
  • Loading branch information
slievrly authored Jul 22, 2022
1 parent 68e4d39 commit b7dafbf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publishes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
distribution: 'zulu'
java-version: 8
server-id: ossrh
server-id: oss_seata
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD

Expand Down
2 changes: 1 addition & 1 deletion build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<maven-shade-plugin.version>2.4.3</maven-shade-plugin.version>
<maven-dependency-plugin.version>3.0.2</maven-dependency-plugin.version>
<maven-assembly-plugin.version>3.0.0</maven-assembly-plugin.version>
<jib-maven-plugin.version>2.3.0</jib-maven-plugin.version>
<jib-maven-plugin.version>3.2.0</jib-maven-plugin.version>
<!-- Deploy && GPG -->
<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
<nexus-staging-maven-plugin.version>1.6.7</nexus-staging-maven-plugin.version>
Expand Down
12 changes: 11 additions & 1 deletion server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,16 @@
<configuration>
<from>
<image>${IMAGE_NAME}</image>
<platforms>
<platform>
<os>linux</os>
<architecture>amd64</architecture>
</platform>
<platform>
<os>linux</os>
<architecture>arm64</architecture>
</platform>
</platforms>
</from>
<to>
<image>docker.io/seataio/seata-server</image>
Expand All @@ -262,7 +272,7 @@
<jvmFlag>-XX:SurvivorRatio=10</jvmFlag>
<jvmFlag>-XX:MetaspaceSize=128m</jvmFlag>
<jvmFlag>-XX:MaxMetaspaceSize=256m</jvmFlag>
<jvmFlag>-XX:MaxDirectMemorySize=1024m</jvmFlag>
<jvmFlag>-XX:MaxDirectMemorySize=256m</jvmFlag>
<jvmFlag>-XX:-OmitStackTraceInFastThrow</jvmFlag>
<jvmFlag>-XX:-UseAdaptiveSizePolicy</jvmFlag>
<jvmFlag>-XX:+HeapDumpOnOutOfMemoryError</jvmFlag>
Expand Down

0 comments on commit b7dafbf

Please sign in to comment.