1、sentinel-dashboard 1.8.8
This commit is contained in:
parent
0e9bb86055
commit
df19576a89
15
sentinel/1.8.8/Dockerfile
Normal file
15
sentinel/1.8.8/Dockerfile
Normal 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"]
|
||||||
BIN
sentinel/1.8.8/sentinel-dashboard-1.8.8.jar
Normal file
BIN
sentinel/1.8.8/sentinel-dashboard-1.8.8.jar
Normal file
Binary file not shown.
6
sentinel/1.8.8/start.sh
Normal file
6
sentinel/1.8.8/start.sh
Normal 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
24
sentinel/README.md
Normal 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
|
||||||
|
```
|
||||||
Loading…
Reference in New Issue
Block a user