Skip to content

Build and deploy docbot with GitHub CI #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks
NickVolynkin opened this issue Jun 10, 2022 · 0 comments · Fixed by #20
Closed
3 tasks

Build and deploy docbot with GitHub CI #16

NickVolynkin opened this issue Jun 10, 2022 · 0 comments · Fixed by #20
Assignees

Comments

@NickVolynkin
Copy link

Revive CI for docbot

  • Test dockerfiles on feature branches
  • Deploy to Dokku (VKCS) from the master branch
  • Remove Travis-related code
artembo added a commit that referenced this issue Jun 17, 2022
To make the project more flexible and extendable, tarantoolbot.py file
was split on the several files. Bottle framework was replaced with
Flask as it is easier to connect to Elastic APM server.

- `app.py` contains Flask config, WSGI application and endpoints.
- `github.py` has GitHub class to interact with its API.
- `handles.py` contains handlers which parse request data and
  transfers data to processors
- `processors.py` keeps GitHum commit and issue messages processors
- `settigns.py` - project config
- `utils.py` - project helpers

Added possibility to add any repository to the bot through
doc_repo_urls mapping in `settings.py`.

Added `deploy` workflow to push the project to Dokku server. The
workflow pushes code with `--force` flag, so it will override project
in Dokku even if Dokku repo has different branch or commits order.

`Dockerfile` was refactored for using lightweight python-3.10.4 image
based on Alpine.

To add new repository to the bot, do the following steps:
- add @TarantoolBot user to the source project and to the corresponding
  doc project as well.
- add source to docs repos mapping to `settings.py` in doc_repo_urls
  dictionary.
- push the changes to master, the project will be deployed.
- set up webhook to the source repository and point it to docbot
  service.

Closes #13
Closes #16
Part of tarantool/infra#77
artembo added a commit that referenced this issue Jun 17, 2022
To make the project more flexible and extendable, tarantoolbot.py file
was split on the several files. Bottle framework was replaced with
Flask as it is easier to connect to Elastic APM server.

- `app.py` contains Flask config, WSGI application and endpoints.
- `github.py` has GitHub class to interact with its API.
- `handles.py` contains handlers which parse request data and
  transfers data to processors
- `processors.py` keeps GitHum commit and issue messages processors
- `settigns.py` - project config
- `utils.py` - project helpers

Added possibility to add any repository to the bot through
doc_repo_urls mapping in `settings.py`.

Added `deploy` workflow to push the project to Dokku server. The
workflow pushes code with `--force` flag, so it will override project
in Dokku even if Dokku repo has different branch or commits order.

`Dockerfile` was refactored for using lightweight python-3.10.4 image
based on Alpine.

To add new repository to the bot, do the following steps:
- add @TarantoolBot user to the source project and to the corresponding
  doc project as well.
- add source to docs repos mapping to `settings.py` in doc_repo_urls
  dictionary.
- push the changes to master, the project will be deployed.
- set up webhook to the source repository and point it to docbot
  service.

Closes #13
Closes #16
Part of tarantool/infra#77
artembo added a commit that referenced this issue Jun 17, 2022
To make the project more flexible and extendable, tarantoolbot.py file
was split on the several files. Bottle framework was replaced with
Flask as it is easier to connect to Elastic APM server.

- `app.py` contains Flask config, WSGI application and endpoints.
- `github.py` has GitHub class to interact with its API.
- `handles.py` contains handlers which parse request data and
  transfers data to processors
- `processors.py` keeps GitHum commit and issue messages processors
- `settigns.py` - project config
- `utils.py` - project helpers

Added possibility to add any repository to the bot through
doc_repo_urls mapping in `settings.py`.

Added `deploy` workflow to push the project to Dokku server. The
workflow pushes code with `--force` flag, so it will override project
in Dokku even if Dokku repo has different branch or commits order.

`Dockerfile` was refactored for using lightweight python-3.10.4 image
based on Alpine.

To add new repository to the bot, do the following steps:
- add @TarantoolBot user to the source project and to the corresponding
  doc project as well.
- add source to docs repos mapping to `settings.py` in doc_repo_urls
  dictionary.
- push the changes to master, the project will be deployed.
- set up webhook to the source repository and point it to docbot
  service.

Closes #13
Closes #16
Part of tarantool/infra#77
artembo added a commit that referenced this issue Jun 17, 2022
To make the project more flexible and extendable, tarantoolbot.py file
was split on the several files. Bottle framework was replaced with
Flask as it is easier to connect to Elastic APM server.

- `app.py` contains Flask config, WSGI application and endpoints.
- `github.py` has GitHub class to interact with its API.
- `handles.py` contains handlers which parse request data and
  transfers data to processors
- `processors.py` keeps GitHum commit and issue messages processors
- `settigns.py` - project config
- `utils.py` - project helpers

Added possibility to add any repository to the bot through
doc_repo_urls mapping in `settings.py`.

Added `deploy` workflow to push the project to Dokku server. The
workflow pushes code with `--force` flag, so it will override project
in Dokku even if Dokku repo has different branch or commits order.

`Dockerfile` was refactored for using lightweight python-3.10.4 image
based on Alpine.

To add new repository to the bot, do the following steps:
- add @TarantoolBot user to the source project and to the corresponding
  doc project as well.
- add source to docs repos mapping to `settings.py` in doc_repo_urls
  dictionary.
- push the changes to master, the project will be deployed.
- set up webhook to the source repository and point it to docbot
  service.

Closes #13
Closes #16
Part of tarantool/infra#77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants