[ARVADOS] created: 1.3.0-2108-g6e89a1027
Git user
git at public.arvados.org
Fri Jan 24 22:24:04 UTC 2020
at 6e89a1027ef15b39b5d8b694939f68ff22e10c86 (commit)
commit 6e89a1027ef15b39b5d8b694939f68ff22e10c86
Author: Lucas Di Pentima <lucas at di-pentima.com.ar>
Date: Fri Jan 24 19:22:06 2020 -0300
15944: Takes arvbox container's default gw IP as internal client.
This makes Keep work on 'publicdev' mode.
Also, turns off nginx's response caching for easier debugging.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas at di-pentima.com.ar>
diff --git a/tools/arvbox/lib/arvbox/docker/common.sh b/tools/arvbox/lib/arvbox/docker/common.sh
index 15484197e..77fb3f776 100644
--- a/tools/arvbox/lib/arvbox/docker/common.sh
+++ b/tools/arvbox/lib/arvbox/docker/common.sh
@@ -12,6 +12,7 @@ export R_LIBS=/var/lib/Rlibs
export HOME=$(getent passwd arvbox | cut -d: -f6)
defaultdev=$(/sbin/ip route|awk '/default/ { print $5 }')
+dockerip=$(/sbin/ip route | grep default | awk '{ print $3 }')
containerip=$(ip addr show $defaultdev | grep 'inet ' | sed 's/ *inet \(.*\)\/.*/\1/')
if test -s /var/run/localip_override ; then
localip=$(cat /var/run/localip_override)
diff --git a/tools/arvbox/lib/arvbox/docker/service/nginx/run b/tools/arvbox/lib/arvbox/docker/service/nginx/run
index 8b4c22044..4fcc65fa9 100755
--- a/tools/arvbox/lib/arvbox/docker/service/nginx/run
+++ b/tools/arvbox/lib/arvbox/docker/service/nginx/run
@@ -38,6 +38,7 @@ http {
default 1;
127.0.0.0/8 0;
$containerip/32 0;
+ $dockerip/32 0;
}
server {
@@ -69,6 +70,8 @@ http {
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-External-Client \$external_client;
proxy_redirect off;
+ # This turns off response caching
+ proxy_buffering off;
}
}
commit 28e50cc9480fdad416404542511a172cdc7253c7
Merge: b99697453 6275b9ec9
Author: Lucas Di Pentima <lucas at di-pentima.com.ar>
Date: Fri Jan 24 11:41:05 2020 -0300
15944: Merge branch 'master' into 15944-arvbox-publicdev-fix
commit b9969745321abe73dd8d2a04dc60c55fe9434ae6
Author: Lucas Di Pentima <lucas at di-pentima.com.ar>
Date: Thu Dec 26 18:52:17 2019 -0300
15944: Fixes published ports list when running arvbox on public mode.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas at di-pentima.com.ar>
diff --git a/tools/arvbox/bin/arvbox b/tools/arvbox/bin/arvbox
index df6012aaa..af9824c3a 100755
--- a/tools/arvbox/bin/arvbox
+++ b/tools/arvbox/bin/arvbox
@@ -202,11 +202,9 @@ run() {
--publish=3001:3001
--publish=8000:8000
--publish=8900:8900
- --publish=9001:9001
+ --publish=9000:9000
--publish=9002:9002
- --publish=25100:25100
- --publish=25107:25107
- --publish=25108:25108
+ --publish=25101:25101
--publish=8001:8001
--publish=8002:8002"
else
diff --git a/tools/arvbox/lib/arvbox/docker/service/nginx/run b/tools/arvbox/lib/arvbox/docker/service/nginx/run
index 5f1e6204f..8b4c22044 100755
--- a/tools/arvbox/lib/arvbox/docker/service/nginx/run
+++ b/tools/arvbox/lib/arvbox/docker/service/nginx/run
@@ -29,24 +29,24 @@ events {
}
http {
- access_log off;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- client_max_body_size 128M;
-
- geo \$external_client {
- default 1;
- 127.0.0.0/8 0;
- $containerip/32 0;
- }
-
- server {
- listen ${services[doc]} default_server;
- listen [::]:${services[doc]} default_server;
- root /usr/src/arvados/doc/.site;
- index index.html;
- server_name _;
- }
+ access_log off;
+ include /etc/nginx/mime.types;
+ default_type application/octet-stream;
+ client_max_body_size 128M;
+
+ geo \$external_client {
+ default 1;
+ 127.0.0.0/8 0;
+ $containerip/32 0;
+ }
+
+ server {
+ listen ${services[doc]} default_server;
+ listen [::]:${services[doc]} default_server;
+ root /usr/src/arvados/doc/.site;
+ index index.html;
+ server_name _;
+ }
server {
listen 80 default_server;
@@ -72,28 +72,28 @@ http {
}
}
-upstream arvados-ws {
- server localhost:${services[websockets]};
-}
-server {
- listen *:${services[websockets-ssl]} ssl default_server;
- server_name websockets;
-
- proxy_connect_timeout 90s;
- proxy_read_timeout 300s;
-
- ssl on;
- ssl_certificate "${server_cert}";
- ssl_certificate_key "${server_cert_key}";
-
- location / {
- proxy_pass http://arvados-ws;
- proxy_set_header Upgrade \$http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_set_header Host \$http_host;
- proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
+ upstream arvados-ws {
+ server localhost:${services[websockets]};
+ }
+ server {
+ listen *:${services[websockets-ssl]} ssl default_server;
+ server_name websockets;
+
+ proxy_connect_timeout 90s;
+ proxy_read_timeout 300s;
+
+ ssl on;
+ ssl_certificate "${server_cert}";
+ ssl_certificate_key "${server_cert_key}";
+
+ location / {
+ proxy_pass http://arvados-ws;
+ proxy_set_header Upgrade \$http_upgrade;
+ proxy_set_header Connection "upgrade";
+ proxy_set_header Host \$http_host;
+ proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
+ }
}
-}
upstream workbench2 {
server localhost:${services[workbench2]};
@@ -137,7 +137,6 @@ server {
}
}
-
upstream keepproxy {
server localhost:${services[keepproxy]};
}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list