Praqma / staci

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

function setupJira maybe only works locally #62

Open hoeghh opened 7 years ago

hoeghh commented 7 years ago

The function setupJira in $STACI_HOME/functions/autoconfigs.f might only work locally. It should be tested on Virtualbox as provider, both on single host and in cluster mode.

Maybe Docker client needs to be pointing to the external host or cluster if used. This is not tested, and should be.

If it needs it, use $STACI_HOME/functions/build.f as an inspiration.

A bit like this :

    local provider_type=$(getProperty "provider_type")
    local cluster=$(getProperty "createCluster")

    if [ "$cluster" == "1" ]; then
      eval $(docker-machine env "$node_prefix-jira")
    else
      if [ ! "$provider_type" == "none" ];then
        node_prefix=$(getProperty "clusterNodePrefix")
        eval $(docker-machine env $node_prefix-Atlassian)
      fi
    fi