[ 项目 ] 接入teamcity

This commit is contained in:
zeaslity
2023-06-29 17:09:32 +08:00
parent b7382f01c5
commit ddc515e806
2 changed files with 24 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
# Base images that the image needs to depend on
FROM icederce/eclipse-temurin-11-jre-focal
# Set environment variables
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms2028m -Xmx2048m"
# Set time zone
RUN set -eux; \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime; \
echo $TZ > /etc/timezone \
# Create Folder
RUN mkdir -p /wdd
# Define the work dir
WORKDIR /wdd
# Copy the jar and rename it
COPY ../server/target/server-*.jar /wdd/server.jar
# When the docker container starts, run the jar
ENTRYPOINT exec java ${JAVA_OPTS} -jar /wdd/server.jar

View File

@@ -1,6 +1,6 @@
package io.wdd.server;
import io.wdd.common.beans.status.AgentHealthyStatusEnum;
import io.wdd.rpc.status.AgentHealthyStatusEnum;
import java.util.ArrayList;
import java.util.HashMap;