user gateway增加test

This commit is contained in:
wulin 2023-10-21 21:10:26 +08:00
parent 6a93f12b98
commit c316f831b9
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,16 @@
# 基础镜像
FROM openjdk:8-jre
# author
MAINTAINER qiuguo
# 挂载目录
VOLUME /home/qiuguo
# 创建目录
RUN mkdir -p /home/qiuguo
# 指定路径
WORKDIR /home/qiuguo
# 复制jar文件到路径
COPY ./jar/iot-box-user-api.jar /home/qiuguo/iot-box-user-api.jar
# 启动网关服务
#ENTRYPOINT ["java","-jar","iot-box-user-api.jar"]
CMD ["sh","-c", "java -jar iot-box-user-api.jar --spring.profiles.active=test"]

View File

@ -0,0 +1,16 @@
# 基础镜像
FROM openjdk:8-jre
# author
MAINTAINER qiuguo
# 挂载目录
VOLUME /home/qiuguo
# 创建目录
RUN mkdir -p /home/qiuguo
# 指定路径
WORKDIR /home/qiuguo
# 复制jar文件到路径
COPY ./jar/iot-gateway.jar /home/qiuguo/iot-gateway.jar
# 启动网关服务
#ENTRYPOINT ["java","-jar","iot-gateway.jar"]
CMD ["sh","-c", "java -jar iot-gateway.jar --spring.profiles.active=test"]

View File

@ -1,5 +1,7 @@
server:
port: 8080
spring:
profiles:
active: prod
application:
name: qiuguo-iot-box-websocket