From 3d2c9602f0309c1b25a434c053561c0c98dafbce Mon Sep 17 00:00:00 2001 From: Tim Pierce Date: Tue, 25 Feb 2014 17:58:19 -0500 Subject: [PATCH] Fix documentation & workbench build permissions (refs #2221) --- .../tutorial-keep.html.textile.liquid | 18 ++---------------- docker/workbench/Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/doc/user/tutorials/tutorial-keep.html.textile.liquid b/doc/user/tutorials/tutorial-keep.html.textile.liquid index e02082388f..243a4834b4 100644 --- a/doc/user/tutorials/tutorial-keep.html.textile.liquid +++ b/doc/user/tutorials/tutorial-keep.html.textile.liquid @@ -90,21 +90,7 @@ In this example we will use @c1bad4b39ca5a924e481008009d94e32+210@ which we adde The command @arv keep get@ fetches the contents of the locator @c1bad4b39ca5a924e481008009d94e32+210@. This is a locator for a collection data block, so it fetches the contents of the collection. In this example, this collection consists of a single file @var-GS000016015-ASM.tsv.bz2@ which is 227212247 bytes long, and is stored using four sequential data blocks, 204e43b8a1185621ca55a94839582e6f+67108864, b9677abbac956bd3e86b1deb28dfac03+67108864, fc15aff2a762b13f521baf042140acec+67108864, 323d2a3ce20370c4ca1d3462a344f8fd+25885655. -Let's use @arv keep get@ to download the first datablock: - -notextile.
/scratch/you$ arv keep get 204e43b8a1185621ca55a94839582e6f+67108864 > block1
- -Let's look at the size and compute the md5 hash of @block1@: - - -
/scratch/you$ ls -l block1
--rw-r--r-- 1 you group 67108864 Dec  9 20:14 block1
-/scratch/you$ md5sum block1
-204e43b8a1185621ca55a94839582e6f  block1
-
-
- -Notice that the block identifer 204e43b8a1185621ca55a94839582e6f+67108864 of: +Notice that the block identifer 204e43b8a1185621ca55a94839582e6f+67108864 consists of: * the md5 hash @204e43b8a1185621ca55a94839582e6f@ which matches the md5 hash of @block1@ * a size hint @67108864@ which matches the size of @block1@ @@ -114,7 +100,7 @@ Next, let's use @arv keep get@ to download and reassemble @var-GS000016015-ASM.t
/scratch/you$ arv keep get c1bad4b39ca5a924e481008009d94e32+210/var-GS000016015-ASM.tsv.bz2 .
 
-This downloads the file @var-GS000016015-ASM.tsv.bz2@ described by collection @c1bad4b39ca5a924e481008009d94e32+210@ from Keep and places it into the local directory. Now that we have the file, we can compute the md5 hash of the complete file: +This downloads the file var-GS000016015-ASM.tsv.bz2 described by collection c1bad4b39ca5a924e481008009d94e32+210 from Keep and places it into the local directory. Now that we have the file, we can compute the md5 hash of the complete file:
/scratch/you$ md5sum var-GS000016015-ASM.tsv.bz2
diff --git a/docker/workbench/Dockerfile b/docker/workbench/Dockerfile
index fea6947869..c59a654db8 100644
--- a/docker/workbench/Dockerfile
+++ b/docker/workbench/Dockerfile
@@ -12,7 +12,8 @@ RUN touch /usr/src/arvados/apps/workbench/log/production.log && \
     touch /usr/src/arvados/apps/workbench/db/production.sqlite3 && \
     bundle install --gemfile=/usr/src/arvados/apps/workbench/Gemfile && \
     cd /usr/src/arvados/apps/workbench && \
-    rake assets:precompile
+    rake assets:precompile && \
+    chown -R www-data:www-data /usr/src/arvados/apps/workbench
 
 # Configure Apache
 ADD generated/apache2_vhost /etc/apache2/sites-available/workbench
-- 
2.30.2