1. 更新前端界面和Nginx配置

2. 更新Dockerfile设置
This commit is contained in:
EnderByEndera
2024-01-24 16:36:03 +08:00
parent 02dd20743f
commit 0da97a5254
34 changed files with 300 additions and 69 deletions

23
load_docker.sh Normal file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env bash
# 避免build等文件夹被上传引发问题
./gradlew clean
rm -rf log
rm -rf .gradle
cd ..
docker stop nginx_frontend && docker rm nginx_frontend
docker stop springboot_backend && docker rm springboot_backend
docker image rm protection_springboot protection_nginx
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 .
docker build -t protection_springboot -f realtime_protection/docker-springboot/Dockerfile .
echo "built frontend and backend servers"
docker run -itd --name nginx_frontend -p 80:80 protection_nginx
docker run -itd --name springboot_backend -p 8081:8081 protection_springboot
echo "started frontend and backend servers"