From 20ef5073ecb028d91e4a3650d48ee997071b0069 Mon Sep 17 00:00:00 2001 From: wangjx <1609724385@qq.com> Date: Wed, 23 Jun 2021 22:31:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AB=AF=E5=8F=A3=E4=B8=BA80?= =?UTF-8?q?98?= 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 80e560ac..2efce623 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,5 +7,5 @@ ENV TimeZone=Asia/Shanghai ENV active=dev ENV JAVA_OPTS="-Xmx512M -Xms512M" RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone -EXPOSE 7777 +EXPOSE 8098 ENTRYPOINT java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -Dserver.port=7777 -Dcsp.sentinel.dashboard.server=localhost:7777 -Dproject.name=sentinel-dashboard -jar /sentinel_dashboard.jar --spring.profiles.active=$active diff --git a/sentinel_dashboard_run.sh b/sentinel_dashboard_run.sh index b3c613da..a8a9ff75 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 8092:8092 -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 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 #删除产生的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 9000: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 + 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 #删除产生的None镜像 docker rmi -f $(docker images | grep none | awk '{print $3}') diff --git a/setup_test.sh b/setup_test.sh index 0675e852..1b24a820 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 9000: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 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 logs sentinel_dashboard