Browse Source

fixed docker config

agapple 5 years ago
parent
commit
cfc95e2b7a
2 changed files with 3 additions and 3 deletions
  1. 2 2
      docker/Dockerfile_admin
  2. 1 1
      docker/image/app.sh

+ 2 - 2
docker/Dockerfile_admin

@@ -26,8 +26,8 @@ RUN \
     yum clean all && \
     true
 
-# 2222 sys , 8000 debug , 8089 web , 11110 admin , 11111 canal , 11112 metrics
-EXPOSE 2222 11110 11111 8000 8089 11112
+# 8089 web
+EXPOSE 8089
 
 WORKDIR /home/admin
 

+ 1 - 1
docker/image/app.sh

@@ -87,7 +87,7 @@ function start_canal() {
         su admin -c 'cd /home/admin/canal-server/bin/ && sh restart.sh local 1>>/tmp/start.log 2>&1'
         sleep 5
         #check start
-        checkStart "canal" "nc 127.0.0.1 $metricsPort -w 1 -z | wc -l" 30
+        checkStart "canal" "nc 127.0.0.1 $adminPort -w 1 -z | wc -l" 30
     else
         metricsPort=`perl -le 'print $ENV{"canal.metrics.pull.port"}'`
         if [ -z "$metricsPort" ] ; then