From 0cc3181182fac75847c3619790b632f78c682c43 Mon Sep 17 00:00:00 2001 From: wangjx <1609724385@qq.com> Date: Wed, 23 Jun 2021 23:05:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=AF=E5=8A=A8=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- sentinel_dashboard_run.sh | 4 ++-- setup_test.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 860f86d2..d0ded343 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,4 @@ ENV active=dev ENV JAVA_OPTS="-Xmx512M -Xms512M" RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone #EXPOSE 8098 -ENTRYPOINT java $JAVA_OPTS -Dserver.port=8098 -Dcsp.sentinel.dashboard.server=$IP:8098 -Dproject.name=sentinel-dashboard -Dsentinel.dashboard.auth.username=telpo -Dsentinel.dashboard.auth.password=telpo#1234 -jar /sentinel_dashboard.jar --spring.profiles.active=$active +ENTRYPOINT java $JAVA_OPTS -Dserver.port=7777 -Dcsp.sentinel.dashboard.server=$IP:7777 -Dproject.name=sentinel-dashboard -Dsentinel.dashboard.auth.username=telpo -Dsentinel.dashboard.auth.password=telpo#1234 -jar /sentinel_dashboard.jar --spring.profiles.active=$active diff --git a/sentinel_dashboard_run.sh b/sentinel_dashboard_run.sh index a8a9ff75..f3216f46 100644 --- a/sentinel_dashboard_run.sh +++ b/sentinel_dashboard_run.sh @@ -10,7 +10,7 @@ if [[ ${environment} == 'pro' ]]; then docker login --username=rzl_wangjx@1111649216405698 --password=telpo.123 registry.cn-shanghai.aliyuncs.com docker pull registry.cn-shanghai.aliyuncs.com/telpo_platform/sentinel_dashboard:$version - docker run -e active=pro -p 8098:8098 -v /home/data/sentineldashboard/log:/var/log/sentineldashboard --restart=always -d --name sentinel_dashboard registry.cn-shanghai.aliyuncs.com/telpo_platform/sentinel_dashboard:$version + docker run -e active=pro -p 7777:7777 -v /home/data/sentineldashboard/log:/var/log/sentineldashboard --restart=always -d --name sentinel_dashboard registry.cn-shanghai.aliyuncs.com/telpo_platform/sentinel_dashboard:$version #删除产生的None镜像 docker rmi -f $(docker images | grep none | awk '{print $3}') docker ps -a @@ -22,7 +22,7 @@ else docker rmi -f $(docker images | grep 139.224.254.18:5000/sentinel_dashboard | awk '{print $3}') docker pull 139.224.254.18:5000/sentinel_dashboard:$version - docker run -p 8098:8098 -v /home/data/sentineldashboard/log:/var/log/sentineldashboard -e active=test --restart=always -d --network host --name sentinel_dashboard 139.224.254.18:5000/sentinel_dashboard:$version + docker run -p 7777:7777 -v /home/data/sentineldashboard/log:/var/log/sentineldashboard -e active=test --restart=always -d --network host --name sentinel_dashboard 139.224.254.18:5000/sentinel_dashboard:$version #删除产生的None镜像 docker rmi -f $(docker images | grep none | awk '{print $3}') diff --git a/setup_test.sh b/setup_test.sh index 1b24a820..96d9fecd 100644 --- a/setup_test.sh +++ b/setup_test.sh @@ -22,6 +22,6 @@ docker rmi -f $(docker images | grep none | awk '{print $3}') # 查看镜像列表 docker images # 启动容器 -docker run -p 8098:8098 -v /home/data/sentineldashboard/log:/var/log/sentineldashboard -d -e active=test --network host --restart=always --name sentinel_dashboard 139.224.254.18:5000/sentinel_dashboard:$image_version +docker run -p 7777:7777 -v /home/data/sentineldashboard/log:/var/log/sentineldashboard -d -e active=test --network host --restart=always --name sentinel_dashboard 139.224.254.18:5000/sentinel_dashboard:$image_version # 查看日志 # docker logs sentinel_dashboard