Docker Ruby Sinatra

Dockerizing a sinatra application gives us practice.
Docker ruby sinatra. Dockerizing a sinatra application lets us learn some of the principles of docker and lets us get a small docker win under our belt without having to confront all the complications of dockerizing a rails application. Viewed 5k times 9. Ruby docker devops marko anastasov feb 18 2019 updated on mar 14 2019 2 min read sinatra is a lean and fun framework to build simple web apps and microservices in ruby. I m running ruby without having to install anything locally.
Ask question asked 5 years 4 months ago. A small hello world http server written in ruby using sinatra web framework. Docker ruby sinatra. I ve tried two forms of dockerfile to get a simple ruby sinatra app running and in both scenarios it fails for different.
Running ruby sinatra inside a docker container not able to connect via mac host or find commands in different scenario. Active 5 years 4 months ago. Instructions the hard way. Checking the image with docker images.
Based on this blog post. Deploying rest apis to docker using ruby and sinatra dzone integration integration zone. The dockerfile is used to build the container image. Ruby is a dynamic reflective object oriented general purpose open source programming language.
The ruby source code is mounted in usr src app. The main sinatra file is configured at container start up via the main app file environment variable. Create test and deploy a ruby based rest api using sinatra docker and cloud 66 for your web application. The docker image exposes port 80.
Sinatra is a very simple ruby web application framework. Docker build t digitalresults sinatra. In the build process it is possible to create a repository tag in the image with the option t repo tag.