feat: docker调整
This commit is contained in:
@@ -4,7 +4,7 @@ services:
|
|||||||
# 使用前面创建的Dockerfile构建的镜像
|
# 使用前面创建的Dockerfile构建的镜像
|
||||||
build: .
|
build: .
|
||||||
# 指定容器名(可选)
|
# 指定容器名(可选)
|
||||||
container_name: wfc-license-serve
|
container_name: wfc-license-server
|
||||||
# 指定端口映射(例如,将容器的8080端口映射到主机的8080端口)
|
# 指定端口映射(例如,将容器的8080端口映射到主机的8080端口)
|
||||||
ports:
|
ports:
|
||||||
- "8070:8070"
|
- "8070:8070"
|
||||||
|
|||||||
@@ -10,6 +10,6 @@ RUN mkdir -p /opt/wfc
|
|||||||
# 指定路径
|
# 指定路径
|
||||||
WORKDIR /opt/wfc
|
WORKDIR /opt/wfc
|
||||||
# 复制jar文件到路径
|
# 复制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服务
|
# 启动licese-serve服务
|
||||||
ENTRYPOINT ["java","-jar","wfc-license-serve.jar"]
|
ENTRYPOINT ["java","-jar","wfc-license-server.jar"]
|
||||||
|
|||||||
4
pom.xml
4
pom.xml
@@ -10,9 +10,9 @@
|
|||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<groupId>com.modules</groupId>
|
<groupId>com.modules</groupId>
|
||||||
<artifactId>wfc-license-serve</artifactId>
|
<artifactId>wfc-license-server</artifactId>
|
||||||
<version>1.0.0</version>
|
<version>1.0.0</version>
|
||||||
<name>wfc-license-serve</name>
|
<name>wfc-license-server</name>
|
||||||
<description>license serve project</description>
|
<description>license serve project</description>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ public class CustomKeyStoreParam extends AbstractKeyStoreParam {
|
|||||||
@Override
|
@Override
|
||||||
public InputStream getStream() throws IOException {
|
public InputStream getStream() throws IOException {
|
||||||
// final InputStream in = new FileInputStream(new File(storePath));
|
// 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) {
|
if (null == in) {
|
||||||
throw new FileNotFoundException(storePath);
|
throw new FileNotFoundException(storePath);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user