I'm trying to get Deluge working in an Alpine Linux Docker container. I've pretty much got it all working except for the GeoIP IP lookups. When my container launches, I just get 'GeoIP Unavailable'.
I found this commit: https://git.deluge-torrent.org/deluge/c ... 805afcfc33
which has the following code:
Code: Select all
+ deluge_geoip_db = deluge.common.resource_filename("deluge", os.path.join("data", "GeoIP.dat"))
+ for geoip_path in (geoip_db, deluge_geoip_db):
+ if os.path.exists(geoip_path):
+ try:
+ self.core.geoip_instance = GeoIP.open(geoip_path, GeoIP.GEOIP_STANDARD)
+ except AttributeError:
+ log.warning("GeoIP Unavailable")
+ break
else:
I've tried installing the following Alpine packages: geoip py-geoip, py2-geoip, py3-geoip but none of them make a difference. I've also tried installing pip and pip install python-geoip but that didn't work either.
This is the dockerfile I've created: https://pastebin.com/5AYj95F9
Can anyone give me any pointers as to what it may be? I'm truly stumped at this point.
Thanks,
bored.