Status : tested & working ✔️
-
Setup your EPEL version and releases in
mirror.sh
-
Run the
mirror
container :docker-compose build docker-compose up mirror
Tips: We recommend you downloading the mirror from a cloud provider and then transfer the files to your computer.
-
Check your mirroring succeeded in
./mirror/*
or typingdu -sh ./mirror
to check the volumeThe default configuration should make you download 49 G
-
Run the server :
docker-compose up -d server
Server will run on
localhost:8080
On you server, retrieve and add the GPG key :
wget http://localhost:8080/RPM-GPG-KEY-EPEL-7 # https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
rpm --import RPM-GPG-KEY-EPEL-7
To point your EPEL clients to your mirror, create a /etc/yum.repos.d/local-epel-mirror.repo
file as follow :
[mymirror-epel]
name=My CentOS 7 EPEL local mirror
baseurl=http://localhost:8080/7/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
enabled=1
👉 Please cite my work if you're using it ! 👉 Feel free to send pull requests as well !