mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-30 04:54:25 +08:00
Compare commits
2 Commits
3ca48e1ca1
...
6eba693982
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6eba693982 | ||
|
|
b871ae542a |
@@ -55,8 +55,8 @@ if "%command%"=="restart" (
|
|||||||
set "webDir=%baseDir%\webapp"
|
set "webDir=%baseDir%\webapp"
|
||||||
set "logDir=%baseDir%\logs"
|
set "logDir=%baseDir%\logs"
|
||||||
set "classpath=%baseDir%;%webDir%;%libDir%\*;%confDir%"
|
set "classpath=%baseDir%;%webDir%;%libDir%\*;%confDir%"
|
||||||
set "java-command=-Dfile.encoding=UTF-8 -Duser.language=Zh -Duser.region=CN -Duser.timezone=GMT+08 -Dspring.profiles.active=%profile% -Xms1024m
|
set "property=-Dfile.encoding=UTF-8 -Duser.language=Zh -Duser.region=CN -Duser.timezone=GMT+08 -Dspring.profiles.active=%profile%"
|
||||||
-Xmx1024m -cp %CLASSPATH% %MAIN_CLASS%"
|
set "java-command=%property% -Xms1024m -Xmx1024m -cp %CLASSPATH% %MAIN_CLASS%"
|
||||||
if not exist %logDir% mkdir %logDir%
|
if not exist %logDir% mkdir %logDir%
|
||||||
start /B java %java-command% >nul 2>&1
|
start /B java %java-command% >nul 2>&1
|
||||||
timeout /t 10 >nul
|
timeout /t 10 >nul
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
# Use an official OpenJDK runtime as a parent image
|
FROM supersonicbi/supersonic:0.9.10-SNAPSHOT
|
||||||
FROM openjdk:21-jdk-bullseye
|
|
||||||
|
|
||||||
# Set the working directory in the container
|
# Set the working directory in the container
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
# Delete old supersonic installation directory and the symbolic link
|
||||||
|
RUN rm -rf /usr/src/app/supersonic-standalone-0.9.10-SNAPSHOT
|
||||||
|
RUN rm -f /usr/src/app/supersonic-standalone-latest
|
||||||
|
|
||||||
# Argument to pass in the supersonic version at build time
|
# Argument to pass in the supersonic version at build time
|
||||||
ARG SUPERSONIC_VERSION
|
ARG SUPERSONIC_VERSION
|
||||||
|
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ spring:
|
|||||||
url: jdbc:postgresql://${DB_HOST}:${DB_PORT:5432}/${DB_NAME}?stringtype=unspecified
|
url: jdbc:postgresql://${DB_HOST}:${DB_PORT:5432}/${DB_NAME}?stringtype=unspecified
|
||||||
username: ${DB_USERNAME}
|
username: ${DB_USERNAME}
|
||||||
password: ${DB_PASSWORD}
|
password: ${DB_PASSWORD}
|
||||||
|
|
||||||
sql:
|
sql:
|
||||||
init:
|
init:
|
||||||
|
continue-on-error: true
|
||||||
mode: always
|
mode: always
|
||||||
username: ${DB_USERNAME}
|
username: ${DB_USERNAME}
|
||||||
password: ${DB_PASSWORD}
|
password: ${DB_PASSWORD}
|
||||||
|
|||||||
Reference in New Issue
Block a user