THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Adi Linden f76884d570 Added Docker hub info. 9 months ago
Dockerfile A simple ruby sinatra app in Docker. 1 year ago
Gemfile A simple ruby sinatra app in Docker. 1 year ago
README.md Added Docker hub info. 9 months ago
app.rb A simple ruby sinatra app in Docker. 1 year ago

README.md

Dockerized Sinatra (Ruby)

This is just a tiny Docker container that got me started with Docker. Runs a basic Sinatra server …

Get it from Github

git clone https://github.com/adilinden/docker-sinatra-hello.git

Build it

docker build -t adilinden/sinatra-hello .

Or, get it from Docker Hub

docker pull adilinden/sinatra-hello

Run it

docker run --name sinatra-hello \
    -p 8080:80 \
    --rm -it adilinden/sinatra-hello

See the result

Fetch the URL http://localhost:8080/

curl http://localhost:8080/

Share the image

Log into the Docker public registry

docker login

Tag the image

docker tag image username/repository:tag

For example: docker tag fb6af300b4ae adilinden/sinatra-hello:20181105.

Upload the image to the repository

docker push username/repository:tag

For example: docker push adilinden/sinatra-hello:20181105.