Public | Automated Build

Last pushed: a year ago
Short Description
Hello World web app using Vagrant, Docker (as provisioner), Sinatra, rbenv, bundler, ubuntu 14.14
Full Description

docker-sinatra-hello-world

A simple "Hello World" app using Docker, Sinatra, rbenv and bundler.

Installation

OS X

  • install brew

      /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
  • install software dependencies

      brew tap homebrew/bundle
      brew bundle
    
  • setup project

      cd ~/Code
      git clone git@github.com:mdzhang/vagrant-docker-sinatra-hello-world.git
      cd vagrant-docker-sinatra-hello-world
      vagrant up
    
    • N.B: I encountered an issue after installing Docker on Ubuntu 14.14 with mounting and guest permissions. You may have to

        vagrant plugin install vagrant-vbguest
        vagrant ssh
        sudo apt-get install linux-headers-$(uname -r)
        # Ctrl-D to end session
        vagrant reload --provision
      
  • view app

      open localhost:4567
    

Resources

TODO

  • .dockerignore is not working with Vagrant as we'd hope
Docker Pull Command
Owner
mdzhang

Comments (0)