Skip to content
Snippets Groups Projects
Select Git revision
  • eed1456d3c549e4015abeeaf2bb60de837965ad4
  • master default protected
  • ci-bullseye
  • wip/bigtop-3.0.0
  • bio3
  • feature/certificates2
6 results

launch.sh

Blame
  • launch.sh 436 B
    #! /bin/sh -e
    
    TERRAFORM="`PATH=$PATH:. which terraform`"
    
    $TERRAFORM init >/dev/null
    
    $TERRAFORM apply -auto-approve "$@"
    
    touch config.json; chmod 0600 config.json
    $TERRAFORM output -json > config.json
    
    eval $(ssh-agent -s)
    trap "kill $SSH_AGENT_PID" INT TERM
    ssh-add ssh-key.*.txt
    
    if [ -z "$NO_DEPLOYMENT" ]; then
    	./orchestrate.py
    else
    	./orchestrate.py files ping init wait
    	./orchestrate.py -n deployment
    fi
    
    kill $SSH_AGENT_PID