jjuarez / docker-sinatra-app

A dockerized Sinatra application example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Sinatra application example

As you will seen this is only a dockerized Sinatra application example

Getting Started

Just use the makefile, it will guide you through the operations

make help

Usage:
  make <target>

Targets:
 help             Shows this pretty screen
 docker/build     Builds the Docker image
 docker/run       Runs the compose scenario
 docker/stop      Runs the compose scenario

To run the demo you should follow these steps

  1. Make the docker image

    make docker/build
  2. Run the Docker compose scenario:

    make docker/run
  3. Test the application

    curl -s http://localhost:4567/counter | jq

About

A dockerized Sinatra application example


Languages

Language:Makefile 38.3%Language:Ruby 30.6%Language:Dockerfile 27.5%Language:Shell 3.5%