X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1ef0acd580ddf41ed67f34152eadad0e60413008..d0353c5236ead26317200cc5fdd5cee31a2b261b:/lib/install/deps.go diff --git a/lib/install/deps.go b/lib/install/deps.go index ed71709363..017771b637 100644 --- a/lib/install/deps.go +++ b/lib/install/deps.go @@ -40,7 +40,7 @@ const ( gradleversion = "5.3.1" nodejsversion = "v12.22.11" devtestDatabasePassword = "insecure_arvados_test" - workbench2version = "5e020488f67b5bc919796e0dc8b0b9f3b3ff23b0" + workbench2version = "2454ac35292a79594c32a80430740317ed5005cf" ) //go:embed arvados.service @@ -370,6 +370,14 @@ make -C ./builddir install } } + err = inst.runBash(` +install /usr/bin/nsenter /var/lib/arvados/bin/nsenter +setcap "cap_sys_admin+pei cap_sys_chroot+pei" /var/lib/arvados/bin/nsenter +`, stdout, stderr) + if err != nil { + return 1 + } + // The entry in /etc/locale.gen is "en_US.UTF-8"; once // it's installed, locale -a reports it as // "en_US.utf8". @@ -555,12 +563,7 @@ yarn install for _, srcdir := range []string{ "cmd/arvados-client", "cmd/arvados-server", - "services/crunch-dispatch-local", "services/crunch-dispatch-slurm", - "services/health", - "services/keep-balance", - "services/keepstore", - "services/ws", } { fmt.Fprintf(stderr, "building %s...\n", srcdir) cmd := exec.Command("go", "install", "-ldflags", "-X git.arvados.org/arvados.git/lib/cmd.version="+inst.PackageVersion+" -X main.version="+inst.PackageVersion+" -s -w") @@ -575,19 +578,6 @@ yarn install } } - // Symlink user-facing Go programs /usr/bin/x -> - // /var/lib/arvados/bin/x - for _, prog := range []string{"arvados-client", "arvados-server"} { - err = os.Remove("/usr/bin/" + prog) - if err != nil && !errors.Is(err, os.ErrNotExist) { - return 1 - } - err = os.Symlink("/var/lib/arvados/bin/"+prog, "/usr/bin/"+prog) - if err != nil { - return 1 - } - } - // Copy assets from source tree to /var/lib/arvados/share cmd := exec.Command("install", "-v", "-t", "/var/lib/arvados/share", filepath.Join(inst.SourcePath, "sdk/python/tests/nginx.conf")) cmd.Stdout = stdout @@ -673,6 +663,14 @@ rsync -a --delete-after build/ /var/lib/arvados/workbench2/ return 1 } + // Install arvados-cli gem (binaries go in + // /var/lib/arvados/bin) + if err = inst.runBash(` +/var/lib/arvados/bin/gem install --conservative --no-document arvados-cli +`, stdout, stderr); err != nil { + return 1 + } + err = os.WriteFile("/lib/systemd/system/arvados.service", arvadosServiceFile, 0777) if err != nil { return 1 @@ -689,6 +687,19 @@ rsync -a --delete-after build/ /var/lib/arvados/workbench2/ if err != nil { return 1 } + + // Symlink user-facing programs /usr/bin/x -> + // /var/lib/arvados/bin/x + for _, prog := range []string{"arvados-client", "arvados-server", "arv", "arv-tag"} { + err = os.Remove("/usr/bin/" + prog) + if err != nil && !errors.Is(err, os.ErrNotExist) { + return 1 + } + err = os.Symlink("/var/lib/arvados/bin/"+prog, "/usr/bin/"+prog) + if err != nil { + return 1 + } + } } return 0