Skip to content

flavienbwk/elrepo-mirror-docker

Repository files navigation

elrepo-mirror-docker

Status : tested & working ✔️

Downloading & updating

  1. Setup your ElRepo version and releases in mirror.sh

  2. 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.

Serving

  1. Check your mirroring succeeded in ./mirror/* or typing du -sh ./mirror to check the volume

    The default configuration should make you download 3 G

  2. Run the server :

    docker-compose up -d server

    Server will run on localhost:8080

Client configuration

On you server, retrieve and add the GPG key :

wget http://localhost:8080/RPM-GPG-KEY-elrepo.org
rpm --import RPM-GPG-KEY-elrepo.org

To point your ElRepo clients to your mirror, create a /etc/yum.repos.d/local-elrepo-mirror.repo file as follow :

[mymirror-elrepo-base]
name=My CentOS 7 ElRepo local mirror
baseurl=http://localhost:8080/kernel/el7/kernel/el7/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
enabled=1

[mymirror-elrepo-base]
name=My CentOS 7 ElRepo local mirror
baseurl=http://localhost:8080/kernel/el7/kernel/el7/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
enabled=1

👉 Feel free to add a reverse proxy or update the nginx configuration file to secure the mirror with SSL/TLS
👉 Feel free to send pull requests as well !

Releases

No releases published

Packages

No packages published