forked from External/mage
move release configs + add docker file
All checks were successful
/ example-docker-compose (push) Successful in 15m42s
All checks were successful
/ example-docker-compose (push) Successful in 15m42s
This commit is contained in:
parent
1645d030cd
commit
729ccebb2a
6 changed files with 73 additions and 37 deletions
36
Dockerfile
Normal file
36
Dockerfile
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
FROM eclipse-temurin:11
|
||||||
|
|
||||||
|
# Set XMage config defaults
|
||||||
|
ENV LANG=C.UTF-8 \
|
||||||
|
XMAGE_DOCKER_SERVER_ADDRESS="0.0.0.0" \
|
||||||
|
XMAGE_DOCKER_PORT="17171" \
|
||||||
|
XMAGE_DOCKER_SEONDARY_BIND_PORT="17179" \
|
||||||
|
XMAGE_DOCKER_MAX_SECONDS_IDLE="600" \
|
||||||
|
XMAGE_DOCKER_AUTHENTICATION_ACTIVATED="false" \
|
||||||
|
XMAGE_DOCKER_SERVER_NAME="mage-server" \
|
||||||
|
XMAGE_DOCKER_MAILGUN_API_KEY="" \
|
||||||
|
XMAGE_DOCKER_MAILGUN_DOMAIN="" \
|
||||||
|
XMAGE_DOCKER_MAIL_SMTP_HOST="" \
|
||||||
|
XMAGE_DOCKER_MAIL_SMTP_PORT="" \
|
||||||
|
XMAGE_DOCKER_MAIL_USER="" \
|
||||||
|
XMAGE_DOCKER_MAIL_PASSWORD="" \
|
||||||
|
XMAGE_DOCKER_MAIL_FROM_ADDRESS="" \
|
||||||
|
XMAGE_DOCKER_MAX_GAME_THREADS="10" \
|
||||||
|
XMAGE_DOCKER_MAX_AI_OPPONENTS="15" \
|
||||||
|
XMAGE_DOCKER_JAVA_OPTS="-Xmx1024m -XX:MaxPermSize=384m -Dlog4j.configuration=file:./config/log4j.properties"
|
||||||
|
# Install dependencies
|
||||||
|
RUN set -ex && \
|
||||||
|
apt update && \
|
||||||
|
apt install -y curl ca-certificates bash jq unzip
|
||||||
|
|
||||||
|
# Download latest xmage
|
||||||
|
WORKDIR /xmage
|
||||||
|
|
||||||
|
RUN <<EOF
|
||||||
|
wget $(curl -Ls -o /dev/null -w %{url_effective} "https://git.cef.icu/Failure/foul-magics/actions/runs/latest" | sed 's/$/\/artifacts\/server.zip/')
|
||||||
|
unzip server.zip
|
||||||
|
unzip mage-server.zip
|
||||||
|
rm server.zip mage-server.zip
|
||||||
|
EOF
|
||||||
|
|
||||||
|
CMD ["./dockerRun.sh"]
|
||||||
|
|
@ -1,36 +1,36 @@
|
||||||
#SAMPLE SERVER CONFIG (you must enable it by command line)
|
#SAMPLE SERVER CONFIG (you must enable it by command line)
|
||||||
|
|
||||||
#default log level and active appenders (dest for logs)
|
#default log level and active appenders (dest for logs)
|
||||||
log4j.rootLogger=info, console, logfile
|
log4j.rootLogger=info, console, logfile
|
||||||
|
|
||||||
#custom log level for java classes
|
#custom log level for java classes
|
||||||
log4j.logger.com.j256.ormlite=warn
|
log4j.logger.com.j256.ormlite=warn
|
||||||
#log4j.logger.mage.player.ai=warn
|
#log4j.logger.mage.player.ai=warn
|
||||||
|
|
||||||
#console log
|
#console log
|
||||||
log4j.appender.console=org.apache.log4j.ConsoleAppender
|
log4j.appender.console=org.apache.log4j.ConsoleAppender
|
||||||
log4j.appender.console.layout=org.apache.log4j.PatternLayout
|
log4j.appender.console.layout=org.apache.log4j.PatternLayout
|
||||||
log4j.appender.console.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} %-90m =>[%t] %C{1}.%M %n
|
log4j.appender.console.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} %-90m =>[%t] %C{1}.%M %n
|
||||||
log4j.appender.console.Threshold=info
|
log4j.appender.console.Threshold=info
|
||||||
|
|
||||||
#file log - without rolling
|
#file log - without rolling
|
||||||
log4j.appender.logfile=org.apache.log4j.FileAppender
|
log4j.appender.logfile=org.apache.log4j.FileAppender
|
||||||
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
|
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
|
||||||
log4j.appender.logfile.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} %-90m =>[%t] %C{1}.%M %n
|
log4j.appender.logfile.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} %-90m =>[%t] %C{1}.%M %n
|
||||||
log4j.appender.logfile.File=mageserver.log
|
log4j.appender.logfile.File=mageserver.log
|
||||||
|
|
||||||
#file log - rolling by index
|
#file log - rolling by index
|
||||||
log4j.appender.logfileByIndex=org.apache.log4j.RollingFileAppender
|
log4j.appender.logfileByIndex=org.apache.log4j.RollingFileAppender
|
||||||
log4j.appender.logfileByIndex.layout=org.apache.log4j.PatternLayout
|
log4j.appender.logfileByIndex.layout=org.apache.log4j.PatternLayout
|
||||||
log4j.appender.logfileByIndex.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} %-90m =>[%t] %C{1}.%M %n
|
log4j.appender.logfileByIndex.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} %-90m =>[%t] %C{1}.%M %n
|
||||||
log4j.appender.logfileByIndex.File=mageserver.log
|
log4j.appender.logfileByIndex.File=mageserver.log
|
||||||
log4j.appender.logfileByIndex.MaxFileSize=10MB
|
log4j.appender.logfileByIndex.MaxFileSize=10MB
|
||||||
log4j.appender.logfileByIndex.MaxBackupIndex=5
|
log4j.appender.logfileByIndex.MaxBackupIndex=5
|
||||||
log4j.appender.logfileByIndex.append=true
|
log4j.appender.logfileByIndex.append=true
|
||||||
|
|
||||||
#file log - rolling by dayly
|
#file log - rolling by dayly
|
||||||
log4j.appender.logfileByDayly=org.apache.log4j.DailyRollingFileAppender
|
log4j.appender.logfileByDayly=org.apache.log4j.DailyRollingFileAppender
|
||||||
log4j.appender.logfileByDayly.layout=org.apache.log4j.PatternLayout
|
log4j.appender.logfileByDayly.layout=org.apache.log4j.PatternLayout
|
||||||
log4j.appender.logfileByDayly.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} %-90m =>[%t] %C{1}.%M %n
|
log4j.appender.logfileByDayly.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} %-90m =>[%t] %C{1}.%M %n
|
||||||
log4j.appender.logfileByDayly.File=mageserver.log
|
log4j.appender.logfileByDayly.File=mageserver.log
|
||||||
log4j.appender.logfileByDayly.DatePattern='.'yyyy-MM-dd
|
log4j.appender.logfileByDayly.DatePattern='.'yyyy-MM-dd
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
grant {
|
grant {
|
||||||
permission java.security.AllPermission;
|
permission java.security.AllPermission;
|
||||||
};
|
};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue