Skip to content

Sample of running sinatra application in Docker container

Notifications You must be signed in to change notification settings

shime/docker-sinatra

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Runing a sinatra application on Docker

This is sample project for running a sinatra application on Docker.

Usage

Create Image

docker build -t sinatra .

Run it !

ID=$(docker run -p 4567:4567 -d sinatra)

You can access it from your browser, http://localhost:4567/.

Check logs.

docker logs $ID

Stop it.

docker stop $ID

Delete it.

docker rm $ID

OS X

Use Vagrant. In Vagrantfile, just add port forwarding settings.

vagrant up

and

vagrant ssh

Reference

About

Sample of running sinatra application in Docker container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%