Praqma / staci

Containerizing the Atlassian tools stack. Jira, Confluence, Bamboo and a MySQL database.
MIT License
12 stars 5 forks source link

function waitForJiraWebSetup only works locally #61

Open hoeghh opened 7 years ago

hoeghh commented 7 years ago

The function waitForJiraWebSetup in $STACI_HOME/functions/autoconfigs.f uses localhost to contact Jira. This will not work when using a provider, and should be fixed.

Take inspiration from $STACI_HOME/generateSystemInfo.sh :

   jira_contextpath=$(getProperty "jira_contextpath")

   if [ "$cluster" == "1" ]; then
      jiraip=$(docker-machine ip "$node_prefix-jira")
   elif [ ! "$provider_type" == "none" ]; then
      jiraip=$(docker-machine ip "$node_prefix-Atlassian")
   else
      jiraip="localhost"
   fi

  <a href="http://$jiraip:8080$jira_contextpath" target="_blank">Jira link</a>