Skip to content

Instantly share code, notes, and snippets.

@wehappyfew
Created March 25, 2016 16:52
Show Gist options
  • Save wehappyfew/5076e1c2519798bb82a4 to your computer and use it in GitHub Desktop.
Save wehappyfew/5076e1c2519798bb82a4 to your computer and use it in GitHub Desktop.
docker_env = os.environ.get('DOCKER_ENV') # grab the docker env that the tests will run in docker [local]
stg_env = os.environ.get('STG_ENV')
root_vagrant_local = "http://localhost:9180/"
# Notice: Docker
# Whatever LIVE is, if the env is docker + local run to vagrant URL
if environment == "docker" and docker_env == "local" :
root = root_vagrant_local
# Run Docker Grid on deadpool
if environment == "docker" and docker_env != "local" and stg_env == "deadpool":
root = "https://deadpool.ftw.com/"
# Run Docker Grid on ironman
if environment == "docker" and docker_env != "local" and stg_env == live == "ironman":
root = "https://ironman.flieshigh.com/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment