tree: 59712a2c1347f544af3afa870bade4775d9bb691 [path history] [tgz]
  1. README.md
  2. setup-tunnel.service
  3. setup.sh
  4. tunnel.sh
worker/README.md

This holds scripts for spinning up extra workers for gerrit CI on GCE.

VMs should be created as:

  • named city-hackathon-40, city-hackathon-41, etc; the numbers should be free in the CI master

  • Machine: 24 CPUs/90G RAM.

  • Disk: RHEL 7 hardened image on 100G SSD Persistent Disk

  • SSH: add your personal key.

Here is a gcloud command:

gcloud compute instances create \
   --custom-cpu=24 \
   --custom-memory=90 \
   --image-project eip-images \
   --image-family rhel-7-drawfork \
   --boot-disk-size=100GB \
   --boot-disk-type=pd-ssd \
   --zone=us-east4-a \
   city-hackathon-44

Install your own key:

gcloud compute ssh city-hackathon-44 --command='echo KEY >> .ssh/authorized_keys'

Steps:

  1. DEST=

  2. Transfer files.

    scp $HOME/.ssh/gerritforge/id_ecdsa ${DEST}:
    scp worker/* ${DEST}:
    ssh ${DEST} 'sudo sh -x $(pwd)/setup.sh'