Procházet zdrojové kódy

修改端口为8098

master
wangjx před 3 roky
rodič
revize
20ef5073ec
3 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. +1
    -1
      Dockerfile
  2. +2
    -2
      sentinel_dashboard_run.sh
  3. +1
    -1
      setup_test.sh

+ 1
- 1
Dockerfile Zobrazit soubor

@@ -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

+ 2
- 2
sentinel_dashboard_run.sh Zobrazit soubor

@@ -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}')


+ 1
- 1
setup_test.sh Zobrazit soubor

@@ -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

Načítá se…
Zrušit
Uložit