# Step 1 (in your local machine) # set the google project $ gcloud config set project propel-gps # Step 2 (in your local machine) # set the compute zone $ gcloud config set compute/zone us-central1-b # Step 3 (in your local machine) # Create the appropriate firewall rules $ gcloud beta compute --project "propel-gps" firewall-rules create "allow-8083" --allow tcp:8083 --direction "INGRESS" --priority "1000" --network "default" --source-ranges "0.0.0.0/0" $ gcloud beta compute --project "propel-gps" firewall-rules create "allow-1883" --allow tcp:1883 --direction "INGRESS" --priority "1000" --network "default" --source-ranges "0.0.0.0/0" $ gcloud beta compute --project "propel-gps" firewall-rules create "allow-8883" --allow tcp:8883 --direction "INGRESS" --priority "1000" --network "default" --source-ranges "0.0.0.0/0" # Step 4 (in your local machine) # create the propel-owntracks machine $ gcloud compute instances create propel-owntracks --scopes compute-rw --image-family debian-8 --image-project debian-cloud --zone us-central1-b --scopes https://www.googleapis.com/auth/devstorage.read_write --machine-type g1-small --address 104.154.134.84 # Step 5 (in your local machine) # SSH into the propel-owntracks machine $ gcloud compute ssh propel-owntracks --zone us-central1-b # Step 6 (in the owntracks VM) # install git $ sudo apt-get update && sudo apt-get install git -y # Step 7 (in the owntracks VM) # clone repo $ git clone https://github.com/yencarnacion/owntracks-server # Step 8 (in the owntracks VM) # provision the machine $ cd owntracks-server $ sudo bash ./go.sh # Step 9 (in the owntracks VM) $ sudo nohup /usr/local/sbin/owntracks &
-
remember to do
gcloud compute instances delete propel-owntracks --zone us-central1-b
when you are done