October 28, 20232 yr Hello. I'm fairly new to unraid and containers and docker and all this, so excuse me if this is a dumb question. I installed fail2ban from linuxserver.io via CA. I wanted to get discord messages when it blocked an IP, so luckily I found a fail2ban mod for just such a purpose. https://github.com/linuxserver/docker-mods/tree/swag-f2bdiscord When I initially configured it like the readme says I was getting errors about it not being able to import geoip2.database. OK I thought, I don't really need a map in the discord message, so I removed the import and call to that from Fail2Ban.py, but then I got an error that it couldn't import requests. The python script imports several modules, so at this point I figured maybe I could just install the modules at runtime, but evidently pip doesn't come with the fail2ban container, so then I found https://github.com/linuxserver/docker-mods/tree/universal-package-install So now I have fail2ban installing pip, which then installs the 3 modules that are needed for the discord integration to run. This seems like it works. I got notified when I rebooted fail2ban that my jails had started in discord. My question is, is this the way to do this? It seems really convoluted and I have to install pip anytime it restarts. I feel like there has got to be a better way. I would appreciate any guidance. Thank you.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.