{"id":22018530,"url":"https://github.com/flavienbwk/centos-mirror-docker","last_synced_at":"2026-02-13T00:07:29.290Z","repository":{"id":124243291,"uuid":"349465222","full_name":"flavienbwk/centos-mirror-docker","owner":"flavienbwk","description":"Download a CentOS Linux mirror for yum downloads","archived":false,"fork":false,"pushed_at":"2021-03-31T20:52:54.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-08T16:06:18.144Z","etag":null,"topics":["centos","centos-mirror","linux","linux-mirror","mirror","offline","yum"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flavienbwk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-19T15:13:52.000Z","updated_at":"2024-08-22T19:24:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"822838be-c7df-4980-8354-c7f629ec8491","html_url":"https://github.com/flavienbwk/centos-mirror-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flavienbwk/centos-mirror-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fcentos-mirror-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fcentos-mirror-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fcentos-mirror-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fcentos-mirror-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flavienbwk","download_url":"https://codeload.github.com/flavienbwk/centos-mirror-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fcentos-mirror-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29388039,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T00:02:39.825Z","status":"ssl_error","status_checked_at":"2026-02-13T00:00:20.807Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["centos","centos-mirror","linux","linux-mirror","mirror","offline","yum"],"created_at":"2024-11-30T05:12:29.435Z","updated_at":"2026-02-13T00:07:29.267Z","avatar_url":"https://github.com/flavienbwk.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# centos-mirror-docker\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://travis-ci.com/github/flavienbwk/centos-mirror-docker\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://travis-ci.com/flavienbwk/centos-mirror-docker.svg?branch=main\u0026status=passed\"/\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003eStatus : tested \u0026 working :heavy_check_mark:\u003c/p\u003e\n\n## Downloading \u0026 updating\n\n1. Setup your CentOS version and releases in `mirror.sh`\n\n2. Run the `mirror` container :\n\n    ```bash\n    docker-compose build\n    docker-compose up mirror\n    ```\n\n\u003e Tips: We recommend you downloading the mirror from [a cloud provider](https://www.scaleway.com/en/) and then transfer the files to your computer.\n\n## Serving\n\n1. Check your mirroring succeeded in `./mirror/*` or typing `du -sh ./mirror` to check the volume\n\n    The default configuration should make you download _22G_\n\n2. Run the server :\n\n    ```bash\n    docker-compose up -d server\n    ```\n\n    Server will run on [`localhost:8080`](http://localhost:8080)  \n\n## Client configuration\n\nTo point your CentOS clients to your mirror, create a `/etc/yum.repos.d/localmirror.repo` file as follow :\n\n```conf\n[mymirror-base]\nname=My CentOS 7 local mirror for os packages\nbaseurl=http://localhost:8080/7/os/$basearch/\ngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7\nenabled=1\n\n[mymirror-extras]\nname=My CentOS 7 local mirror for extras packages\nbaseurl=http://localhost:8080/7/extras/$basearch/\ngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7\nenabled=1\n\n[mymirror-updates]\nname=My CentOS 7 local mirror for updates packages\nbaseurl=http://localhost:8080/7/updates/$basearch/\ngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7\nenabled=1\n\n[mymirror-centosplus]\nname=My CentOS 7 local mirror for centosplus packages\nbaseurl=http://localhost:8080/7/centosplus/$basearch/\ngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7\nenabled=1\n```\n\n:point_right: Feel free to add a reverse proxy or update the [nginx configuration file](./nginx.conf) to secure the mirror with SSL/TLS  \n:point_right: Feel free to send **pull requests** as well !\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavienbwk%2Fcentos-mirror-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflavienbwk%2Fcentos-mirror-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavienbwk%2Fcentos-mirror-docker/lists"}