1. 更新前端界面和nginx配置文件
2. 更新部署脚本,将所有设置转移到Dockerfile中以便进行部署
This commit is contained in:
@@ -7,14 +7,15 @@ rm -rf .gradle
|
||||
|
||||
cd ..
|
||||
|
||||
docker stop nginx_frontend && docker rm nginx_frontend
|
||||
echo "============start loading nginx============"
|
||||
docker rm -f $(docker ps -a | grep nginx_frontend | awk '{print $1}')
|
||||
docker image rm protection_nginx
|
||||
echo "old containers and images are cleared"
|
||||
echo "============old containers and images are cleared============"
|
||||
|
||||
docker load < realtime_protection/docker-ubuntu/protection_ubuntu.tar
|
||||
|
||||
docker build -t protection_nginx -f realtime_protection/docker-nginx/Dockerfile .
|
||||
echo "built frontend servers"
|
||||
echo "============built frontend servers============"
|
||||
|
||||
docker run -itd --name nginx_frontend -p 8080:8080 protection_nginx
|
||||
echo "started frontend servers"
|
||||
echo "============started frontend servers============"
|
||||
|
||||
Reference in New Issue
Block a user