[ARVADOS] updated: cc6030b1b1b2f056ee63873e042077fe0f0dd64f
git at public.curoverse.com
git at public.curoverse.com
Fri Apr 18 23:52:03 EDT 2014
Summary of changes:
doc/install/install-api-server.html.textile.liquid | 4 +-
.../install-workbench-app.html.textile.liquid | 42 +++++++++++++++++--
2 files changed, 39 insertions(+), 7 deletions(-)
via cc6030b1b1b2f056ee63873e042077fe0f0dd64f (commit)
from 2c157382b1ecf0175f0356d6c3a457dca942f5f3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit cc6030b1b1b2f056ee63873e042077fe0f0dd64f
Author: Tom Clegg <tom at curoverse.com>
Date: Fri Apr 18 23:46:21 2014 -0400
Add dependency info to Workbench install page. Fix "is_trusted" recipe.
diff --git a/doc/install/install-api-server.html.textile.liquid b/doc/install/install-api-server.html.textile.liquid
index 14f5877..7d09dc5 100644
--- a/doc/install/install-api-server.html.textile.liquid
+++ b/doc/install/install-api-server.html.textile.liquid
@@ -9,7 +9,7 @@ h2. Prerequisites:
# A GNU/Linux (virtual) machine
# A domain name for your api server
-h2. Install dependencies
+h2(#dependencies). Install dependencies
<notextile>
<pre><code>~$ <span class="userinput">sudo apt-get install libcurl3 libcurl3-gnutls libcurl4-openssl-dev \
@@ -17,7 +17,7 @@ h2. Install dependencies
libpq-dev sqlite3 libsqlite3-dev build-essential wget postgresql
</span></code></pre></notextile>
-h2. Install Ruby and bundler
+h2(#ruby). Install Ruby and bundler
We recommend Ruby >= 2.1.
diff --git a/doc/install/install-workbench-app.html.textile.liquid b/doc/install/install-workbench-app.html.textile.liquid
index be6a04d..c9395c6 100644
--- a/doc/install/install-workbench-app.html.textile.liquid
+++ b/doc/install/install-workbench-app.html.textile.liquid
@@ -9,11 +9,40 @@ h2. Prerequisites
# A GNU/linux (virtual) machine (can be shared with the API server)
# A hostname for your Workbench application
+h2. Install dependencies
+
+If you haven't already installed the API server on the same host:
+
+* Install Ruby 2.1 and Bundler: see the "dependencies" and "Ruby" sections on the "API server installation page":install-api-server.html#dependencies for details.
+* Omit postgresql. Workbench doesn't need its own database.
+
+Install graphviz.
+
+<notextile>
+<pre><code>~$ <span class="userinput">sudo apt-get install graphviz</span>
+</code></pre>
+</notextile>
+
h2. Download the source tree
Please follow the instructions on the "Download page":https://arvados.org/projects/arvados/wiki/Download in the wiki.
-The Workbench application is in @arvados/apps/workbench at .
+The Workbench application is in @apps/workbench@ in the source tree.
+
+h2. Install gem dependencies
+
+<notextile>
+<pre><code>~$ <span class="userinput">cd arvados/apps/workbench</span>
+~/arvados/apps/workbench$ <span class="userinput">bundle install</span>
+</code></pre>
+</notextile>
+
+Alternatively, if you don't have sudo/root privileges on the host, install the gems in your own directory instead of installing them system-wide:
+
+<notextile>
+<pre><code>~$ <span class="userinput">cd arvados/apps/workbench</span>
+~/arvados/apps/workbench$ <span class="userinput">bundle install --path=vendor/bundle</span>
+</code></pre></notextile>
h2. Configure the Workbench application
@@ -42,11 +71,14 @@ h2. Trusted client setting
Log in to Workbench once (this ensures that the Arvados API server has a record of the Workbench client).
-In the API server project root, start the rails console. Locate the ApiClient record for your Workbench installation, then set the `is_trusted` flag for the appropriate client record:
+In the API server project root, start the rails console. Locate the ApiClient record for your Workbench installation (typically, while you're setting this up, the @last@ one in the database is the one you want), then set the @is_trusted@ flag for the appropriate client record:
<notextile><pre><code>~/arvados/services/api$ <span class="userinput">RAILS_ENV=development bundle exec rails console</span>
-irb(main):001:0> <span class="userinput">ApiClient.where('url_prefix like ?', '%workbench%')</span>
-=> {:id => 1234}
-irb(main):002:0> <span class="userinput">ApiClient.find(1234).update_attributes is_trusted: true</span>
+irb(main):001:0> <span class="userinput">wb = ApiClient.all.last; [wb.url_prefix, wb.created_at]</span>
+=> ["https://workbench.example.com/", Sat, 19 Apr 2014 03:35:12 UTC +00:00]
+irb(main):002:0> <span class="userinput">include CurrentApiClient</span>
+=> true
+irb(main):003:0> <span class="userinput">act_as_system_user do wb.update_attributes!(is_trusted: true) end</span>
+=> true
</code></pre>
</notextile>
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list