Docker Maker
Installation
Add this line to your application's Gemfile:
gem 'docker_maker'
And then execute:
$ bundle
Or install it yourself as:
$ gem install docker_maker
Usage
#!/usr/bin/env ruby
require "docker/maker"
Docker.make(from: "ubuntu:12.10", to: "brianm/buildy") do |b|
b.maintainer "Brian McCallister <[email protected]>"
b.env "DEBIAN_FRONTEND" => "noninteractive",
"USER" => "xncore"
b.bash " apt-get update \n apt-get install -y netcat python python-pip\n pip install honcho\n EOS\n\n b.put \"./Procfile\" => \"/Procfile\",\n \"./app/\" => \"/var/app\"\n b.cmd [\"/bin/bash\", \"-c\", \"honcho start\"]\n b.expose \"8000\"\n\nend\n"
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request