如题:
- 项目: https://github.com/better-sre/config
- 基于 go-task + taskfile (替代 Makefile).
使用场景:
- 开发者: 搭建开发环境, 项目初始化(复用公共的脚本), 开箱即用的 docker-compose 集合.
- 运维: docker-compose/k8s/terraform 等脚本(部分迁移 ing)
内容说明:
- 包含很多日常各种语言安装(go/rust/python/flutter/java etc)脚本(跨平台)
- 常用中间件的 docker-compose 脚本: mysql/redis/consul/kafka/rabbitmq/nats 等
- 定制版的 Dockerfile 集合
使用方式:
- 我给了 3 种使用方式, 方便在自己的项目内, 复用这些公共的脚本集.
- 也欢迎感兴趣的朋友, PR 一起来完善.
- 目前对 Mac 的脚本集最完善, 其他 Windows/Linux, 部分需同步.
task rust:install
task go:install
task python:install
task flutter:install
# for docker: check details in ./taskfile/Taskfile_infra_docker.yml
task docker:local:up:mysql
task docker:local:up:redis
task docker:local:up:rabitmq
task docker:local:up:kafka
# for git:
task git:push
task push # auto push to github
- 更多脚本功能, 请自行探索.
- 后续会完善文档部分.
PS:
- 关于 go-task 收集的一些参考: https://github.com/better-sre/awesome-taskfile