From: Peter Amstutz Date: Fri, 16 Jan 2015 19:05:48 +0000 (-0500) Subject: Add 'apps/arv-web/' from commit 'f9732ad8460d013c2f28363655d0d1b91894dca5' X-Git-Tag: 1.1.0~1814^2~17 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/964ab3dd90ff1508efc0c77378cde2b3a4da1029 Add 'apps/arv-web/' from commit 'f9732ad8460d013c2f28363655d0d1b91894dca5' git-subtree-dir: apps/arv-web git-subtree-mainline: b97ac7f96234cbbb491bdbaade840ab50802f357 git-subtree-split: f9732ad8460d013c2f28363655d0d1b91894dca5 --- 964ab3dd90ff1508efc0c77378cde2b3a4da1029 diff --cc apps/arv-web/Dockerfile index 0000000000,d0a6abe829..d0a6abe829 mode 000000,100644..100644 --- a/apps/arv-web/Dockerfile +++ b/apps/arv-web/Dockerfile diff --cc apps/arv-web/README index 0000000000,0000000000..826092d447 new file mode 100644 --- /dev/null +++ b/apps/arv-web/README @@@ -1,0 -1,0 +1,28 @@@ ++Run a web service from Arvados. ++ ++usage: arv-web.py [-h] --project PROJECT [--port PORT] --image IMAGE ++ ++optional arguments: ++ -h, --help show this help message and exit ++ --project PROJECT Project to watch ++ --port PORT Local bind port ++ --image IMAGE Docker image to run ++ ++ ++This queries an Arvados project and FUSE mounts the most recently modified ++collection into a temporary directory. It then runs the supplied Docker image ++with the collection bind mounted to /mnt inside the container. ++ ++When a new collection is added to the project, or an existing project is ++updated, it will detect the change, it will stop the running Docker container, ++unmount the old collection, mount the new most recently modified collection, ++and restart the Docker container with the new mount. ++ ++The supplied Dockerfile builds a Docker image that runs Apache with /mnt as the ++DocumentRoot. It is configured to run web applications based on Python WSGI, ++Ruby Rack, CGI, to serve static HTML, or simply browse the contents of the ++/public subdirectory of the collection using Apache's default index pages. ++ ++To build the Docker image: ++ ++$ docker build -t arvados/arv-web . diff --cc apps/arv-web/apache2_foreground.sh index 0000000000,fc6028ea83..fc6028ea83 mode 000000,100755..100755 --- a/apps/arv-web/apache2_foreground.sh +++ b/apps/arv-web/apache2_foreground.sh diff --cc apps/arv-web/apache2_vhost index 0000000000,dad4a9b57a..dad4a9b57a mode 000000,100644..100644 --- a/apps/arv-web/apache2_vhost +++ b/apps/arv-web/apache2_vhost diff --cc apps/arv-web/arv-web.py index 0000000000,63d760d2f1..63d760d2f1 mode 000000,100644..100644 --- a/apps/arv-web/arv-web.py +++ b/apps/arv-web/arv-web.py diff --cc apps/arv-web/sample-cgi-app/public/.htaccess index 0000000000,e5145bd37d..e5145bd37d mode 000000,100644..100644 --- a/apps/arv-web/sample-cgi-app/public/.htaccess +++ b/apps/arv-web/sample-cgi-app/public/.htaccess diff --cc apps/arv-web/sample-cgi-app/public/index.cgi index 0000000000,57bc2a9a01..57bc2a9a01 mode 000000,100755..100755 --- a/apps/arv-web/sample-cgi-app/public/index.cgi +++ b/apps/arv-web/sample-cgi-app/public/index.cgi diff --cc apps/arv-web/sample-cgi-app/tmp/.keepkeep index 0000000000,e69de29bb2..e69de29bb2 mode 000000,100644..100644 --- a/apps/arv-web/sample-cgi-app/tmp/.keepkeep +++ b/apps/arv-web/sample-cgi-app/tmp/.keepkeep diff --cc apps/arv-web/sample-rack-app/config.ru index 0000000000,84bb0da994..84bb0da994 mode 000000,100644..100644 --- a/apps/arv-web/sample-rack-app/config.ru +++ b/apps/arv-web/sample-rack-app/config.ru diff --cc apps/arv-web/sample-rack-app/public/.keepkeep index 0000000000,e69de29bb2..e69de29bb2 mode 000000,100644..100644 --- a/apps/arv-web/sample-rack-app/public/.keepkeep +++ b/apps/arv-web/sample-rack-app/public/.keepkeep diff --cc apps/arv-web/sample-rack-app/tmp/.keepkeep index 0000000000,e69de29bb2..e69de29bb2 mode 000000,100644..100644 --- a/apps/arv-web/sample-rack-app/tmp/.keepkeep +++ b/apps/arv-web/sample-rack-app/tmp/.keepkeep diff --cc apps/arv-web/sample-static-page/public/index.html index 0000000000,a2e485c5d8..a2e485c5d8 mode 000000,100644..100644 --- a/apps/arv-web/sample-static-page/public/index.html +++ b/apps/arv-web/sample-static-page/public/index.html diff --cc apps/arv-web/sample-static-page/tmp/.keepkeep index 0000000000,e69de29bb2..e69de29bb2 mode 000000,100644..100644 --- a/apps/arv-web/sample-static-page/tmp/.keepkeep +++ b/apps/arv-web/sample-static-page/tmp/.keepkeep diff --cc apps/arv-web/sample-wsgi-app/passenger_wsgi.py index 0000000000,ea918f0cbf..ea918f0cbf mode 000000,100644..100644 --- a/apps/arv-web/sample-wsgi-app/passenger_wsgi.py +++ b/apps/arv-web/sample-wsgi-app/passenger_wsgi.py diff --cc apps/arv-web/sample-wsgi-app/public/.keepkeep index 0000000000,e69de29bb2..e69de29bb2 mode 000000,100644..100644 --- a/apps/arv-web/sample-wsgi-app/public/.keepkeep +++ b/apps/arv-web/sample-wsgi-app/public/.keepkeep diff --cc apps/arv-web/sample-wsgi-app/tmp/.keepkeep index 0000000000,e69de29bb2..e69de29bb2 mode 000000,100644..100644 --- a/apps/arv-web/sample-wsgi-app/tmp/.keepkeep +++ b/apps/arv-web/sample-wsgi-app/tmp/.keepkeep