1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/31dbad21bd6b/ Changeset: 31dbad21bd6b User: jmchilton Date: 2014-11-14 20:23:31+00:00 Summary: Expand HOST_IP in galaxy_infrastructure_url using socket library. Seems to allow dynamically setting correct IP for Galaxy instances inside of Bjoern's docker-in-docker setup (enabling IPython in the stable Galaxy instances). Affected #: 1 file diff -r 96d3d3a4fddeda7bba13d8789f215b684f3a2b09 -r 31dbad21bd6b8de1f66db0fe197b713f88e880bc lib/galaxy/config.py --- a/lib/galaxy/config.py +++ b/lib/galaxy/config.py @@ -6,6 +6,8 @@ import os import re +import socket +import string import sys import tempfile import logging @@ -329,6 +331,10 @@ if port: galaxy_infrastructure_url += ":%s" % (port) galaxy_infrastructure_url_set = False + if "HOST_IP" in galaxy_infrastructure_url: + galaxy_infrastructure_url = string.Template(galaxy_infrastructure_url).safe_substitute({ + 'HOST_IP': socket.gethostbyname(socket.gethostname()) + }) self.galaxy_infrastructure_url = galaxy_infrastructure_url self.galaxy_infrastructure_url_set = galaxy_infrastructure_url_set Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.