ConsulManager/Makefile

24 lines
1.4 KiB
Makefile
Raw Permalink Normal View History

2022-02-22 19:24:42 +00:00
help:
echo "Read Makefile" && echo "make build" && echo "make push ver=x.x.x"
2022-02-22 19:24:42 +00:00
build:
cd flask-consul && docker build -t flask-consul:latest .
cd vue-consul && docker build -t nginx-consul:latest .
2022-11-04 19:01:25 +00:00
#cd vue-consul && docker build -t nginx-consul:tensuns-latest -f Dockerfile.tensuns .
2022-04-09 01:35:50 +00:00
echo -e "\n\n自行编译的版本注意修改docker-compose.yml中的镜像地址为本地仓库后再启动。\nBlackbox-Manager:\nhttp://{ip}:1026\n"
2022-02-22 19:24:42 +00:00
push:
2022-10-31 17:24:55 +00:00
#docker login --username=starsliao@163.com registry.cn-shenzhen.aliyuncs.com
docker tag nginx-consul:latest swr.cn-south-1.myhuaweicloud.com/starsl.cn/nginx-consul:latest
docker tag nginx-consul:latest swr.cn-south-1.myhuaweicloud.com/starsl.cn/nginx-consul:${ver}
docker tag flask-consul:latest swr.cn-south-1.myhuaweicloud.com/starsl.cn/flask-consul:latest
docker tag flask-consul:latest swr.cn-south-1.myhuaweicloud.com/starsl.cn/flask-consul:${ver}
docker push swr.cn-south-1.myhuaweicloud.com/starsl.cn/nginx-consul:latest
docker push swr.cn-south-1.myhuaweicloud.com/starsl.cn/nginx-consul:${ver}
docker push swr.cn-south-1.myhuaweicloud.com/starsl.cn/flask-consul:latest
docker push swr.cn-south-1.myhuaweicloud.com/starsl.cn/flask-consul:${ver}
2022-11-04 19:01:25 +00:00
#docker tag nginx-consul:tensuns-latest swr.cn-south-1.myhuaweicloud.com/starsl.cn/nginx-consul:tensuns-latest
#docker push swr.cn-south-1.myhuaweicloud.com/starsl.cn/nginx-consul:tensuns-latest
2022-02-22 19:24:42 +00:00
update:
docker-compose pull && docker-compose up -d