Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Severe
-
Resolution: Fixed
-
Affects Version/s: 1.7.0.M1
-
Fix Version/s: 5.0.0 GA (5.0.0 GA Suite Release)
-
Component/s: Configuration
-
Labels:None
-
Environment:linux or unix-like OSes
Description
Code patch for discovering the base URL for Pentaho from an environment variable. This allows "auto-discovery" of the host machine when paired with a simple shell script to set the environment variable when the container app starts up (tomcat or jboss or whatever).
Issue Links
- is related to
-
BISERVER-4511
As a Pentaho customer, I want an optional configuration setting to auto discover the protocol, domain and port of the base-url (code contributed)
-
Use the following bash shell snippet in a startup script to set the environment variable...
IP_ADDR=`ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'`
export PENTAHO_BASE_URL=http://$IP_ADDR/pentaho/