1. 更新前端界面和nginx配置文件

2. 更新部署脚本,将所有设置转移到Dockerfile中以便进行部署
This commit is contained in:
EnderByEndera
2024-01-25 17:58:58 +08:00
parent e9313f2420
commit 37b9e1f146
60 changed files with 54569 additions and 26 deletions

View File

@@ -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============"