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 <<-EOS
apt-get update
apt-get install -y netcat python python-pip
pip install honcho
EOS
b.put "./Procfile" => "/Procfile",
"./app/" => "/var/app"
b.cmd ["/bin/bash", "-c", "honcho start"]
b.expose "8000"
end
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