From a734dcdd04798a06fcbf3812610d4213feffd791 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Mon, 7 Nov 2022 17:02:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- renren-admin/src/main/docker/dockerstart.sh | 7 +++++++ .../{docker => resources/assembly/bin}/renren-admin.sh | 0 2 files changed, 7 insertions(+) create mode 100644 renren-admin/src/main/docker/dockerstart.sh rename renren-admin/src/main/{docker => resources/assembly/bin}/renren-admin.sh (100%) diff --git a/renren-admin/src/main/docker/dockerstart.sh b/renren-admin/src/main/docker/dockerstart.sh new file mode 100644 index 00000000..ecfb0d18 --- /dev/null +++ b/renren-admin/src/main/docker/dockerstart.sh @@ -0,0 +1,7 @@ +#!/bin/sh +Xmx $1 +VERTICLE_HOME $2 +JAR_FILE $3 +ACTIVE $4 + +java -jar -Dfile.encoding=utf-8 -server -Xshareclasses -Xtune:virtualized -Xms512M -Xmx${Xmx} -XX:ReservedCodeCacheSize=240m -XX:InitialCodeCacheSize=240m -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:ConcGCThreads=1 -XX:ParallelGCThreads=2 -XX:ZCollectionInterval=120 -XX:ZAllocationSpikeTolerance=5 -Duser.timezone=GMT+08 ${VERTICLE_HOME}/renren-admin/${JAR_FILE} --spring.profiles.active=${ACTIVE} diff --git a/renren-admin/src/main/docker/renren-admin.sh b/renren-admin/src/main/resources/assembly/bin/renren-admin.sh similarity index 100% rename from renren-admin/src/main/docker/renren-admin.sh rename to renren-admin/src/main/resources/assembly/bin/renren-admin.sh