Skip to content

Commit

Permalink
fixed docker run
Browse files Browse the repository at this point in the history
  • Loading branch information
agapple committed Nov 15, 2018
1 parent 1d09ee9 commit 046a700
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ htdocs
package-info.java
.DS_Store
*.tar.gz
docker/data/
2 changes: 0 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ RUN \
yum clean all && \
true

# 2222 sys , 8080 web , 2181 2888 3888 zk , 8000 debug , 3306 mysql , 2088 2089 2090 worker
# EXPOSE 2222 1099 8000 8080 2181 2888 3888 3306 2088 2089 2090
ENV DOCKER_DEPLOY_TYPE=VM PATH=$PATH:/usr/local/mysql/bin:/usr/local/mysql/scripts

WORKDIR /home/admin
Expand Down
2 changes: 1 addition & 1 deletion docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ for PORT in $PORTLIST ; do
done
MEMORY="-m 4096m"
LOCALHOST=`getMyIp`
cmd="docker run -it -h $LOCALHOST $CONFIG --name=otter-all $VOLUMNS $NET_MODE $PORTS $MEMORY canal/otter-all"
cmd="docker run -d -it -h $LOCALHOST $CONFIG --name=otter-all $VOLUMNS $NET_MODE $PORTS $MEMORY canal/otter-all"
echo $cmd
eval $cmd

0 comments on commit 046a700

Please sign in to comment.