forked from mj/devopsscripts
初次提交
This commit is contained in:
9
backend/docker-entrypoint.sh
Normal file
9
backend/docker-entrypoint.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
JAR_NAME=$(ls |grep \.jar)
|
||||
chown -R 1000:1000 $APP_HOME
|
||||
if [ ! -d "$LOGS_HOME" ];then
|
||||
gosu 1000 mkdir -p $LOGS_HOME
|
||||
else
|
||||
chown -R 1000:1000 $LOGS_HOME
|
||||
fi
|
||||
exec gosu 1000 java $JAVA_OPS -server $SKYWALKING_OPS $GC_OPS -Duser.timezone=GMT+08 -jar $APP_HOME/$JAR_NAME --spring.profiles.active=$ENV_ACTIVE $APP_OPS
|
||||
Reference in New Issue
Block a user