Public | Automated Build

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

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!

Docker Pull Command
Owner
wadahiro

Comments (0)