This is a Ruby + Nginx Docker container with lots of goodies. This container its mostly a base for later customization.
This container contains almost everything you need to put Ruby in production. To list a few: imagemagick, git, cron, ssh, nginx, runit, monit, haproxy, among others. It's based on the discourse_docker base container running Ruby 2.0.0-p481 and nginx 1.6.0 stable.
edit: There is a new base image that is almost the same but with Ruby 2.1.2
It doesn't have any database installed because that's meant to be done in another container that extends this one.
This image has a repository in the Docker index you can install it directly using the following command:
$ docker pull albertogg/ruby-nginxThe current latest version tag is: 2.2.1
$ docker pull albertogg/ruby-nginx:2.2.1- Virtualbox 4.3.6+ o VMware (VB 4.3.10 has a bug)
- Vagrant 1.5.4+ (1.5.3 has a small bug)
I'm using Vagrant to build this custom Docker container locally. Before you vagrat up please install this the vagrant-vbguest plugin, if you already have, skip the next step.
$ vagrant plugin install vagrant-vbguestAt this point you may start your new VM and let vagrant provision it, this may take a few minutes, so hold tight.
$ vagrant upOnce the VM provision is complete you are ready to build this same image or any one you need.
If you find any error please open an issue.
To create the same image just type the following command:
$ sudo docker build -t albertogg/ruby-nginx /vagrant/images/baseTo run the container:
$ sudo docker run -i -t albertogg/ruby-nginx /bin/bash