Step 5 added to install gitlab via composer

This commit is contained in:
Daljit Singh
2021-02-08 16:40:38 +13:00
parent 9fefffe183
commit 0794f19f94
3 changed files with 37 additions and 8 deletions

View File

@ -0,0 +1,15 @@
#!/bin/bash
# Next up we need to copy file to gloud vm
# Retrieve the vm name
export gcp_machine_name=$(gcloud compute instances list --limit=1 --format='value(name.basename())')
# Copy file to vm
gloud compute scp docker-compose.yaml $gcp_machine_name --ssh-key-file ~/.ssh/$USER --strict-host-key-checking=no
# Install gotlan with docker compose
sleep 2
gcloud compute ssh $gcp_machine_name --ssh-key-file ~/.ssh/$USER -- 'sudo docker compose up -d'