Skip to content

Commit

Permalink
others: ci skip: sample startup script for gcp mig
Browse files Browse the repository at this point in the history
  • Loading branch information
flowerinthenight committed Sep 30, 2024
1 parent 99ba773 commit 35f5da2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gcp-mig-startup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
mkdir /opt/zgroup/ && cd /opt/zgroup/
wget https://github.com/flowerinthenight/zgroup/releases/download/v0.3.1/zgroup-v0.3.1-x86_64-linux.tar.gz
tar -xzvf zgroup-v0.3.1-x86_64-linux.tar.gz
# ZGROUP_JOIN_PREFIX=0b9303ad-1beb-483f-abb5-bc58e0214531 INTERNAL_IP=$(curl -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip) ./zgroup group1 ${INTERNAL_IP}:8080 2>&1 | logger &
wget https://github.com/flowerinthenight/zgroup/releases/download/v0.3.2/zgroup-v0.3.2-x86_64-linux.tar.gz
tar -xzvf zgroup-v0.3.2-x86_64-linux.tar.gz
INTERNAL_IP=$(curl -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip)
ZGROUP_JOIN_PREFIX=0b9303ad-1beb-483f-abb5-bc58e0214531 ./zgroup group1 ${INTERNAL_IP}:8080 2>&1 | logger &

0 comments on commit 35f5da2

Please sign in to comment.