Postgres + Ruby + Ubuntu + Nginx Server
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

PRUN logo

PRUN server = PostgreSQL + Ruby + Ubuntu + Nginx

Supported by OpenSSH + Chef-solo + Supervisor

Based on:

  • Ubuntu 14.04 LTS and PostgreSQL 9.3
  • Ruby: for version use repo tags

Name 'Prun' means 'Plum' in Romanian language.

Based on Base server

Run the container

Download image and run a container

docker pull jlebrijo/prun
docker run -d -p 2222:22 -i jlebrijo/prun

Inject your SSH public key:

In order to have SSH access you have to copy your public keys into the container. I recommend the following script:

      # Container folder
      if sudo test -d "/var/lib/docker/aufs"; then
      elif sudo test -d "/var/lib/docker/aufs"; then

      ID=$(docker inspect -f   '{{.Id}}' #{container_name})
      echo SSH container folder is $SSH_DIR
      if sudo test ! -d "$SSH_DIR" ; then
        sudo mkdir $SSH_DIR

      echo Copying authorized_keys and files
      sudo touch $SSH_DIR/authorized_keys
      sudo cat ~/.ssh/authorized_keys | sudo tee -a $SSH_DIR/authorized_keys
      sudo cat ~/.ssh/ | sudo tee -a $SSH_DIR/authorized_keys
      sudo chmod 600 $SSH_DIR/authorized_keys

DevOps workflow for Rails Developers

For a detailed day-to-day operations on a PRUN server let's read "DevOps workflow with Docker/Chef/Capistrano for Rails Applications". Here you will see how to:

  • Manage configuration with Chef knife solo cook -p 2222.
  • Make Continuous Deployments with Capistrano cap production deploy.
  • Run server in localhost and in a DigitalOcean CoreOS server.


  1. Fork it ([my-github-username]/prun-ops/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request


MIT License. Made by