https://github.com/devigned/docker-ruby-hello-world
super simple ruby docker hello world
https://github.com/devigned/docker-ruby-hello-world
Last synced: 11 months ago
JSON representation
super simple ruby docker hello world
- Host: GitHub
- URL: https://github.com/devigned/docker-ruby-hello-world
- Owner: devigned
- License: mit
- Created: 2016-06-16T16:26:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-14T23:13:31.000Z (over 9 years ago)
- Last Synced: 2024-10-26T13:07:54.802Z (over 1 year ago)
- Language: Ruby
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-ruby-hello-world
super simple ruby docker hello world
- `export PORT=8080`
- `docker build -t ruby-sample .`
- `ID=$(docker run -e "PORT=$PORT" -p $PORT:$PORT -d ruby-sample)`
- `open "http://$(docker-machine ip):$PORT"`
- `docker logs $ID`
- `docker stop $ID`
- `docker rm $ID`