Sign inSign up

wadahiro/ruby-rpmbuild-container

By wadahiro

Updated almost 11 years ago

Image
0

169

wadahiro/ruby-rpmbuild-container repository overview

Build ruby-2.1.x rpm on Docker container

Requirements

How to build rpm

  1. Clone this project

    $ git clone https://github.com/wadahiro/ruby-rpmbuild-container.git
    
  2. Start the guest machine

    $ cd ruby-rpmbuild-container
    $ vagrant up
    $ vagrant ssh
    
  3. Build docker container

    $ cd /tmp/rpmbuild
    $ sudo docker build -t <USERNAME>/rubybuild .
    
  4. rpmbuild in the container

    $ sudo docker run --rm -v $PWD:/shared:rw -it <CONTAINER_ID> /bin/sh ./rubybuild.sh
    
  5. check the rpm file on virtual machine

    $ ls *.rpm
    ruby-2.1.2-2.el6.x86_64.rpm
    

Enjoy!

Tag summary

Content type

Image

Digest

sha256:3dd38c6eb

Size

153.1 MB

Last updated

almost 11 years ago

docker pull wadahiro/ruby-rpmbuild-container:ruby-2.1.2