1、sentinel-dashboard 1.8.8

This commit is contained in:
yangyufans@126.com 2024-12-18 22:58:00 +08:00
parent 0e9bb86055
commit df19576a89
4 changed files with 45 additions and 0 deletions

15
sentinel/1.8.8/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM openjdk:11-jre-slim
MAINTAINER Yang <yangyufans@qq.com>
RUN mkdir -p /sentinel
COPY sentinel-dashboard-1.8.8.jar /sentinel/
COPY start.sh /sentinel/
RUN chmod 777 /sentinel/start.sh
EXPOSE 8080
CMD ["/sentinel/start.sh"]

Binary file not shown.

6
sentinel/1.8.8/start.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
AppName=sentinel-dashboard-1.8.8.jar
JVM_OPTS="-Dserver.port=8080 -Dcsp.sentinel.dashboard.server=localhost:8080 -Dproject.name=sentinel-dashboard -Duser.timezone=Asia/Shanghai -Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDetails -XX:NewRatio=1 -XX:SurvivorRatio=30 -XX:+UseParallelGC -XX:+UseParallelOldGC"
cd /sentinel
nohup java $JVM_OPTS -jar $AppName

24
sentinel/README.md Normal file
View File

@ -0,0 +1,24 @@
# dynamic 搭建
## 创建镜像
镜像构建源码请[参考](http://git.yangyufans.com/pub/docker/tree/master/sentinel)
```bash
docker build -t ccr.ccs.tencentyun.com/yy-dk/sentinel:1.8.8 .
```
## 从远程仓库下拉
```bash
docker pull ccr.ccs.tencentyun.com/yy-dk/sentinel:1.8.8
```
## 创建容器
```bash
docker run -d \
--privileged=true \
-p 8080:8080 \
--name sentinel-dashboard \
ccr.ccs.tencentyun.com/yy-dk/sentinel:1.8.8
```