Skip to content

albertogg/ruby-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Ruby + Nginx Docker container with lots of goodies. This container its mostly a base for later customization.

Why this container?

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.

Using this container

This image has a repository in the Docker index you can install it directly using the following command:

$ docker pull albertogg/ruby-nginx

The current latest version tag is: 2.2.1

$ docker pull albertogg/ruby-nginx:2.2.1

Dependencies

Building the image locally

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-vbguest

At this point you may start your new VM and let vagrant provision it, this may take a few minutes, so hold tight.

$ vagrant up

Once 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/base

To run the container:

$ sudo docker run -i -t albertogg/ruby-nginx /bin/bash

About

Ruby and Nginx Docker container with lots of goodies.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages