openSUSE / MirrorCache

Download Redirector
https://opensuse.github.io/MirrorCache/
GNU General Public License v2.0
36 stars 12 forks source link

docker image #458

Closed ciari closed 1 month ago

ciari commented 6 months ago

is there a docker image for Mirrorcache? Or can yo provide a Dockerfile?

andrii-suse commented 6 months ago

I found that a container is mostly useful for running a single service, and MirrorCache consists from at least 3 services: WebUI, background job queue and DB (MariaDB or Postgresql). Plus for reliable GeoIP you need addition setup, which is not something which is trivial to put into container (e.g. you need a license if using Maxmind). That gives a lot of variations and it is quite challenging to create 'universal' image. But for basic setup of the services you may get some inspiration from dockerfiles that are used in CI:

(you may comment out line about GeoLite2-City.mmdb , because that is fake GeoIP database only for localhost)

But that still will need setup of the database and enabling the services, which is not hard, but tricky to setup for general case.

I can try to compile something useful, but again - if you plan to use Docker, then it probably will require 3 images - each for each service. With Podman the things are easier, because you can use systemd inside container. Do you plan to use MariaDB or Postgres?

ciari commented 3 months ago

Thanks for the reply, I think MirrorCache is awesome. I am planing to use it for Pardus/Linux OS reporsitory mirror management. I will give it a try with docker-compose for additional service. I am planing to use it with mariadb, actually i am more familiar with mariadb then postgresql

andrii-suse commented 2 months ago

Hej, is there anything else I can do to help here or can the ticke be closed?