From 06be487ba6f265abad028559237c589eead9dee4 Mon Sep 17 00:00:00 2001 From: ls Date: Sat, 10 Aug 2024 15:11:32 +0800 Subject: [PATCH] update --- Dockerfile | 22 ++++++++++ docker-compose.yml | 4 +- physical-launcher/Dockerfile | 4 +- settings.xml | 79 ++++++++++++++++++++++++++++++++++++ 4 files changed, 105 insertions(+), 4 deletions(-) create mode 100644 Dockerfile create mode 100644 settings.xml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a5ce954 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +#FROM bellsoft/liberica-openjdk-debian:17 +FROM maven:3.9.8-eclipse-temurin-17 as build + +WORKDIR /app + +COPY settings.xml /root/.m2/settings.xml + +ADD . /app +RUN mvn package -DskipTests=true clean install + + + +FROM bellsoft/liberica-openjdk-debian:17 + +RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime +WORKDIR /app + +EXPOSE 8080 +#ADD ./src/main/resources/jeecg ./config/jeecg +COPY --from=build /app/physical-launcher/target/physical-launcher-3.7.0.jar physical-launcher-3.7.0.jar + +CMD sleep 60;java -Djava.security.egd=file:/dev/./urandom -jar physical-launcher-3.7.0.jar --spring.profiles.active=prod \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index cc57ad1..1229bf7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -58,7 +58,7 @@ services: - physical-redis - physical-minio container_name: physical-launcher - image: reg.laysan.biz/physical/physical-launcher + image: registry.cn-shanghai.aliyuncs.com/physical/physical-boot hostname: physical-launcher ports: - 28080:8080 @@ -69,7 +69,7 @@ services: # build: # context: ../physical-web container_name: physical-web - image: reg.laysan.biz/physical/physical-web + image: registry.cn-shanghai.aliyuncs.com/physical/physical-web depends_on: - physical-launcher networks: diff --git a/physical-launcher/Dockerfile b/physical-launcher/Dockerfile index 2e0c11a..f9d94a7 100644 --- a/physical-launcher/Dockerfile +++ b/physical-launcher/Dockerfile @@ -1,5 +1,5 @@ -FROM bellsoft/liberica-openjdk-debian:17 - +#FROM bellsoft/liberica-openjdk-debian:17 +FROM maven:3.9.8-eclipse-temurin-17 MAINTAINER lslvxy@163.com diff --git a/settings.xml b/settings.xml new file mode 100644 index 0000000..cc8c7ad --- /dev/null +++ b/settings.xml @@ -0,0 +1,79 @@ + + + + + + + aliyun + *,!github,!jeecg,!jeecg-snapshots,!getui-nexus + 阿里云公共仓库 + https://maven.aliyun.com/repository/public + + + huawei + *,!github,!jeecg,!jeecg-snapshots,!getui-nexus + 华为开源镜像站 + https://mirrors.huaweicloud.com/repository/maven/ + + + + + + + dev + + true + + + + center + https://maven.aliyun.com/repository/public + + true + + + true + + + + spring + https://maven.aliyun.com/repository/spring + + true + + + true + + + + jeecg + jeecg Repository + https://maven.jeecg.org/nexus/content/repositories/jeecg + + false + + + + + + + github + + + central + https://repo1.maven.org/maven2 + + + github + https://maven.pkg.github.com/loadup-cloud/loadup-packages + + true + + + + + + + \ No newline at end of file