This is my personal gitlab instance. Feel free to browse my stuff: https://gitlab.greeson.xyz/users/highsaltlevels/projects

Python base

David Greeson requested to merge python-base into master

Created by: HighSaltLevels

What/Why

Saltbot keeps posting duplicate messages when posting poll results or reminders. I think this is due to the way that saltbot is being run.

Previously, I'd use pyinstaller to build a small bundled python app that I'd just copy over to a really slim alpine linux image. unfortunately, I think bash, containerd, or some runtime process is duplicating each coroutine as a separate process in the container. Or at least ps would reveal multiple instances of saltbot running.

With this commit, we'll use a slightly larger base container (was 5.6MB, now 45.1MB), to run saltbot via the python interpreter directly, but still on alpine.

This commit also increases the size of the built container from 18.7MB to 199MB :(

Anything Else

Yeah, There's an auth.env file that you can specify that gets used by the docker-compose.yml file for setting env vars. I figured it'd be best to add it to the .gitignore so that no one accidentally commits their auth.env 😅

Merge request reports