Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/networld-to/docker-webapp
This repository includes rvm with ruby version 2.0 and nginx as proxy for ruby on rails or sinatra apps.
https://github.com/networld-to/docker-webapp
Last synced: about 2 months ago
JSON representation
This repository includes rvm with ruby version 2.0 and nginx as proxy for ruby on rails or sinatra apps.
- Host: GitHub
- URL: https://github.com/networld-to/docker-webapp
- Owner: networld-to
- Created: 2013-12-26T17:24:25.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-18T15:27:59.000Z (over 10 years ago)
- Last Synced: 2023-08-07T17:12:50.448Z (over 1 year ago)
- Language: Shell
- Homepage: http://a.networld.to
- Size: 226 KB
- Stars: 3
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-webapp
- nginx
- passenger 4.0.41
- ruby 2.1.2For more versions see Dockerfile.
## Getting Started
Get the image via index.docker.io
$ docker pull networld/docker-webapp
or build from source
$ IMAGE_NAME=networld/docker-webapp
$ docker build --rm -t ${IMAGE_NAME} .Start a container with:
$ docker run --rm -p 127.0.0.1:8181:80 -d -v /path/to/ruby_on_rails_app:/webapp ${IMAGE_NAME}
$ curl http://127.0.0.1:8181 # Test with curl or even better your favorite browser## Boot Script
If available the script `init.sh` under the root directory of the web application is executed during boot time (`/webapp/init.sh`). This script can be used to setup additional components or tasks, e.g. adding cronjobs or starting background workers.
**Important:** Assure that the script is idempotent. That means if executed multiple times it does not change the result. Also keep in mind that the script is executed on each boot and before the web server nginx is started.
For more information see https://index.docker.io/u/networld/docker-webapp/ and
the source code under https://github.com/networld-to/docker-webapp