add Makefile
This commit is contained in:
parent
87f45787a8
commit
1565afa3fb
|
@ -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
|
|
@ -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
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue