3 navsection: installguide
4 title: Install Workbench2 (beta)
7 Copyright (C) The Arvados Authors. All rights reserved.
9 SPDX-License-Identifier: CC-BY-SA-3.0
12 Workbench2 is the web-based user interface for Arvados.
14 {% include 'notebox_begin' %}
15 Workbench2 is the replacement for Arvados Workbench. Workbench2 is currently in <i>beta</i>, it is not yet feature complete.
16 {% include 'notebox_end' %}
18 h2(#install_workbench). Install Workbench2 and dependencies
20 Workbench2 does not require its own database. It is a set of html, javascript and css files that are served as static files from a web server like Nginx or Apache2.
22 On a Debian-based system, install the following package:
25 <pre><code>~$ <span class="userinput">sudo apt-get install arvados-workbench2</span>
29 On a Red Hat-based system, install the following package:
32 <pre><code>~$ <span class="userinput">sudo yum install arvados-workbench2</span>
38 For best performance, we recommend you use Nginx as your Web server to serve Workbench2. Workbench2 consists entirely of static files. To do that:
42 <li>Install Nginx</li>
44 <li><p>Edit the http section of your Nginx configuration to serve Workbench2's files. You might add a block like the following, adding SSL and logging parameters to taste:</p>
47 listen <span class="userinput">[your public IP address]</span>:443 ssl;
48 server_name workbench2.<span class="userinput">uuid-prefix.your.domain</span>;
51 ssl_certificate <span class="userinput">/YOUR/PATH/TO/cert.pem</span>;
52 ssl_certificate_key <span class="userinput">/YOUR/PATH/TO/cert.key</span>;
56 # Workbench2 uses a call to /config.json to bootstrap itself and talk to the desired API server
57 location /config.json {
58 return 200 '{ "API_HOST": "<span class="userinput">uuid-prefix.your.domain</span>" }';
62 root /var/www/arvados-workbench2/workbench2;
64 try_files $uri $uri/ /index.html;
65 if (-f $document_root/maintenance.html) {
73 <li>Restart Nginx.</li>
78 h2. Trusted client setting
80 Log in to Workbench2 once to ensure that the Arvados API server has a record of the Workbench2 client.
82 In the <strong>API server</strong> project root, start the Rails console. {% include 'install_rails_command' %}
84 At the console, enter the following commands to locate the ApiClient record for your Workbench2 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:
86 <notextile><pre><code>irb(main):001:0> <span class="userinput">wb = ApiClient.all.last; [wb.url_prefix, wb.created_at]</span>
87 => ["https://workbench2.<span class="userinput">uuid_prefix.your.domain</span>/", Sat, 20 Apr 2019 01:23:45 UTC +00:00]
88 irb(main):002:0> <span class="userinput">include CurrentApiClient</span>
90 irb(main):003:0> <span class="userinput">act_as_system_user do wb.update_attributes!(is_trusted: true) end</span>
95 h2. Vocabulary configuration (optional)
97 To configure the property vocabulary definition, please visit the "Workbench2 Vocabulary Format":{{site.baseurl}}/admin/workbench2-vocabulary.html page in the Admin section.