hardcode the gopath due to broken env manamagement in fabric2

This commit is contained in:
Erica Portnoy 2020-04-03 16:55:21 -07:00
parent dc7743ca0f
commit 86fa1163d3

View file

@ -284,12 +284,14 @@ def deploy_script(cxn, scriptpath, *args):
cxn.run('./'+scriptfile+' '+args_str)
def run_boulder(cxn):
# yes, we're hardcoding the gopath. it's a predetermined AMI.
boulder_path = '$GOPATH/src/github.com/letsencrypt/boulder'
cxn.run('cd %s && sudo docker-compose up -d' % boulder_path)
def config_and_launch_boulder(cxn, instance):
deploy_script(cxn, 'scripts/boulder_config.sh')
run_boulder(cxn)
with cxn.prefix('export GOPATH=/home/ubuntu/gopath'):
deploy_script(cxn, 'scripts/boulder_config.sh')
run_boulder(cxn)
def install_and_launch_certbot(cxn, instance, boulder_url, target):
local_repo_to_remote(cxn)