Update release process TASKS
[arvados-dev.git] / jenkins / packer-images / jenkins-image-workbench2.sh
index a345d77d3fcfd888fcb9ab4a19c31ed69364490f..d014d7a0e29f61434d148508811c5daa6d774e27 100755 (executable)
@@ -6,13 +6,23 @@
 
 set -eo pipefail
 
-# Get the wb2 repository
+# Get the arvados repository
 cd /usr/src
-sudo git clone https://git.arvados.org/arvados-workbench2.git
+sudo git clone https://git.arvados.org/arvados.git
+cd arvados/services/workbench2
+
+if [[ "$GIT_HASH" != "" ]]; then
+  echo "GIT_HASH is set to $GIT_HASH, checking out that revision..."
+  sudo git checkout $GIT_HASH
+fi
+
+# React uses a lot of filesystem watchers (via inotify). Increase the default
+# so we have a higher limit at runtime.
+echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
+sudo sysctl -p
 
 # Build the workbench2-build docker image
-cd arvados-workbench2
 sudo make workbench2-build-image
 
-cd ..
-sudo rm -rf arvados-workbench2
+cd ../../../
+sudo rm -rf arvados