19683: Builds & installs the arvados gem dev version.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Tue, 1 Nov 2022 16:35:42 +0000 (13:35 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Tue, 1 Nov 2022 16:35:42 +0000 (13:35 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

tools/arvbox/lib/arvbox/docker/common.sh

index 4e95bdedfc465ac0c3c25065e2dd778f0b949775..5db94aa5e1b7301c5334329f9e6cee0efc2ee857 100644 (file)
@@ -74,6 +74,12 @@ run_bundler() {
        # If present, use the one associated with rails workbench or API
        BUNDLER=$PWD/bin/bundle
     fi
+
+    if test "$(flock $GEMLOCK /var/lib/arvados/bin/gem list | grep arvados | grep dev | wc -l)" = "0" ; then
+        cd /usr/src/arvados/sdk/ruby
+        /var/lib/arvados/bin/gem build arvados.gemspec && flock $GEMLOCK /var/lib/arvados/bin/gem install `ls -1 *.gem | sort -r | head -n1`
+        cd -
+    fi
     if ! flock $GEMLOCK $BUNDLER install --verbose --local --no-deployment $frozen "$@" ; then
         flock $GEMLOCK $BUNDLER install --verbose --no-deployment $frozen "$@"
     fi