A GitHub App built with Probot that a community bot for tidb.
- Git >= 2.13.0 (For husky support)
- Node >= 10
- MYSQL 5.7
- Docker
- Docker Compose >= 3
# Copy .env.example to .env (fill in the relevant environment variables)
copy .env.example .env
# docker-compose up the db and bot
docker-compose -f dev.docker-compose.yml up -d --build
The directory is mounted directly into the ti-community-bot Docker container, which means that the nodemon live-reload server will still just work.
If you change some configuration files or environment variables, we need to restart the service to take effect.
# Rebuild bot Docker image
docker-compose -f dev.docker-compose.yml build bot
# Restart running frontend container (if it's already running)
docker-compose -f dev.docker-compose.yml stop bot
docker-compose -f dev.docker-compose.yml rm bot
docker-compose -f dev.docker-compose.yml up -d
Deploy using the docker-compose file of the production environment.
# docker-compose up the bot
docker-compose -f prod.docker-compose.yml up -d
If you have suggestions for how ti-community-bot could be improved, or want to report a bug, open an issue! We'd love all and any contributions.
For more, check out the Contributing Guide.
ISC © 2020 Rustin-Liu [email protected]