Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Createrepo

Sometimes you'll find you need to be able to collect a bunch of rpm packages you have together in one place and you want to make them available to your systems running yum. It is pretty easy to do.

yum.baseurl.org/wiki/RepoCreate

This project defines the rpm-metadata (repodata) format and maintains one of the programs (createrepo) which create this format from existing rpms and other sources.

createrepo.baseurl.org

How to use this image

run createrepo

docker run -v /srv/repo:/data sark/createrepo:latest

run createrepo with verobe outout

docker run -e verbose=true -v /srv/repo:/data sark/createrepo:latest

run with some other flags

docker run -e verbose=true -e database=true -e update=true -e deltas=true -v /srv/repo:/data createrepo

run with cron

  1. Create the file /etc/cron.hourly/createrepo and add the following:

     #!/bin/bash
     logger "Createrepo: started indexing"
     docker run -e verbose=true -v /srv/repo:/data sark/createrepo:latest
     logger "Createrepo: finished indexing"
    
  2. Add run premissions to cron-file:

     sudo chmod +x /etc/cron.hourly/createrepo
    

License

MIT

Docker Pull Command
Owner
sark
Source Repository

Comments (0)