From 8fd2325d4651ffc189cd1073db22ee672cda865a Mon Sep 17 00:00:00 2001 From: caiyuchao Date: Tue, 15 Apr 2025 17:42:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20docker=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 2 +- dockerfile | 4 ++-- pom.xml | 4 ++-- .../org/wfc/common/license/license/CustomKeyStoreParam.java | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index bc88fa5..bba95fa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: # 使用前面创建的Dockerfile构建的镜像 build: . # 指定容器名(可选) - container_name: wfc-license-serve + container_name: wfc-license-server # 指定端口映射(例如,将容器的8080端口映射到主机的8080端口) ports: - "8070:8070" diff --git a/dockerfile b/dockerfile index 7fd023e..6a9ea68 100644 --- a/dockerfile +++ b/dockerfile @@ -10,6 +10,6 @@ RUN mkdir -p /opt/wfc # 指定路径 WORKDIR /opt/wfc # 复制jar文件到路径 -COPY target/wfc-license-serve-1.0.0.jar /opt/wfc/wfc-license-serve.jar +COPY target/wfc-license-server-1.0.0.jar /opt/wfc/wfc-license-server.jar # 启动licese-serve服务 -ENTRYPOINT ["java","-jar","wfc-license-serve.jar"] +ENTRYPOINT ["java","-jar","wfc-license-server.jar"] diff --git a/pom.xml b/pom.xml index e0fa034..db82752 100644 --- a/pom.xml +++ b/pom.xml @@ -10,9 +10,9 @@ com.modules - wfc-license-serve + wfc-license-server 1.0.0 - wfc-license-serve + wfc-license-server license serve project diff --git a/src/main/java/org/wfc/common/license/license/CustomKeyStoreParam.java b/src/main/java/org/wfc/common/license/license/CustomKeyStoreParam.java index 7abf962..309f876 100644 --- a/src/main/java/org/wfc/common/license/license/CustomKeyStoreParam.java +++ b/src/main/java/org/wfc/common/license/license/CustomKeyStoreParam.java @@ -53,7 +53,7 @@ public class CustomKeyStoreParam extends AbstractKeyStoreParam { @Override public InputStream getStream() throws IOException { // final InputStream in = new FileInputStream(new File(storePath)); - InputStream in = this.getClass().getClassLoader().getResourceAsStream(storePath); + final InputStream in = this.getClass().getClassLoader().getResourceAsStream(storePath); if (null == in) { throw new FileNotFoundException(storePath); }