add Makefile

This commit is contained in:
StarsL.cn 2022-02-23 03:24:42 +08:00
parent 87f45787a8
commit 1565afa3fb
4 changed files with 25 additions and 2 deletions

22
Makefile Normal file
View File

@ -0,0 +1,22 @@
help:
echo "Read Makefile"
build:
cd flask-consul && docker build -t flask-consul:latest .
cd vue-consul && docker build -t nginx-consul:latest .
echo -e "\n\n自行编译的版本注意修改docker-compose.yml中的镜像地址为本地仓库后再启动。"
echo -e "\n\nBlackbox-Manager:\nhttp://{ip}:1026"
push:
docker login --username=starsliao@163.com registry.cn-shenzhen.aliyuncs.com
docker tag nginx-consul:latest registry.cn-shenzhen.aliyuncs.com/starsl/nginx-consul:latest
docker tag nginx-consul:latest registry.cn-shenzhen.aliyuncs.com/starsl/nginx-consul:${vf}
docker tag flask-consul:latest registry.cn-shenzhen.aliyuncs.com/starsl/flask-consul:latest
docker tag flask-consul:latest registry.cn-shenzhen.aliyuncs.com/starsl/flask-consul:${vb}
docker push registry.cn-shenzhen.aliyuncs.com/starsl/nginx-consul:latest
docker push registry.cn-shenzhen.aliyuncs.com/starsl/nginx-consul:${vf}
docker push registry.cn-shenzhen.aliyuncs.com/starsl/flask-consul:latest
docker push registry.cn-shenzhen.aliyuncs.com/starsl/flask-consul:${vb}
update:
docker-compose pull && docker-compose up -d

View File

@ -1,5 +1,6 @@
flask==2.0.2 flask==2.0.2
flask-restful==0.3.9 flask-restful==0.3.9
flask-cors==3.0.10 flask-cors==3.0.10
itsdangerous==2.0.1
Flask-HTTPAuth==4.5.0 Flask-HTTPAuth==4.5.0
requests==2.27.1 requests==2.27.1

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
vf=0.3.0 vf=0.3.1
vb=0.3.0 vb=0.3.1
docker login --username=starsliao@163.com registry.cn-shenzhen.aliyuncs.com docker login --username=starsliao@163.com registry.cn-shenzhen.aliyuncs.com
docker tag nginx-consul:latest registry.cn-shenzhen.aliyuncs.com/starsl/nginx-consul:latest docker tag nginx-consul:latest registry.cn-shenzhen.aliyuncs.com/starsl/nginx-consul:latest