From be54a6b9fa234451ccc468ec344d47154a3697ba Mon Sep 17 00:00:00 2001
From: xuyang <748613696@qq.com>
Date: Thu, 17 Aug 2023 20:40:25 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E6=96=87=E4=BB=B6=E4=B8=8A?=
=?UTF-8?q?=E4=BC=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
iot-access/access-boot/pom.xml | 1 +
iot-analysis/analysis-stat/stat-boot/Dockerfile | 12 ++++++++++++
iot-analysis/analysis-stat/stat-boot/pom.xml | 2 +-
iot-message/message-boot/Dockerfile | 12 ++++++++++++
iot-message/message-boot/pom.xml | 2 +-
5 files changed, 27 insertions(+), 2 deletions(-)
create mode 100644 iot-analysis/analysis-stat/stat-boot/Dockerfile
create mode 100644 iot-message/message-boot/Dockerfile
diff --git a/iot-access/access-boot/pom.xml b/iot-access/access-boot/pom.xml
index 1749c49..6345f2e 100644
--- a/iot-access/access-boot/pom.xml
+++ b/iot-access/access-boot/pom.xml
@@ -63,6 +63,7 @@
common-mq
${project.version}
+
diff --git a/iot-analysis/analysis-stat/stat-boot/Dockerfile b/iot-analysis/analysis-stat/stat-boot/Dockerfile
new file mode 100644
index 0000000..f259322
--- /dev/null
+++ b/iot-analysis/analysis-stat/stat-boot/Dockerfile
@@ -0,0 +1,12 @@
+FROM eclipse-temurin:8-jdk-centos7
+MAINTAINER hongawen_13914774158@163.com
+ENV JAVA_OPTS="-Xms1024m -Xmx1024m"
+# 挂载时区的目录
+VOLUME /usr/share/zoneinfo
+# 设置时区为上海
+ENV TZ=Asia/Shanghai
+# 设置时区信息
+RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
+ADD target/statboot.jar statboot.jar
+ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /statboot.jar
+EXPOSE 10304
\ No newline at end of file
diff --git a/iot-analysis/analysis-stat/stat-boot/pom.xml b/iot-analysis/analysis-stat/stat-boot/pom.xml
index 39f762d..2f41cc1 100644
--- a/iot-analysis/analysis-stat/stat-boot/pom.xml
+++ b/iot-analysis/analysis-stat/stat-boot/pom.xml
@@ -109,7 +109,7 @@
com.spotify
docker-maven-plugin
- 1.0.0
+ 1.2.2
diff --git a/iot-message/message-boot/Dockerfile b/iot-message/message-boot/Dockerfile
new file mode 100644
index 0000000..90f75dd
--- /dev/null
+++ b/iot-message/message-boot/Dockerfile
@@ -0,0 +1,12 @@
+FROM eclipse-temurin:8-jdk-centos7
+MAINTAINER hongawen_13914774158@163.com
+ENV JAVA_OPTS="-Xms1024m -Xmx1024m"
+# 挂载时区的目录
+VOLUME /usr/share/zoneinfo
+# 设置时区为上海
+ENV TZ=Asia/Shanghai
+# 设置时区信息
+RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
+ADD target/messageboot.jar messageboot.jar
+ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /messageboot.jar
+EXPOSE 10302
\ No newline at end of file
diff --git a/iot-message/message-boot/pom.xml b/iot-message/message-boot/pom.xml
index e2fd02b..b6fed8b 100644
--- a/iot-message/message-boot/pom.xml
+++ b/iot-message/message-boot/pom.xml
@@ -90,7 +90,7 @@
com.spotify
docker-maven-plugin
- 1.0.0
+ 1.2.2