diff --git a/sentinel/1.8.8/Dockerfile b/sentinel/1.8.8/Dockerfile new file mode 100644 index 0000000..3382dc7 --- /dev/null +++ b/sentinel/1.8.8/Dockerfile @@ -0,0 +1,15 @@ +FROM openjdk:11-jre-slim + +MAINTAINER Yang + +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"] \ No newline at end of file diff --git a/sentinel/1.8.8/sentinel-dashboard-1.8.8.jar b/sentinel/1.8.8/sentinel-dashboard-1.8.8.jar new file mode 100644 index 0000000..6bf68a6 Binary files /dev/null and b/sentinel/1.8.8/sentinel-dashboard-1.8.8.jar differ diff --git a/sentinel/1.8.8/start.sh b/sentinel/1.8.8/start.sh new file mode 100644 index 0000000..2a8080e --- /dev/null +++ b/sentinel/1.8.8/start.sh @@ -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 \ No newline at end of file diff --git a/sentinel/README.md b/sentinel/README.md new file mode 100644 index 0000000..cddacae --- /dev/null +++ b/sentinel/README.md @@ -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 +``` \ No newline at end of file