(WIP) Hello World web app using Docker, Sinatra, rbenv, bundler, ubuntu 14.14
1.2K
A simple "Hello World" app using Docker, Sinatra, rbenv and bundler.
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
Content type
Image
Digest
Size
209.1 MB
Last updated
about 10 years ago
docker pull mdzhang/docker-sinatra-hello-world