fixed docker config

This commit is contained in:
agapple
2019-09-01 10:41:00 +08:00
parent 44187d9e3a
commit cfc95e2b7a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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
View File
@@ -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