whole-tale / terraform_deployment

Terraform deployment setup for WT prod
BSD 3-Clause "New" or "Revised" License
3 stars 2 forks source link

Godaddy integration and minor fixes #20

Closed craig-willis closed 6 years ago

craig-willis commented 6 years ago

This PR fixes multiple bugs in the terraform process and implements GoDaddy integration for DNS and wildcard cert generation.

Test case Preconditions:

Confirm #10 and #9:

Provision the cluster: terraform apply

Restore the development database on fileserver:

ssh <nfs node>
docker run -it --network wt_mongo -v /mnt/home:/backup -v /home/core/rclone/:/conf wholetale/backup bash
restore.sh -c dev -d 20180416
init-mongo.sh <subdomain>.wholetale.org <globus_key> <globus_secret>

Restart Girder on master:

docker service  scale wt_girder=0
docker service  scale wt_girder=1

Confirm #18:

Confirm girder_wholetale/issues/59:

Notes:

Xarthisius commented 6 years ago
* Error running command 'docker run -v `pwd`/scripts:/scripts craigwillis/wt-python python scripts/godaddy-update-dns.py -k 9jNJFcjmEuu_AAJFBRcBTwPBu6kaZXuK8n -s AAJHYrfBh6VYtJTuoKbrNv -d wholetale.org -n xarth -a 141.142.209.195': exit status 125. Output: Unable to find image 'craigwillis/wt-python:latest' locally

docker: Error response from daemon: pull access denied for craigwillis/wt-python, repository does not exist or may require 'docker login'.
craig-willis commented 6 years ago

Updated dns.tf to use suggested jfloff/alpine-python:2.7-slim image instead of my not-useful homegrown.

Xarthisius commented 6 years ago

It's working great, thanks @craig-willis !