Sign inSign up

mdzhang/docker-sinatra-hello-world

By mdzhang

•Updated about 10 years ago

(WIP) Hello World web app using Docker, Sinatra, rbenv, bundler, ubuntu 14.14

Image
0

1.2K

mdzhang/docker-sinatra-hello-world repository overview

⁠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

    echo 'eval "$(docker-machine env)"' >> $HOME/.bashrc
    bash --login '/Applications/Docker/Docker Quickstart Terminal.app/Contents/Resources/Scripts/start.sh'
    source  $HOME/.bashrc
    
    cd ~/Code
    git clone [email protected]:mdzhang/docker-sinatra-hello-world.git
    cd docker-sinatra-hello-world
    docker build -t docker-sinatra-hello-world .
    docker run -d -p 4567:4567 -v $(pwd):/docker-sinatra-hello-world docker-sinatra-hello-world
    
  • view app

    open http://$(docker-machine ip):4567
    

⁠Resources

Tag summary

Content type

Image

Digest

Size

209.1 MB

Last updated

about 10 years ago

docker pull mdzhang/docker-sinatra-hello-world