Commit d68de549 by 朽木不可雕也

修改docker部署脚本

parent 42b93225
......@@ -3,13 +3,12 @@
name="automatic-test"
alias docker_local="docker -H 192.168.0.119"
if mvn clean package -Dmaven.test.skip=true -P test; then
docker_local container stop ${name}
docker_local container rm ${name}
docker_local container stop ${name} && docker_local container rm ${name}
docker_local image rm ${name}
docker_local build -t ${name} .
docker_local build -t ${name} . &&
docker_local container run -d -t --name=${name} -m=512M --memory-swap=-1 \
--link barrage-crawler-server:barrage-crawler-server \
--link mysqld:mysqld \
${name}
fi
mvn clean
\ No newline at end of file
mvn clean
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment