From 5abba5a0fceca075809e2be93fcb7f378610a1f6 Mon Sep 17 00:00:00 2001
From: zhangdaiscott <zhangdaiscott@163.com>
Date: Thu, 21 Jul 2022 14:21:10 +0800
Subject: [PATCH] docker微服务镜像,增加sentinel

---
 jeecg-boot/jeecg-cloud-module/docker-compose.yml              | 14 ++++++++++++++
 jeecg-boot/jeecg-cloud-module/jeecg-cloud-sentinel/Dockerfile | 15 +++++++++++++++
 2 files changed, 29 insertions(+), 0 deletions(-)
 create mode 100644 jeecg-boot/jeecg-cloud-module/jeecg-cloud-sentinel/Dockerfile

diff --git a/jeecg-boot/jeecg-cloud-module/docker-compose.yml b/jeecg-boot/jeecg-cloud-module/docker-compose.yml
index b8be232..2e7c051 100644
--- a/jeecg-boot/jeecg-cloud-module/docker-compose.yml
+++ b/jeecg-boot/jeecg-cloud-module/docker-compose.yml
@@ -43,6 +43,20 @@ services:
     container_name: jeecg-boot-gateway
     hostname: jeecg-boot-gateway
 
+  jeecg-boot-sentinel:
+    restart: on-failure
+    build:
+      context: ./jeecg-cloud-sentinel
+    ports:
+      - 9000:9000
+    depends_on:
+      - jeecg-boot-nacos
+      - jeecg-boot-demo
+      - jeecg-boot-system
+      - jeecg-boot-gateway
+    container_name: jeecg-boot-sentinel
+    hostname: jeecg-boot-sentinel
+
 #  jeecg-boot-xxljob:
 #    build:
 #      context: ./jeecg-cloud-xxljob
diff --git a/jeecg-boot/jeecg-cloud-module/jeecg-cloud-sentinel/Dockerfile b/jeecg-boot/jeecg-cloud-module/jeecg-cloud-sentinel/Dockerfile
new file mode 100644
index 0000000..f232307
--- /dev/null
+++ b/jeecg-boot/jeecg-cloud-module/jeecg-cloud-sentinel/Dockerfile
@@ -0,0 +1,15 @@
+FROM anapsix/alpine-java:8_server-jre_unlimited
+
+MAINTAINER jeecgos@163.com
+
+RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
+
+RUN mkdir -p /jeecg-cloud-sentinel
+
+WORKDIR /jeecg-cloud-sentinel
+
+EXPOSE 8848
+
+ADD ./target/jeecg-cloud-sentinel-3.3.0.jar ./
+
+CMD sleep 5;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-sentinel-3.3.0.jar
--
libgit2 0.22.2