Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/4thel00z/tbd
A tool to setup a server for and deploy telegram bots written in golang.
https://github.com/4thel00z/tbd
chatbot ci ci-cd cli deploy deployment deployment-automation go golang pipeline server telegram telegram-bot
Last synced: about 1 month ago
JSON representation
A tool to setup a server for and deploy telegram bots written in golang.
- Host: GitHub
- URL: https://github.com/4thel00z/tbd
- Owner: 4thel00z
- License: gpl-3.0
- Created: 2021-11-26T16:36:40.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-30T23:14:37.000Z (about 3 years ago)
- Last Synced: 2024-11-24T16:52:10.656Z (about 1 month ago)
- Topics: chatbot, ci, ci-cd, cli, deploy, deployment, deployment-automation, go, golang, pipeline, server, telegram, telegram-bot
- Language: Go
- Homepage:
- Size: 124 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# tbd 👉 telegram bot deployer
## Motivation
The idea is to have a tool which deploys telegram bots built in go as docker containers on a vanilla root server.
No fancy schmancy AWS/Azure/GCP stuff needed.## How ?
![Picture of high level architecture](./arch/high_level.png)
On the target server we have the docker (containerd) daemon running while exposing the docker API via an tcp endpoint.
For this matter the docker settings was modified and the docker (contained) daemon restarted.After that this endpoint was forwarded via ssh to the local machine.
The environment variable `DOCKER_HOST` is modified before calling `tbd`, so it calls the remote docker (containerd) daemon
through the ssh tunnel.The `tbd` binary builds (currently only) go programs and builds a distroless docker image where it packs the first build artifact.
Then it runs the artifact remotely on the server.
## License
This project is licensed under the GPL-3 license.