All steps completed and tested the scripts

Co-authored-by: jmhbnz <mail@jamesblair.net>
This commit is contained in:
Daljit Singh
2021-02-10 17:11:01 +13:00
parent e0d74c41dd
commit 816bb0e051
2 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,5 @@
#+TITLE: Gitlab GCP Deployment
#+TITLE: Gitlab
GCP Deployment
#+AUTHOR: James Blair
#+EMAIL: mail@jamesblair.net
#+DATE: 5th January 2021
@ -150,8 +151,7 @@ export gcp_machine_name=$(gcloud compute instances list --limit=1 --format='valu
# Copy file to vm
gcloud compute scp docker-compose.yaml $gcp_machine_name:/home/$USER --ssh-key-file ~/.ssh/$USER --strict-host-key-checking=no
# Install gotlan with docker compose
sleep 2
# Install gitlab with docker compose
gcloud compute ssh $gcp_machine_name --ssh-key-file ~/.ssh/$USER -- 'sudo docker-compose up -d'
#+end_src