[ARVADOS] updated: 1.3.0-2228-ge20adcd07
Git user
git at public.arvados.org
Wed Feb 26 19:17:37 UTC 2020
Summary of changes:
tools/arvbox/lib/arvbox/docker/common.sh | 4 ++--
tools/arvbox/lib/arvbox/docker/service/nginx/run | 7 ++++++-
tools/arvbox/lib/arvbox/docker/service/sdk/run-service | 6 +++++-
3 files changed, 13 insertions(+), 4 deletions(-)
via e20adcd07cefcf4f35d6b778567fcfb46e197246 (commit)
from ae47f5fc8d181bc26e96218286e8801a20bfe8d7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit e20adcd07cefcf4f35d6b778567fcfb46e197246
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Wed Feb 26 14:16:14 2020 -0500
arvbox now installs python tools with python3
Also adjust 'geo' config for local/public mode.
refs #12409
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>
diff --git a/tools/arvbox/lib/arvbox/docker/common.sh b/tools/arvbox/lib/arvbox/docker/common.sh
index 77fb3f776..9c933e870 100644
--- a/tools/arvbox/lib/arvbox/docker/common.sh
+++ b/tools/arvbox/lib/arvbox/docker/common.sh
@@ -88,8 +88,8 @@ pip_install() {
popd
if [ "$PYCMD" = "python3" ]; then
- if ! pip3 install --no-index --find-links /var/lib/pip $1 ; then
- pip3 install $1
+ if ! pip3 install --prefix /usr/local --no-index --find-links /var/lib/pip $1 ; then
+ pip3 install --prefix /usr/local $1
fi
else
if ! pip install --no-index --find-links /var/lib/pip $1 ; then
diff --git a/tools/arvbox/lib/arvbox/docker/service/nginx/run b/tools/arvbox/lib/arvbox/docker/service/nginx/run
index 4fcc65fa9..d6fecb443 100755
--- a/tools/arvbox/lib/arvbox/docker/service/nginx/run
+++ b/tools/arvbox/lib/arvbox/docker/service/nginx/run
@@ -14,6 +14,11 @@ if [[ $containerip != $localip ]] ; then
fi
fi
+geo_dockerip=
+if [[ -f /var/run/localip_override ]] ; then
+ geo_dockerip="$dockerip/32 0;"
+fi
+
openssl verify -CAfile $root_cert $server_cert
cat <<EOF >/var/lib/arvados/nginx.conf
@@ -38,7 +43,7 @@ http {
default 1;
127.0.0.0/8 0;
$containerip/32 0;
- $dockerip/32 0;
+ $geo_dockerip
}
server {
diff --git a/tools/arvbox/lib/arvbox/docker/service/sdk/run-service b/tools/arvbox/lib/arvbox/docker/service/sdk/run-service
index da6db3653..8a36140bc 100755
--- a/tools/arvbox/lib/arvbox/docker/service/sdk/run-service
+++ b/tools/arvbox/lib/arvbox/docker/service/sdk/run-service
@@ -18,6 +18,8 @@ cd /usr/src/arvados/sdk/cli
run_bundler --binstubs=$PWD/binstubs
ln -sf /usr/src/arvados/sdk/cli/binstubs/arv /usr/local/bin/arv
+export PYCMD=python3
+
# Need to install the upstream version of pip because the python-pip package
# shipped with Debian 9 is patched to change behavior in a way that breaks our
# use case.
@@ -28,7 +30,9 @@ ln -sf /usr/src/arvados/sdk/cli/binstubs/arv /usr/local/bin/arv
# multiple packages, because it will blindly install the latest version of each
# dependency requested by each package, even if a compatible package version is
# already installed.
-pip_install pip==9.0.3
+if ! pip3 install --no-index --find-links /var/lib/pip pip==9.0.3 ; then
+ pip3 install pip==9.0.3
+fi
pip_install wheel
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list