Sign inSign up

msagency/msa-image-ruby

By msagency

•Updated over 9 years ago

This Docker image can be used to create Ruby RESTful microservices.

Image
1

1.2K

msagency/msa-image-ruby repository overview

⁠msa-image-ruby

This Docker image can be used to create Ruby RESTful microservices. It includes the following components :

⁠Nginx configuration

Nginx is preconfigured to listen on the port 80, and act as a reverse proxy to any HTTP application running on the port 8080.

Nginx will foward every HTTP request to the port 8080, except for the following URLs, since they are reserved by convention.

Any microservice built with this image should overrite the following files via the COPY command in the Dockerfile, to update these endpoints.

FileURL
/opt/ms/VERSION/ms/version
/opt/ms/NAME/ms/name
/opt/ms/Readme.md/ms/readme.md
/opt/swagger/swagger.json/swagger/swagger.json

Other endpoints available :

ComponentURLDescription
msa-readme-parser/ms/readme.htmlHTML version of the Readme
msa-swagger-ui/swagger/#/Swagger-UI
msa-nginx-dashboard/nginx/stats.htmlDashboard with stats on Nginx
msa-nginx-dashboard/nginx/stats.jsonStats on Nginx as JSON

Also included in the default Nginx configuration :

  • CORS headers
  • Gzip compression
  • Keep-alive
  • 50 MB cache
⁠Usage

To use this image simply this line at the top of your Dockerfile :

FROM msagency/msa-image-ruby:latest

An example can be found here : msa-template-ruby⁠

⁠About

A project by the Microservices Agency⁠.

Tag summary

Content type

Image

Digest

Size

53.1 MB

Last updated

over 9 years ago

docker pull msagency/msa-image-ruby