https://github.com/namikazebadri/starterkit-sinatra
Sinatra project template with a lot of basic project must-have features, such as containerization and deployments to GCR, ECR, Dockerhub and regular old VM using Github Actions. Also Unit Test, Code Coverage, Static Analysis and Staged Flow (such as dev, staging, uat and production) are part of this project template repository.
https://github.com/namikazebadri/starterkit-sinatra
docker-image dockerhub project-template ruby sinatra sinatra-application
Last synced: about 1 month ago
JSON representation
Sinatra project template with a lot of basic project must-have features, such as containerization and deployments to GCR, ECR, Dockerhub and regular old VM using Github Actions. Also Unit Test, Code Coverage, Static Analysis and Staged Flow (such as dev, staging, uat and production) are part of this project template repository.
- Host: GitHub
- URL: https://github.com/namikazebadri/starterkit-sinatra
- Owner: namikazebadri
- License: mit
- Created: 2021-04-05T07:36:39.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-16T14:20:11.000Z (about 5 years ago)
- Last Synced: 2025-03-11T20:55:26.841Z (over 1 year ago)
- Topics: docker-image, dockerhub, project-template, ruby, sinatra, sinatra-application
- Language: Dockerfile
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sinatra Docker Image
Build docker image for Sinatra application.
## Build Image
To build image run this command (__change the tag name & version with your preferred tag name & version__).
`$ docker build . -t myorganization/myimage:1.0.0`
## Running a Container from Image
To create a container from the image, run this command (__change the tag name & version with your preferred tag name & version__).
`$ docker run -d -p 9292:9292 --name sinatra-app myorganization/myimage:1.0.0`
Then you can access the app from the browser with this url: `http://127.0.0.1:9292`
## Dockerhub image
This repository is proven by running build in Dockerhub, you can see the result [here](https://hub.docker.com/r/namikazebadri/sinatra-app).