tdlib-telegram-bot-api-docker/README.md
2020-12-27 19:57:24 +00:00

1.5 KiB

tdlib-telegram-bot-api-docker

Purpose of the project

Produce working, minimal Docker image for the Telegram Bot API server together with easy to use pipeline generating builds on the changes within the main repository managed by Telegram team.

How to use the image

Github authentication

You need to authenticate with github see this thread to pull even the publicly available images. To do so you need to create Personal Access Token with read:packages scope and use it to authenticate your docker client with the Github Docker Registry.

docker login -u $GITHUB_USERNAME -p $GITHUB_TOKEN docker.pkg.github.com

Docker configuration version

docker pull docker.pkg.github.com/lukaszraczylo/tdlib-telegram-bot-api-docker/telegram-api-server:latest
docker run -p 8081:8081 -e TELEGRAM_API_ID=yourApiID -e TELEGRAM_API_HASH=yourApiHash -t docker.pkg.github.com/lukaszraczylo/tdlib-telegram-bot-api-docker/telegram-api-server

Thing to remember: Entrypoint is set to the server binary, therefore you can still modify parameters on the go, as shown below

Setting the log output and verbosity

Set the log output and verbosity

Printing out the help

Print out the help

Kubernetes configuration version

TBC;