blob: 872cfad5dc4945b25e7e7ffc58bbfdcd4d3f9933 [file] [log] [blame]
#!/bin/bash
#
# Setups all the software running on skiaperf.com
#
set -x
source ./vm_config.sh
# Basically SSH in, clone this repo and jump to a shell script in the repo.
gcutil --project=$PROJECT_ID ssh --ssh_user=$PROJECT_USER $INSTANCE_NAME \
"sudo mkdir -p /mnt/pd0;" \
"sudo /usr/share/google/safe_format_and_mount -m \"mkfs.ext4 -F\" /dev/disk/by-id/google-$DISK_NAME /mnt/pd0;" \
"sudo chmod 777 /mnt/pd0;" \
"sudo apt-get -y update;" \
"sudo apt-get -y upgrade;" \
"sudo apt-get -y install git;" \
"git clone https://skia.googlesource.com/buildbot;" \
"cd ~/buildbot/perf/setup;" \
"bash ./perf_setup.sh"
echo "Make sure to 'set daemon 2' in /etc/monit/monitrc"