https://github.com/t-matsuo/docker-reposync
execute reposync and createrepo to create yum repository
https://github.com/t-matsuo/docker-reposync
Last synced: 7 months ago
JSON representation
execute reposync and createrepo to create yum repository
- Host: GitHub
- URL: https://github.com/t-matsuo/docker-reposync
- Owner: t-matsuo
- License: gpl-3.0
- Created: 2018-07-08T12:31:14.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-28T13:06:52.000Z (over 5 years ago)
- Last Synced: 2025-01-28T13:49:24.504Z (8 months ago)
- Language: Shell
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-reposync
Docker image to execute reposync and createrepo to create yum repository.# Usage
## Download CentOS 8 and EPEL repository
```
# docker run --rm -d -it -v /path-to-your-repo-dir:/repo --name reposync tmatsuo/reposync
```## Specify repositry and download
```
# docker run --rm -d -it -v /path-to-your-repo-dir:/repo --name reposync tmatsuo/reposync init
```It create "conf" and "repo" direcotry into /path-to-your-repo-dir and copy default yum.conf and yum.repos.d.
You can customize /path-to-your-repo-dir/conf/yum.repos.d/XXXX.repo.And let's download and create repository.
```
# docker run --rm -d -it -v /path-to-your-repo-dir:/repo --name reposync tmatsuo/reposync
```# ENV
* PROXY
* It specify http proxy server.
* If /path-to-your-repo-dir/conf dir exists, this env is ignored so you have to edit yum.conf manually.