A flask based telegram bot docker container.
python3.6-stretch-portpython3.6-stretch-socketpython3.6-stretch-port-onbuildpython3.6-stretch-socket-onbuildpython3.6.10-stretch-portpython3.6.10-stretch-socketpython3.6.10-stretch-port-onbuildpython3.6.10-stretch-socket-onbuildpython3.7-stretch-portpython3.7-stretch-socketpython3.7-stretch-port-onbuildpython3.7-stretch-socket-onbuildpython3.7.7-stretch-portpython3.7.7-stretch-socketpython3.7.7-stretch-port-onbuildpython3.7.7-stretch-socket-onbuildpython3.8-buster-portpython3.8-buster-socketpython3.8-buster-port-onbuildpython3.8-buster-socket-onbuildpython3.8.2-buster-portpython3.8.2-buster-socketpython3.8.2-buster-port-onbuildpython3.8.2-buster-socket-onbuild
See https://hub.docker.com/r/luckydonald/telegram-bot/tags for a list of existing image builds.
For version pinning we serve the image with the following tag structure:
python{version}-{flavor}-portpython{version}-{flavor}-port-{commit}python{version}-{flavor}-port-{YYYY-MM-DD}python{version}-{flavor}-port-{YYYY-MM-DD}-{commit}
python{version}-{flavor}-port-onbuildpython{version}-{flavor}-port-{commit}-onbuildpython{version}-{flavor}-port-{YYYY-MM-DD}-onbuildpython{version}-{flavor}-port-{YYYY-MM-DD}-{commit}-onbuild
python{version}-{flavor}-socketpython{version}-{flavor}-socket-{commit}python{version}-{flavor}-socket-{YYYY-MM-DD}python{version}-{flavor}-socket-{YYYY-MM-DD}-{commit}
python{version}-{flavor}-socket-onbuildpython{version}-{flavor}-socket-{commit}-onbuildpython{version}-{flavor}-socket-{YYYY-MM-DD}-onbuildpython{version}-{flavor}-socket-{YYYY-MM-DD}-{commit}-onbuild
The same with -port instead of -socket
Need something else? Create an issue!
Which url to call?
Default: /healthcheck
Allows to overwrite the place where we expect the socket.
Default: /sockets/bots/${URL_PATH}.sock
Allows to overwrite the type of the file socket to use.
All options ending on *-socket.
Currently that's uwsgi, http, https, as well as the lesser known , suwsgi, ssl, http11, fastcgi, fastcgi-nph, scgi, scgi-nph, rawand finallypuwsgi`.
Default: uwsgi
Allows to overwrite the http port we're listening on.
Default: 8080
I'll do that, don't worry. But as I myself always forget how to, I'll write it down anyway:
Gets you a better sed and as well as working sort. Actually some other great programs are also included, fully for free!
$ brew install gnu-sed coreutils
$ new_path='PATH="/usr/local/opt/gnu-sed/libexec/gnubin:/usr/local/opt/coreutils/libexec/gnubin:$PATH"'
$ echo $new_path >> ~/.bashrc
$ eval $new_pathThose are simply done by creating new folders.
rm -r python*
mkdir -p python3.{6{,.10},7{,.7}}/stretch/{port,socket}{,/onbuild}
mkdir -p python3.8{,.2}/buster/{port,socket}{,/onbuild}
Execute the script, and push it to github. Travis will build containers.
$ bash update.shAfter looking at the updated Dockerfiles and the .travis.yml let's git gud.
$ git add -u
$ git commit -m "Updated to latest version"
$ git pushThat's it. Wait for Sir Travis to be done.