Sign inSign up

sark/createrepo

By sark

•Updated almost 11 years ago

Image
1

4.3K

sark/createrepo repository overview

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

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.

⁠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

Tag summary

Content type

Image

Digest

sha256:3da53c7ac…

Size

75.8 MB

Last updated

almost 11 years ago

docker pull sark/createrepo